ice_sched_add_rl_profile(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… ice_sched_add_rl_profile(9) β€” like, the whole kernel API manual, but make it make sense πŸŽ€

okay so bestie, buckle up β€” this is a page from the Kernel API Manual (section 9, kernel-land, no cap) and it's all about adding an RL profile. yes it's as iconic as it sounds. let's go ✨


🌸 NAME 🌸

ice_sched_add_rl_profile β€” add RL profile. that's it. that's the vibe. πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

struct ice_aqc_rl_profile_info * ice_sched_add_rl_profile (struct
ice_port_info *pi , enum ice_rl_type rl_type , u32 bw , u8 layer_num );

literally copy that exactly, character for character, bestie β€” don't be out here retyping from memory πŸ™ˆ


πŸ“ ARGUMENTS πŸ“

  • pi β€” the port information structure. your port's whole personality, basically 🫢
  • rl_type β€” the type of rate limit BW, and the options are min, max, or shared. pick one, bestie πŸ’…
  • bw β€” bandwidth in Kbps, which is Kilo bits per sec (yes, bits, not bytes β€” read the label 😭)
  • layer_num β€” tells the function which layer to create the profile in. know your layer, own your layer πŸ‘‘

⭐ DESCRIPTION ⭐

so here's the whole storyline 🌈 this function first checks the existing list for the corresponding BW parameter. if it's already there? it returns the associated profile, no drama, we love a shortcut πŸ’–

if it's not there, it creates a new rate limit profile for the requested BW and adds it to the HW DB and local list. new profile, who dis ✨

it returns the new profile, or null on error (yes, null, lowercase n, that's how the page says it β€” don't come for me πŸ’€).

🚨 important bestie alert: the caller needs to hold the scheduler lock. like, actually hold it. this is not a suggestion, this is the whole rules of the group chat πŸ”’

πŸ‘‘ SEE ALSO πŸ‘‘

the guest list is long β€” everyone showed up, and honestly? obsessed. here's the full roster, no cuts, no skips, fr fr πŸŽ€

also the kernel file itself lives at ./drivers/net/ethernet/intel/ice/ice_sched.c β€” that's the source, bestie, go read it if you want the full lore πŸ“–


and that's the page!! πŸ¦‹ mwah πŸ’‹ this one's coming to you live from ./drivers/net/ethernet/intel/ice, October 2026 β€” same time next semester, bestie, stay slay, keep your locks held πŸ’–βœ¨πŸŽ€

πŸ“¦ where this page comes from