DEVLINK-REGION(8)
๐ DEVLINK-REGION(8) ๐
โจ NAME โจ
okay bestie, this is devlink-region ๐ฆ, the devlink address region access tool. it lets you poke at device address regions, snapshot them, and read or dump the data ๐ฅ
๐ SYNOPSIS ๐
devlink [ OPTIONS ] region { COMMAND | help }
OPTIONS := { -V[ersion] | -n[no-nice-names] }
devlink region show [ DEV/REGION ]
devlink region new DEV/REGION [ snapshot SNAPSHOT_ID ]
devlink region del DEV/REGION snapshot SNAPSHOT_ID
devlink region dump DEV/REGION snapshot SNAPSHOT_ID
devlink region read DEV/REGION [ snapshot SNAPSHOT_ID ] address ADDRESS
length LENGTH
devlink region help
๐ธ DESCRIPTION ๐ธ
the whole vibe here is that each subcommand does its own thing, so let's go one by one ๐
๐ฆ devlink region show
this one is giving list everything. it shows all the supported address regions, their names, snapshots, and sizes โจ
DEV/REGIONโ tells devlink which device and address region you want to look at ๐ง
๐ devlink region new
this one makes a snapshot of an address region, identified by its name and snapshot ID ๐ธ
DEV/REGIONโ the device and address region you want to snapshot ๐snapshot SNAPSHOT_IDโ totally optional! if you pass an ID, that's the one that gets assigned. if you don't, devlink picks a unique ID for you ๐ซถ
๐ devlink region del
bye bye snapshot ๐ this deletes a snapshot, picked out by address region name and snapshot ID ๐
DEV/REGIONโ the device and address region you're deleting the snapshot from ๐snapshot SNAPSHOT_IDโ the snapshot ID you want gone ๐ฅ
๐ง devlink region dump
main character moment: this dumps all the available data from a region, or from a snapshot of a region ๐
DEV/REGIONโ the device and address region you're dumping from ๐ธsnapshot SNAPSHOT_IDโ the snapshot ID of the region you want to dump ๐
๐ devlink region read
this one reads from a specific address in a region, for a given length. very precise, very iconic โจ
DEV/REGIONโ the device and address region you're reading from ๐ฆsnapshot SNAPSHOT_IDโ the snapshot ID of the region you want to read ๐address ADDRESSโ the address you want to start reading from ๐ซถlength LENGTHโ how much data you want to read ๐
โญ OPTIONS โญ
-V[ersion]โ shows the version of the tool ๐-n[no-nice-names]โ turns off the pretty names ๐
๐ EXAMPLES ๐
okay so here's how it looks in action, no cap ๐
devlink region show
list the available address regions and snapshots ๐ฆ
devlink region new pci/0000:00:05.0/cr-space
make a brand new snapshot of the cr-space address region on device pci/0000:00:05.0 ๐ธ
devlink region del pci/0000:00:05.0/cr-space snapshot 1
delete snapshot ID 1 from the cr-space address region on device pci/0000:00:05.0 ๐
devlink region dump pci/0000:00:05.0/cr-space snapshot 1
dump the snapshot with ID 1 that was taken from the cr-space address region ๐ง
devlink region read pci/0000:00:05.0/cr-space snapshot 1 address 0x10
length 16
read from address 0x10, grabbing 16 bytes from snapshot ID 1 taken from the cr-space address region ๐
๐ซถ SEE ALSO ๐ซถ
you'll want to check these out too, bestie ๐
devlink(8), devlink-dev(8), devlink-port(8), devlink-monitor(8),
๐ AUTHOR ๐
written by Alex Vesker <valex@mellanox.com> ๐
bestie, that's the whole page! ๐ this came from iproute2, dated 10 Jan 2018, and it's still giving ๐ โจ
๐ฆ where this page comes from
- alpine 3.22: iproute2-doc 6.15.0-r0 ยท GPL-2.0-or-later
- alpine 3.23: iproute2-doc 6.17.0-r0 ยท GPL-2.0-or-later
- alpine 3.24: iproute2-doc 7.0.0-r0 ยท GPL-2.0-or-later
- arch rolling: iproute2 7.2.0-1
- arch rolling: iproute2 7.3.0-1 ยท GPL-2.0-or-later
- centos-stream 10: iproute 7.0.0-2.el10 ยท GPL-2.0-or-later AND NIST-PD
- centos-stream 9: iproute 6.17.0-3.el9 ยท GPL-2.0-or-later AND NIST-PD
- debian bookworm: iproute2 6.1.0-3 ยท GPL-2.0-only
- debian trixie: iproute2 6.15.0-1 ยท GPL-2.0-only
- fedora 43: iproute 6.14.0-2.fc43 ยท GPL-2.0-or-later AND NIST-PD
- fedora 44: iproute 6.17.0-2.fc44 ยท GPL-2.0-or-later AND NIST-PD
- nixos 26.05: iproute2 7.0.0
- nixpkgs unstable: iproute2 7.2.0
- opensuse-leap 16.0: iproute2 6.12-160000.4.1 ยท GPL-2.0-only
- opensuse-leap 16.0: iproute2 6.12-160000.4.1 ยท GPL-2.0-only
- opensuse-leap 16.0: iproute2 6.12-160000.4.1 ยท GPL-2.0-only
- opensuse-leap 16.0: iproute2 6.12-160000.4.1 ยท GPL-2.0-only
- ubuntu noble: iproute2 6.1.0-1ubuntu6 ยท GPL-2.0-only
- ubuntu noble: iproute2 6.1.0-1ubuntu6.4 ยท GPL-2.0-only
- ubuntu questing: iproute2 6.16.0-1ubuntu2
- ubuntu questing: iproute2 6.16.0-1ubuntu2.1 ยท GPL-2.0-only
- ubuntu questing: iproute2 6.16.0-1ubuntu2.2
- ubuntu resolute: iproute2 6.19.0-1ubuntu1 ยท GPL-2.0-only
- ubuntu resolute: iproute2 6.19.0-1ubuntu1.1 ยท GPL-2.0-only
- ubuntu stonking: iproute2 7.2.0-1ubuntu1 ยท GPL-2.0-only
- ๐ girlified by anthropic/claude-haiku-5.5 on : a language model's rewrite of the original, under its terms