ice_dcb_get_mode(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… ice_dcb_get_mode(9) πŸŽ€

okay so bestie, we're in the Kernel API Manual today and this one is genuinely such a little function. One job, one vibe. It gets the DCB mode, that's it, that's the whole personality. ✨


🌸 NAME 🌸

ice_dcb_get_mode β€” gets the DCB mode πŸ’– fr fr that's the entire elevator pitch.


✨ SYNOPSIS ✨

u8 ice_dcb_get_mode (struct ice_port_info *port_info , bool host );

like yes she's tiny, she returns a u8, she takes two args, she slays. no notes. πŸ‘‘


πŸ¦‹ ARGUMENTS πŸ¦‹

  • port_info β€” pointer to port info structure 🌈 like, the port we're asking about. give her the context she needs.
  • host β€” if set it's HOST, if not it's MANAGED πŸ’… that's the whole ternary situation, iykyk. one bool, two worlds.
not me pointing out that host is literally a vibe check between HOST and MANAGED β€” set = HOST, unset = MANAGED, no cap. πŸ™ˆ

🧚 SEE ALSO 🧚

okay this is the part where she name-drops her entire friend group and honestly? iconic. the source lives in the kernel file ./drivers/net/ethernet/intel/ice/ice_dcb_lib.c πŸ’– and here's the whole squad, all of them, in order, because we do not do partial lists in this house:

like… twenty-four besties and every single one of them is a (9) kernel API page. the way that's a whole group chat. 🫢πŸ”₯


okay that's the page!! mwah πŸ’‹ this came out of ./drivers/net/ethernet/intel/ice and it's dated October 2026, so go read it, understand it, and remember that a u8 returning function with two arguments can still be the main character. periodt. πŸŒˆβ­πŸ“

πŸ“¦ where this page comes from