ice_devlink...d_layers_set(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

okay bestie, so this is a page from the Kernel API Manual, section 9, and the header up top literally reads ice_devlink...d_layers_set(9) πŸŽ€ β€” yes it's truncated, that's just how it printed, we move. It's all about ice_devlink_tx_sched_layers_set, and ngl it's a short one but it ate. Let's go 🫢


🌸 NAME 🌸

ice_devlink_tx_sched_layers_set β€” literally sets the tx_scheduling_layers parameter. That's the whole job. Main character energy, one task, no notes πŸ’…


✨ SYNOPSIS ✨

int ice_devlink_tx_sched_layers_set (struct devlink *devlink , u32 id ,
       struct devlink_param_gset_ctx *ctx , struct netlink_ext_ack *extack );

so it returns an int, takes four things, and yes you have to keep them in that exact order, no cap πŸ”₯


πŸ¦‹ ARGUMENTS πŸ¦‹

  • devlink β€” pointer to the devlink instance, like your lil handle to the thing πŸŽ€
  • id β€” the parameter ID to set, iykyk which one you're poking at
  • ctx β€” context to get the parameter value; that's where the value situation lives πŸ’–
  • extack β€” the netlink extended ACK structure, for when the kernel needs to talk back ✨

🌈 RETURN 🌈

  • zero on success β€” slay πŸ‘‘
  • negative value on failure β€” not slay, but that's the contract 😭
fr fr, zero means good, negative means something went sideways. Don't invert that, bestie πŸ’€

⭐ SEE ALSO ⭐

the kernel file it lives in, for the curious:

./drivers/net/ethernet/intel/ice/devlink/devlink.c

and the whole friend group, in order 🧚:

ice_devlink_info_get(9), ice_devlink_reload_empr_start(9), ice_devlink_reinit_down(9), ice_devlink_reload_down(9), ice_devlink_reload_empr_finish(9), ice_get_tx_topo_user_sel(9), ice_update_tx_topo_user_sel(9), ice_devlink_tx_sched_layers_get(9), ice_devlink_tx_sched_layers_validate(9), ice_tear_down_devlink_rate_tree(9), ice_enable_custom_tx(9), ice_traverse_tx_tree(9), ice_devlink_rate_init_tx_topology(9), ice_devlink_rate_clear_tx_topology(9), ice_set_object_tx_share(9), ice_set_object_tx_max(9), ice_set_object_tx_priority(9), ice_set_object_tx_weight(9), ice_get_pi_from_dev_rate(9), ice_devlink_reinit_up(9), ice_devlink_reload_up(9), ice_devlink_local_fwd_mode_to_str(9), ice_devlink_local_fwd_str_to_mode(9), ice_devlink_local_fwd_get(9), ice_devlink_local_fwd_set(9), ice_devlink_local_fwd_validate(9), ice_allocate_pf(9), ice_allocate_sf(9), ice_devlink_register(9), ice_devlink_unregister(9), ice_devlink_nvm_snapshot(9), ice_devlink_nvm_read(9), ice_devlink_devcaps_snapshot(9), ice_devlink_init_regions(9), ice_devlink_destroy_regions(9)


aaaand that's the page πŸŽ€ source/version is ./drivers/net/ethernet/intel/i... and it's dated October 2026, footer still whispering ice_devlink...d_layers_set(9) at us. bye bestie, go set some layers πŸ’–βœ¨πŸ¦‹

πŸ“¦ where this page comes from