1lsm_local_disk_link_speed_gLeitb(s3t)oragemgmt C APIlMsamn_ulaolcal_disk_link_speed_get(3)
2
3
4

NAME

6       lsm_local_disk_link_speed_get -
7

SYNOPSIS

9       int  lsm_local_disk_link_speed_get  (const  char  *disk_path,  uint32_t
10       *link_speed, lsm_error **lsm_err);
11

ARGUMENTS

13       disk_path   String. The path  of  block  device,  example:  "/dev/sdb",
14                   "/dev/nvme0n1".
15
16       link_speed  Output pointer of link speed in Mbps.
17
18       lsm_err     Output  pointer  of  lsm_error.  Error message could be re‐
19                   trieved via lsm_error_message_get. Memory should  be  freed
20                   by lsm_error_free.
21

DESCRIPTION

23       1.4
24
25       Query  the  current negotiated disk link speed.  Requires permission to
26       open disk path(root user or disk group).  The output speed is in  Mbps.
27       For  example, 3.0 Gbps will get 3000.  Set to 0(LSM_DISK_LINK_SPEED_UN‐
28       KNOWN) if error.
29

RETURN

31       Error code as enumerated by 'lsm_error_number':
32           * LSM_ERR_OK
33               On success.
34           * LSM_ERR_INVALID_ARGUMENT
35               When any argument is NULL
36           * LSM_ERR_LIB_BUG
37               When something unexpected happens.
38           * LSM_ERR_NOT_FOUND_DISK
39               When provided disk path not found.
40           * LSM_ERR_PERMISSION_DENIED
41               Insufficient permission to access provided disk path.
42           * LSM_ERR_NO_SUPPORT
43               Action is not supported.
44
45
46
47May 2021                 lsm_local_disk_link_splesemd__lgoectal_disk_link_speed_get(3)
Impressum