static char *get_nvme_ctrl_address(char *path) { char *addrpath; char *address; char *attrpath; char *value; int fd; ssize_t ret; int i;ret = asprintf(&addrpath, "%s/address", path); ret = asprintf(&attrpath, "%s/%s", path, attr);...
def get_id_ctrl(self, vendor=False): """ Wrapper for nvme id-ctrl command. - Args: - None - Returns: - 0 on success, error code on failure. """ if not vendor: id_ctrl_cmd = "nvme id-ctrl " + self.ctrl else: id_ctrl_cmd = "nvme id-ctrl -v " + self.ctrl print id_...
nvme_degrees_string(le16_to_cpu(wctemp)),le16_to_cpu(wctemp)); printf("\n"); } staticvoidstdout_id_ctrl_cctemp(__le16cctemp) { printf(" [15:0] : %ld °C(%u K)\tCritical Composite Temperature Threshold (CCTEMP)\n",
def get_id_ctrl(self, vendor=False): """ Wrapper for nvme id-ctrl command. - Args: - None - Returns: - 0 on success, error code on failure. """ if not vendor: id_ctrl_cmd = "nvme id-ctrl " + self.ctrl else: id_ctrl_cmd = "nvme id-ctrl -v " + self.ctrl print id_...