ice_dcb_get_mode(9)
π 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:
ice_dcb_get_ena_tc(9)ice_is_pfc_causing_hung_q(9)ice_dcb_get_num_tc(9)ice_get_first_droptc(9)ice_vsi_set_dcb_tc_cfg(9)ice_dcb_get_tc(9)ice_vsi_cfg_dcb_rings(9)ice_dcb_ena_dis_vsi(9)ice_dcb_bwchk(9)ice_pf_dcb_cfg(9)ice_cfg_etsrec_defaults(9)ice_dcb_need_recfg(9)ice_dcb_rebuild(9)ice_dcb_init_cfg(9)ice_dcb_sw_dflt_cfg(9)ice_dcb_tc_contig(9)ice_dcb_noncontig_cfg(9)ice_pf_dcb_recfg(9)ice_init_pf_dcb(9)ice_update_dcb_stats(9)ice_tx_prepare_vlan_flags_dcb(9)ice_setup_dcb_qos_info(9)ice_dcb_is_mib_change_pending(9)ice_dcb_process_lldp_set_mib_change(9)
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
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms