1DEVLINK-REGION(8)                    Linux                   DEVLINK-REGION(8)
2
3
4

NAME

6       devlink-region - devlink address region access
7

SYNOPSIS

9       devlink [ OPTIONS ] region  { COMMAND | help }
10
11
12       OPTIONS := { -V[ersion] | -n[no-nice-names] }
13
14       devlink region show [ DEV/REGION ]
15
16       devlink region new DEV/REGION [ snapshot SNAPSHOT_ID ]
17
18       devlink region del DEV/REGION snapshot SNAPSHOT_ID
19
20       devlink region dump DEV/REGION snapshot SNAPSHOT_ID
21
22       devlink region read DEV/REGION [ snapshot SNAPSHOT_ID ] address ADDRESS
23               length LENGTH
24
25       devlink region help
26
27

DESCRIPTION

29   devlink region show - Show all supported address regions names, snapshots
30       and sizes
31       DEV/REGION - specifies the devlink device and address-region to query.
32
33
34   devlink region new - Create a snapshot specified by address-region name and
35       snapshot ID
36       DEV/REGION - specifies the devlink device and address-region to snap‐
37       shot
38
39
40       snapshot SNAPSHOT_ID - optionally specifies the snapshot ID to assign.
41       If not specified, devlink will assign a unique ID to the snapshot.
42
43
44   devlink region del - Delete a snapshot specified by address-region name and
45       snapshot ID
46       DEV/REGION - specifies the devlink device and address-region to delete
47       the snapshot from
48
49
50       snapshot SNAPSHOT_ID - specifies the snapshot ID to delete
51
52
53   devlink region dump - Dump all the available data from a region or from
54       snapshot of a region
55       DEV/REGION - specifies the device and address-region to dump from.
56
57
58       snapshot SNAPSHOT_ID - specifies the snapshot-id of the region to dump.
59
60
61   devlink region read - Read from a specific region address for a given
62       length
63       DEV/REGION - specifies the device and address-region to read from.
64
65
66       snapshot SNAPSHOT_ID - specifies the snapshot-id of the region to read.
67
68
69       address ADDRESS - specifies the address to read from.
70
71
72       length LENGTH - specifies the length of data to read.
73
74

EXAMPLES

76       devlink region show
77           List available address regions and snapshot.
78
79       devlink region new pci/0000:00:05.0/cr-space
80           Create a new snapshot from cr-space address region from device
81           pci/0000:00:05.0.
82
83       devlink region del pci/0000:00:05.0/cr-space snapshot 1
84           Delete snapshot id 1 from cr-space address region from device
85           pci/0000:00:05.0.
86
87       devlink region dump pci/0000:00:05.0/cr-space snapshot 1
88           Dump the snapshot taken from cr-space address region with ID 1
89
90       devlink region read pci/0000:00:05.0/cr-space snapshot 1 address 0x10
91       length 16
92           Read from address 0x10, 16 Bytes of snapshot ID 1 taken from cr-
93           space address region
94
95

SEE ALSO

97       devlink(8), devlink-dev(8), devlink-port(8), devlink-monitor(8),
98
99

AUTHOR

101       Alex Vesker <valex@mellanox.com>
102
103
104
105iproute2                          10 Jan 2018                DEVLINK-REGION(8)
Impressum