dpsw_get_api_version(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… dpsw_get_api_version β€” the kernel API manual, but make it make sense πŸ¦‹

okay so bestie, you found dpsw_get_api_version(9) and you're like "what even is this" β€” don't worry, I got you. This is the Data Path Switch API version getter, and yes it's from the Kernel API Manual. Periodt.


✨ NAME ✨

dpsw_get_api_version β€” get the Data Path Switch API version πŸ’–

like, that's literally the whole job. she tells you which version of the data path switch API you're working with. no cap.


🌸 SYNOPSIS 🌸

int dpsw_get_api_version (struct fsl_mc_io *mc_io , u32 cmd_flags , u16
*major_ver , u16 *minor_ver );

so you call her with four things and she hands you back an int. the vibes are immaculate, the signature is a little cramped. it's giving "compiled without a formatter." 😭


πŸŽ€ ARGUMENTS πŸŽ€

  • mc_io β€” pointer to the MC portal's I/O object 🫢 this is your portal handle, the little doorway into the management complex. she needs it, don't ghost her.
  • cmd_flags β€” command flags; one or more of 'MC_CMD_FLAG_' ✨ yes, that's the family of flags, pick your faves from that set.
  • major_ver β€” major version of the data path switch API πŸ‘‘ the big number. the main character number, honestly.
  • minor_ver β€” minor version of the data path switch API 🌸 the little number that rides along with the big one.

πŸ’€ RETURN πŸ’€

so… this section is literally empty in the original. bestie there is nothing here. no documented return values, no error codes, no nothing. she left it blank like an unread text. I'm not gonna invent returns for her because that would be lying, and we don't lie about kernel APIs. if you need the return semantics, that's between you and the source, iykyk. πŸ™ˆ


πŸ¦‹ SEE ALSO πŸ¦‹

first up, the kernel file itself: ./drivers/net/ethernet/freescale/dpaa2/dpsw.c β€” that's where she lives, go say hi πŸ’œ

and then the whole extended friend group, in order, no one left out (I would never):

dpsw_open(9), dpsw_close(9), dpsw_enable(9), dpsw_disable(9), dpsw_reset(9), dpsw_set_irq_enable(9), dpsw_set_irq_mask(9), dpsw_get_irq_status(9), dpsw_clear_irq_status(9), dpsw_get_attributes(9), dpsw_if_set_link_cfg(9), dpsw_if_get_link_state(9), dpsw_if_set_tci(9), dpsw_if_get_tci(9), dpsw_if_set_stp(9), dpsw_if_get_counter(9), dpsw_if_enable(9), dpsw_if_disable(9), dpsw_if_get_attributes(9), dpsw_if_set_max_frame_length(9), dpsw_vlan_add(9), dpsw_vlan_add_if(9), dpsw_vlan_add_if_untagged(9), dpsw_vlan_remove_if(9), dpsw_vlan_remove_if_untagged(9), dpsw_vlan_remove(9), dpsw_fdb_add(9), dpsw_fdb_remove(9), dpsw_fdb_add_unicast(9), dpsw_fdb_dump(9), dpsw_fdb_remove_unicast(9), dpsw_fdb_add_multicast(9), dpsw_fdb_remove_multicast(9), dpsw_ctrl_if_get_attributes(9), dpsw_ctrl_if_set_pools(9), dpsw_ctrl_if_set_queue(9), dpsw_if_get_port_mac_addr(9), dpsw_ctrl_if_enable(9), dpsw_ctrl_if_disable(9), dpsw_set_egress_flood(9), dpsw_if_set_learning_mode(9), dpsw_acl_add(9), dpsw_acl_remove(9), dpsw_acl_add_if(9), dpsw_acl_remove_if(9), dpsw_acl_prepare_entry_cfg(9), dpsw_acl_add_entry(9), dpsw_acl_remove_entry(9), dpsw_set_reflection_if(9), dpsw_if_add_reflection(9), dpsw_if_remove_reflection(9), dpsw_lag_set(9), dpsw_if_set_lag_state(9)

like, that's 52 whole manpages. a whole squad. ate. πŸ”₯


okay that's the page!! source/version line is ./drivers/net/ethernet/freesca... (yes it's truncated in the original, that's just how she is, we don't fix her πŸ’…) and the date is October 2026. signed off with love, skincare, and a correctly-typed u16 * 🧚 ⭐ 🌈

πŸ“¦ where this page comes from