dpsw_enable(9)
π dpsw_enable(9) β from the Kernel API Manual, bestie π
okay so picture this: it's a manpage, it's section 9, it's called dpsw_enable, and it lives in the Kernel API Manual. that's the vibe. and honestly? it's giving "one job, does it well" energy. π
β¨ NAME β¨
dpsw_enable β Enable DPSW functionality
like literally just turn the DPSW on. that's the whole assignment. slay. π
π¦ SYNOPSIS π¦
int dpsw_enable (struct fsl_mc_io *mc_io , u32 cmd_flags , u16 token );
three args, one int coming back at you. no cap, that's it. π«Ά
πΈ ARGUMENTS πΈ
mc_ioβ Pointer to MC portal's I/O object. yeah, the whole portal deal β you're not talking to DPSW directly, you're going through MC's I/O object. iykyk.cmd_flagsβ Command flags; one or more of'MC_CMD_FLAG_'. so like, pick your flags from that family, okay? βtokenβ Token of DPSW object. it's the lil' handle that says which DPSW you mean. don't lose it fr fr.
π RETURN π
Completion status. '0' on Success; Error code otherwise.
so 0 = we ate and left no crumbs π₯. anything else = an error code, and you should probably look at it instead of pretending you didn't see it π.
ngl, always actually check the return value. 0 is the happy path, everything else is the signal to go debug.
π SEE ALSO π
there is a whole friend group here and i'm obsessed. every single one, no skipping:
- the kernel file:
./drivers/net/ethernet/freescale/dpaa2/dpsw.c
and then, in the order the page gives them:
dpsw_open(9)dpsw_close(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_get_api_version(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β¦ a whole ecosystem. main character energy from every single one of them. π
and that's the whole page, bestie!! go forth, pass your mc_io, your cmd_flags and your token, and get that sweet sweet 0. π§ββοΈπ
final lil' sign-off π: this one's from the Kernel API Manual, source./drivers/net/ethernet/freesca..., dated October 2026, and it'sdpsw_enable(9)β 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