__igc_close(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… __igc_close(9) β€” like, the Kernel API Manual page, bestie ✨

okay so this is __igc_close(9) from the Kernel API Manual, and honestly? she's a whole mood. short, sweet, does exactly one job, and refuses to fail. icon behavior fr fr. let's get into it πŸŽ€


✨ NAME ✨

__igc_close β€” disables a network interface. that's it. that's the tweet. πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

int __igc_close (struct net_device *netdev , bool suspending );

yup that's the whole signature, no cap. returns an int, takes two args, and we'll get to both of them in a sec 🫢


🌸 ARGUMENTS 🌸

  • netdev β€” the network interface device structure, aka the whole entire main character of this operation. this is the struct net_device we're shutting down πŸ’–
  • suspending β€” a bool that tells us whether the device is suspending. yes it's just a little boolean, but she matters, okay? 🌈

πŸ”₯ DESCRIPTION πŸ”₯

okay so first thing's first: this function returns 0. literally always. it is not allowed to fail β€” like, that's the rule, periodt. so if you're out here expecting some dramatic error code, no ma'am, it's 0 and we move on πŸ™ˆ

so here's the vibe check on when this gets called: the close entry point fires when an interface gets de-activated by the OS. and here's the thing that lowkey matters β€” the hardware is still under the driver's control at that point, it just needs to be disabled. so we're not handing anything off, we're just powering down the party 🧚

how do we do that? a global MAC reset gets issued to stop the hardware, and then all transmit and receive resources get freed. tx, rx, all of it β€” released. clean slate, no crumbs left behind πŸ’€βœ¨

ngl this is the "lights off, doors locked, everyone out" moment for the NIC. and she cannot fail. that's the whole legend.

πŸ‘‘ SEE ALSO πŸ‘‘

alright bestie, buckle up, because this reference list is long β€” she's giving "my mutuals" energy. every single one of these is here, exactly as written, no skips 🌟

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

then the extended fam:

like, okay, go off igc family πŸ’œ


and that's the whole page!! no options section, no env vars, no exit statuses β€” she's a short one and we love her for it πŸ“

source + date drop, typed delicately: this lil beauty lives in ./drivers/net/ethernet/intel/igc, dated October 2026, and it's __igc_close(9) forever and always. byeee bestie, see u at the next syscall πŸ«ΆπŸ’–πŸŽ€

πŸ“¦ where this page comes from