ice_is_eswi...de_switchdev(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– ice_is_eswitch_mode_switchdev πŸ’–

okay so this is from the Kernel API Manual bestie, and it's giving tiny-little-helper-function energy 🧚 β€” like, one job, does it cute, no notes. Let's get into it ✨


🌸 NAME 🌸

ice_is_eswitch_mode_switchdev β€” checks whether the eswitch mode is set to switchdev πŸŽ€

like literally that's it, that's the whole personality. a vibe check for your eswitch πŸ’…


✨ SYNOPSIS ✨

bool ice_is_eswitch_mode_switchdev (struct ice_pf *pf );

one function, one argument, returns a bool. short and iconic fr fr πŸ‘‘


πŸ¦‹ ARGUMENTS πŸ¦‹

  • pf β€” pointer to the PF structure 🫢 (yes bestie, that's the whole description, it's a pointer, it points, we love a low-effort king)

πŸ’€ DESCRIPTION πŸ’€

so here's the tea β˜•: this function returns true if the eswitch mode is set to DEVLINK_ESWITCH_MODE_SWITCHDEV, and false otherwise.

that's the whole thing. no cap. two outcomes, one boolean, zero drama 🌈

lowkey the most honest manpage description ever written β€” "it returns true if it's true, false if it's not" 😭 and honestly? respect.

πŸ”₯ SEE ALSO πŸ”₯

the kernel file lives here, bestie: ./drivers/net/ethernet/intel/ice/ice_eswitch.c πŸ“

and here's the whole friend group, all the sibling functions you can go bother next πŸ‘‡

twenty of them. twenty!! a whole squad πŸ«‚ go say hi to all of them iykyk πŸ’œ


✨ and that's the page, bestie ✨ this little icon comes to you from ./drivers/net/ethernet/intel/ice and the manual says October 2026 β€” so if you're reading this, hi from the future or whatever πŸ‘‘πŸ¦‹ stay hydrated, read your manpages, and remember: it returns true when it's switchdev mode. periodt. πŸ’…πŸŽ€

πŸ“¦ where this page comes from