devlink_region_create(9)
π devlink_region_create(9) β a Kernel API Manual moment β¨
okay so bestie, we're in the Kernel API Manual today and the main character is devlink_region_create(9) β say that three times fast, i dare you π«Ά
β¨ NAME β¨
devlink_region_create β create a new address region π lowkey doing exactly what it says on the tin, and honestly? iconic.
π SYNOPSIS π
struct devlink_region * devlink_region_create (struct devlink *devlink ,
const struct devlink_region_ops *ops , u32 region_max_snapshots , u64
region_size );
like, that's the whole signature, no cap. four args, one struct pointer coming back at you π¦
πΈ ARGUMENTS πΈ
devlinkβ thedevlinkitself. yeah. that's the whole description. it's giving "trust me bro, you already know" πopsβ the region operations and the name, so this one's carrying the whole personality of your region fr fr πregion_max_snapshotsβ the maximum supported number of snapshots for the region. maximum. supported. number. so like, the ceiling, the limit, the "don't come for me beyond this" πregion_sizeβ the size of the region. she's au64, she contains multitudes β¨
π₯ CONTEXT π₯
Takes and releasesdevlink->lock<mutex>β so yeah, she grabs the lock and puts it back, very responsible of her, we love a mutex-respecting queen π
π SEE ALSO π
the whole friend group, assembled π«Ά and by friend group i mean the Kernel file ./net/devlink/region.c plus every single one of these besties:
__devlink_snapshot_id_increment(9)__devlink_snapshot_id_decrement(9)__devlink_snapshot_id_insert(9)__devlink_region_snapshot_id_get(9)__devlink_region_snapshot_create(9)devl_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)
that's twelve links and every one of them matters, don't skip a single one i'm watching you ππ
okay that's the whole page, mwah π it lives in ./net/devlink, it's dated October 2026, and the version is literally the same devlink_region_create(9) energy we started with β full circle, 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