igc_add_nfc_rule(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… igc_add_nfc_rule(9) β€” the Kernel API Manual glow-up πŸŽ€

okay so bestie, welcome to the Kernel API Manual ✨ this is the page for igc_add_nfc_rule, and yes it's a whole vibe. buckle up πŸ’–


🌸 NAME 🌸

igc_add_nfc_rule β€” literally just Add NFC rule. that's the whole thing. iconic brevity tbh πŸ‘‘


✨ SYNOPSIS ✨

int igc_add_nfc_rule (struct igc_adapter *adapter , struct igc_nfc_rule
*rule );

like, take an adapter, take a rule, give me back an int. and yes the spacing in there is exactly how the original does it, don't come for me 🫢


πŸ¦‹ ARGUMENTS πŸ¦‹

  • adapter β€” pointer to adapter. that's the whole description bestie, it's a pointer, it points at the adapter, we move πŸ’…
  • rule β€” pointer to the rule to be added. this is the one getting added, hence the name, her main character moment fr πŸ”₯

🌈 DESCRIPTION 🌈

so what actually happens: this function enables the NFC rule in hardware and adds it to the adapter. both. not one or the other. no cap. ✨

it's giving "do the hardware thing, then file the paperwork," and honestly? slay.


🧚 CONTEXT 🧚

⚠️ important bestie β€” this one expects adapter->nfc_rule_lock to be held by the caller. meaning you, the caller, gotta be holding that lock already. the function is not gonna do it for you. not me being your lock accountability partner πŸ˜­πŸ”’

⭐ RETURN ⭐

  • 0 β€” on success πŸŽ‰ ate, no crumbs
  • negative errno β€” on failure πŸ’€ it's giving "something went sideways," and the negative errno will tell you which flavour

πŸ’œ SEE ALSO πŸ’œ

first up, the source file itself lives in the kernel at:

./drivers/net/ethernet/intel/igc/igc_main.c

and here's the full squad of related pages β€” every single one, i did not skip a single one, we do not leave anyone behind in this group chat 🫢


and that's the page bestie πŸŽ€ go forth, hold that lock, add that rule, be the caller you want to see in the world πŸ’–

sign-off szn: this little beauty lives in ./drivers/net/ethernet/intel/igc, dated October 2026, and yeah β€” it's still igc_add_nfc_rule(9), no notes, periodt πŸŒΈβœ¨πŸ¦‹

πŸ“¦ where this page comes from