DEVLINK-REGION(8) Linux DEVLINK-REGION(8)

# [NAME](#NAME)

devlink-region - devlink address region access

# [SYNOPSIS](#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](#DESCRIPTION)

## [devlink region show - Show all supported address regions names, snapshots and sizes](#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](#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, devlink will assign a unique ID to the snapshot.

## [devlink region del - Delete a snapshot specified by address-region name and snapshot ID](#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](#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](#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](#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](#SEE_ALSO)

[**devlink**(8)](/man/os/iproute2/devlink.8), [**devlink-dev**(8)](/man/os/iproute2/devlink-dev.8), [**devlink-port**(8)](/man/os/iproute2/devlink-port.8), [**devlink-monitor**(8)](/man/os/iproute2/devlink-monitor.8),

# [AUTHOR](#AUTHOR)

Alex Vesker &lt;valex@mellanox.com&gt;

10 Jan 2018 iproute2

---

Document: devlink-region(8) from iproute2 7.2.0-r1 (Chainguard OS)
Source: https://kernel.googlesource.com/pub/scm/network/iproute2/iproute2
