__devlink_re...pshot_create(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

okay so bestie, welcome to the Kernel API Manual, and today's main character is __devlink_region_snapshot_create πŸ’…

✨ NAME ✨

__devlink_region_snapshot_create β€” create a new snapshot πŸŽ€

This will add a new snapshot of a region. The snapshot will be stored on the region struct and can be accessed from devlink. This is useful for future analyses of snapshots πŸ”βœ¨ Multiple snapshots can be created on a region. The @snapshot_id should be obtained using the getter function β€” iykyk, don't just make one up πŸ™ˆ


πŸ¦‹ SYNOPSIS πŸ¦‹

int __devlink_region_snapshot_create (struct devlink_region *region , u8
*data , u32 snapshot_id );

🌈 ARGUMENTS 🌈

  • region β€” the devlink region of the snapshot πŸ‘‘ this is your whole vibe, the thing you're snapshotting
  • data β€” the snapshot data πŸ“ literally the actual contents
  • snapshot_id β€” the snapshot id to be created ⭐ this is the one you got from the getter function, no cap

πŸ’œ DESCRIPTION πŸ’œ

Must be called only while holding the region snapshot lock πŸ”’πŸ˜€

fr fr, no negotiating on this one. Take the lock first, then call. That's the whole rule. Not me being dramatic, it's just the deal πŸ’€


πŸ‘‘ SEE ALSO πŸ‘‘

Kernel file ./net/devlink/region.c 🫢 plus all these iconic siblings:


slay, that's the whole page πŸ’…βœ¨ this cutie ships from ./net/devlink, dated October 2026 β€” go forth and snapshot responsibly bestie, and remember the lock πŸ”’πŸŽ€πŸ¦‹

πŸ“¦ where this page comes from