dpni_get_single_step_cfg(9)
π dpni_get_single_step_cfg β Kernel API Manual β¨
okay so bestie, welcome to dpni_get_single_step_cfg, one of the many little gems living in the Linux Kernel API Manual. The name literally tells you everything: it hands you back the current config for single step PTP. That's it. That's the whole job. no cap. π
πΈ NAME πΈ
dpni_get_single_step_cfg β return current configuration for single step PTP
like, it gets the single step cfg. the vibes are immaculate and the naming is honest. π
β¨ SYNOPSIS β¨
int dpni_get_single_step_cfg (struct fsl_mc_io *mc_io , u32 cmd_flags ,
u16 token , struct dpni_single_step_cfg *ptp_cfg );
she takes four things and gives you back an int. lowkey elegant. π¦
π§ ARGUMENTS π§
mc_ioβ pointer to the MC portal's I/O object π this is your entry point, your main character, the thing that actually talks to the hardware.cmd_flagsβ command flags, bestie! one or more of'MC_CMD_FLAG_'. yes you have to pick at least one, don't leave her hanging. πtokenβ the token of the DPNI object. it's giving VIP wristband energy β you need it to get in. ποΈptp_cfgβ the ptp single step configuration. this is where the answer lands, so like... don't pass a bad pointer, i'm begging. π
π RETURN π
bestie. bestie. the original page leaves this section literally empty. no documented return values, no error codes, nada. the synopsis says int and that is all the lore we get. i'm as devastated as you are. π
fr fr, don't go inventing return semantics β if the manpage doesn't say it, it doesn't say it. π«Ά
π¦ SEE ALSO π¦
first up, the kernel file herself: ./drivers/net/ethernet/freescale/dpaa2/dpni.c β that's where the magic lives, go read it if you're obsessed (you are). π
and now, the full squad, in order, no skipping, we don't do that here:
dpni_prepare_key_cfg(9), dpni_open(9), dpni_close(9), dpni_set_pools(9), dpni_enable(9), dpni_disable(9), dpni_is_enabled(9), dpni_reset(9), dpni_set_irq_enable(9), dpni_get_irq_enable(9), dpni_set_irq_mask(9), dpni_get_irq_mask(9), dpni_get_irq_status(9), dpni_clear_irq_status(9), dpni_get_attributes(9), dpni_set_errors_behavior(9), dpni_get_buffer_layout(9), dpni_set_buffer_layout(9), dpni_set_offload(9), dpni_get_qdid(9), dpni_get_tx_data_offset(9), dpni_set_link_cfg(9), dpni_get_link_cfg(9), dpni_get_link_state(9), dpni_set_max_frame_length(9), dpni_get_max_frame_length(9), dpni_set_multicast_promisc(9), dpni_get_multicast_promisc(9), dpni_set_unicast_promisc(9), dpni_get_unicast_promisc(9), dpni_set_primary_mac_addr(9), dpni_get_primary_mac_addr(9), dpni_get_port_mac_addr(9), dpni_enable_vlan_filter(9), dpni_add_vlan_id(9), dpni_remove_vlan_id(9), dpni_add_mac_addr(9), dpni_remove_mac_addr(9), dpni_clear_mac_filters(9), dpni_set_rx_tc_dist(9), dpni_set_congestion_notification(9), dpni_set_queue(9), dpni_get_queue(9), dpni_get_statistics(9), dpni_set_taildrop(9), dpni_get_taildrop(9), dpni_get_api_version(9), dpni_set_rx_fs_dist(9), dpni_set_rx_hash_dist(9), dpni_add_fs_entry(9), dpni_remove_fs_entry(9), dpni_set_qos_table(9), dpni_add_qos_entry(9), dpni_remove_qos_entry(9), dpni_clear_qos_table(9), dpni_set_tx_shaping(9), dpni_set_single_step_cfg(9)
and yeah β dpni_set_single_step_cfg(9) is right there at the end, the literal sibling, the setter to this getter. go read her too. π
β¨ and that's the whole page, bestie! β¨
this little number ships from the source/version line ./drivers/net/ethernet/freesca... dated October 2026, and the footer keeps the same title dpni_get_single_step_cfg(9) because of course it does β consistency is a slay. πππ«Ά
π¦ 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