Skip to main content

card_matches_token

Function card_matches_token 

Source
pub(crate) fn card_matches_token(token: &str, id: &CardIdentity) -> bool
Expand description

Does a card match the requested token? Accepted token forms, checked against the identity the kernel itself reports: a kernel DRIVER name (exact, no table), a raw PCI vendor ID (“0x10de”/“10de”), a devicetree vendor prefix (literal first segment of any compatible), or a human vendor name resolved through the small embedded alias maps above.