__devlink_re...pshot_create(9)
πΈ __devlink_region_snapshot_create β Kernel API Manual πΈ
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 snapshottingdataβ the snapshot data π literally the actual contentssnapshot_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:
__devlink_snapshot_id_increment(9)__devlink_snapshot_id_decrement(9)__devlink_snapshot_id_insert(9)__devlink_region_snapshot_id_get(9)devl_region_create(9)devlink_region_create(9)devlink_port_region_create(9)devl_region_destroy(9)devlink_region_destroy(9)devlink_region_snapshot_id_get(9)devlink_region_snapshot_id_put(9)devlink_region_snapshot_create(9)
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
- 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