igc_get_nfc_rule(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… igc_get_nfc_rule β€” from the Kernel API Manual, bestie ✨

okay so this is igc_get_nfc_rule(9), a kernel API page, and it's honestly such a clean little function. no cap. let's get into it 🫢


✨ NAME ✨

igc_get_nfc_rule β€” literally just get NFC rule. that's the whole vibe. you want a rule, you get a rule. iconic behavior πŸ’…


πŸŽ€ SYNOPSIS πŸŽ€

struct igc_nfc_rule * igc_get_nfc_rule (struct igc_adapter *adapter ,
u32 location );

look at that signature. struct igc_nfc_rule * coming back at you, taking an adapter and a location. chef's kiss πŸ”₯


🌸 ARGUMENTS 🌸

  • adapter β€” Pointer to adapter. yes queen, the whole adapter. it's giving "pointer to the main character" πŸ‘‘
  • location β€” Rule location. it's a u32, it tells you where the rule lives. iykyk πŸ¦‹

⭐ CONTEXT ⭐

Expects adapter->nfc_rule_lock to be held by caller.

⚠️ bestie read this twice β€” you (the caller) gotta be holding adapter->nfc_rule_lock already. this function is not out here locking things for you, it trusts you completely πŸ™ˆ

πŸ’œ RETURN πŸ’œ

Pointer to NFC rule at location. If not found, NULL.

so like… you get your rule back, or you get NULL and you gotta handle it. no in-between, no drama 😭


🌈 SEE ALSO 🌈

the kernel file lives at ./drivers/net/ethernet/intel/igc/igc_main.c β€” go say hi 🧚

and now, the friend group. this list is long and i am obsessed with it. every single one of these is here, fr fr πŸ“

that's the whole crew. ate and left no crumbs πŸ’€βœ¨


and that's the page, bestie! πŸŽ€ this one comes from ./drivers/net/ethernet/intel/igc and it's dated October 2026 β€” so like, future vibes but make it kernel. mwah, go get your rule πŸ’–πŸ¦‹

πŸ“¦ where this page comes from