# devlink-region - devlink address region access - man(8) - [phpMan]

[_DEVLINK-REGION_(8)](https://www.chedong.com/phpMan.php/man/DEVLINK-REGION/8/markdown)                               Linux                              [_DEVLINK-REGION_(8)](https://www.chedong.com/phpMan.php/man/DEVLINK-REGION/8/markdown)

## NAME
       devlink-region - devlink address region access

## 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
### devlink region show - Show all supported address regions names, snapshots and sizes
       _DEV/REGION_ - specifies the devlink device and address-region to query.


### devlink region new - Create a snapshot specified by address-region name and snapshot ID
       _DEV/REGION_ - specifies the devlink device and address-region to snapshot


       snapshot _SNAPSHOT_ID_ - optionally specifies the snapshot ID to assign. If not specified, de‐
       vlink will assign a unique ID to the snapshot.


### devlink region del - Delete a snapshot specified by address-region name and snapshot ID
       _DEV/REGION_ - specifies the devlink device and address-region to delete the snapshot from


       snapshot _SNAPSHOT_ID_ - specifies the snapshot ID to delete


### devlink region dump - Dump all the available data from a region or from snapshot of a region
       _DEV/REGION_ - specifies the device and address-region to dump from.


       snapshot _SNAPSHOT_ID_ - specifies the snapshot-id of the region to dump.


### devlink region read - Read from a specific region address for a given length
       _DEV/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


## SEE ALSO
       [**devlink**(8)](https://www.chedong.com/phpMan.php/man/devlink/8/markdown), [**devlink-dev**(8)](https://www.chedong.com/phpMan.php/man/devlink-dev/8/markdown), [**devlink-port**(8)](https://www.chedong.com/phpMan.php/man/devlink-port/8/markdown), [**devlink-monitor**(8)](https://www.chedong.com/phpMan.php/man/devlink-monitor/8/markdown),


## AUTHOR
       Alex Vesker <<valex@mellanox.com>>

iproute2                                     10 Jan 2018                           [_DEVLINK-REGION_(8)](https://www.chedong.com/phpMan.php/man/DEVLINK-REGION/8/markdown)
