devlink-region - devlink address region access
Contents
Description
devlinkregionshow-Showallsupportedaddressregionsnames,snapshotsandsizesDEV/REGION - specifies the devlink device and address-region to query.
devlinkregionnew-Createasnapshotspecifiedbyaddress-regionnameandsnapshotIDDEV/REGION - specifies the devlink device and address-region to snapshot
snapshot SNAPSHOT_ID - optionally specifies the snapshot ID to assign. If not specified, devlink will
assign a unique ID to the snapshot.
devlinkregiondel-Deleteasnapshotspecifiedbyaddress-regionnameandsnapshotIDDEV/REGION - specifies the devlink device and address-region to delete the snapshot from
snapshot SNAPSHOT_ID - specifies the snapshot ID to delete
devlinkregiondump-DumpalltheavailabledatafromaregionorfromsnapshotofaregionDEV/REGION - specifies the device and address-region to dump from.
snapshot SNAPSHOT_ID - specifies the snapshot-id of the region to dump.
devlinkregionread-ReadfromaspecificregionaddressforagivenlengthDEV/REGION - specifies the device and address-region to read from.
snapshot SNAPSHOT_ID - specifies the snapshot-id of the region to read.
address ADDRESS - specifies the address to read from.
length LENGTH - specifies the length of data to read.
Examples
devlink region show
List available address regions and snapshot.
devlink region new pci/0000:00:05.0/cr-space
Create a new snapshot from cr-space address region from device pci/0000:00:05.0.
devlink region del pci/0000:00:05.0/cr-space snapshot 1
Delete snapshot id 1 from cr-space address region from device pci/0000:00:05.0.
devlink region dump pci/0000:00:05.0/cr-space snapshot 1
Dump the snapshot taken from cr-space address region with ID 1
devlink region read pci/0000:00:05.0/cr-space snapshot 1 address 0x10 length 16
Read from address 0x10, 16 Bytes of snapshot ID 1 taken from cr-space address region
Name
devlink-region - devlink address region access
See Also
devlink(8), devlink-dev(8), devlink-port(8), devlink-monitor(8),
Synopsis
devlink [ OPTIONS ] region { COMMAND | help }
OPTIONS := { -V[ersion] | -n[no-nice-names] }
devlinkregionshow [ DEV/REGION ]
devlinkregionnewDEV/REGION[snapshotSNAPSHOT_ID]devlinkregiondelDEV/REGIONsnapshotSNAPSHOT_IDdevlinkregiondumpDEV/REGIONsnapshotSNAPSHOT_IDdevlinkregionreadDEV/REGION[snapshotSNAPSHOT_ID]addressADDRESSlengthLENGTHdevlinkregionhelp