ixgbe_devlin...aps_snapshot(9)
π ixgbe_devlink_devcaps_snapshot(9) π
okay so bestie, welcome to the Kernel API Manual β this is the page for ixgbe_devlink_devcaps_snapshot, and honestly? it's a little cutie. it grabs you a snapshot of your device's capabilities, and the devlink core is gonna handle the boring cleanup. let's get into it π«Ά
β¨ NAME β¨
ixgbe_devlink_devcaps_snapshot β capture a snapshot of device capabilities
like, it literally takes a pic (a snapshot, if you will) of the device caps. no filter needed π
πΈ SYNOPSIS πΈ
int ixgbe_devlink_devcaps_snapshot (struct devlink *devlink , const
struct devlink_region_ops *ops , struct netlink_ext_ack *extack , u8
**data );
int, four args, giving very much "i know what i'm doing" energy β¨
π ARGUMENTS π
devlinkβ the devlink instance π¦ the main character, fr.opsβ the devlink region being snapshotted π« this is the region that's getting its moment.extackβ extended ACK response structure π¨ the receipts structure, y'know.dataβ on exit points to snapshot data buffer π so when this function is done with you,datais pointing at your freshly captured snapshot. iconic.
π DESCRIPTION π
so here's the vibe: this function gets called in response to DEVLINK_CMD_REGION_NEW for the device-caps devlink region. that's the command, that's the region, that's the whole situation, iykyk.
what it does: it captures a snapshot of the device capabilities reported by firmware. yes, firmware said it, we're just writing it down, no cap π₯
and now the best part, bestie β no need to worry with freeing data ππ devlink core takes care of it. you do NOT have to free it yourself. it's handled. put the free() down. step away from the free(). the devlink core has main character energy here and it's gotchu ππ
β RETURN β
0on success π slay-ENOMEMwhen it cannot alloc mem π the memory said no- or the return code of the reading operation π basically, whatever the read came back with
real talk though: check that return value, bestie. -ENOMEM is very much a thing that can happen here π«Ά
π¦ SEE ALSO π¦
- Kernel file
./drivers/net/ethernet/intel/ixgbe/devlink/region.cπ ixgbe_devlink_nvm_snapshot(9)ixgbe_devlink_nvm_read(9)ixgbe_devlink_init_regions(9)ixgbe_devlink_destroy_regions(9)
the whole friend group, honestly π go read them, they're all part of the lore π
and that's the page!! mwah π this one came from ./drivers/net/ethernet/intel/i... and it's dated October 2026, so jot that down, and remember the title if anyone asks: ixgbe_devlin...aps_snapshot(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