ice_allocate_pf(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ¦‹ NAME (ice_allocate_pf(9)) πŸ¦‹

okay bestie, welcome to the ice_allocate_pf(9) page from the Kernel API Manual! She does one iconic thing: Allocate devlink and return PF structure pointer. That's the whole name, no cap. πŸ’…


✨ SYNOPSIS ✨

struct ice_pf * ice_allocate_pf (struct device *dev );

Lowkey that's the entire signature. Slay. 🫢


πŸŽ€ ARGUMENTS πŸŽ€

  • dev β€” the device to allocate for. Yep, this is the device the allocation is happening for, main character energy only. ✨

πŸ’– DESCRIPTION πŸ’–

okay so picture this: ice_allocate_pf() allocates a devlink instance for this dev, and then returns the private area as the PF structure. The devlink memory is kept track of through devres β€” by adding an action to remove it when unwinding. That's the tea, fr fr. 🌸

no extra lore, no secret side quests: allocate devlink, hand back the private area as the PF structure, track the devlink memory with devres, and add an action to remove it when unwinding. iconic behavior only. πŸ‘‘

🌈 SEE ALSO 🌈

The kernel file situation is right here, bestie:

  • Kernel file: ./drivers/net/ethernet/intel/ice/devlink/devlink.c

and the whole devlink/ice function squad:


xoxo, your kernel bestie πŸ’œ β€” this page's source/version footer is ./drivers/net/ethernet/intel/i... and the date is October 2026. byeee 🫢 slay

πŸ“¦ where this page comes from