Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
129 changes: 65 additions & 64 deletions libnvme/src/nvme/private.h
Original file line number Diff line number Diff line change
Expand Up @@ -196,26 +196,27 @@
double ts_ms; /* timestamp when the stat is updated */
};

struct libnvme_path { // !generate-accessors
struct libnvme_path { // !generate-accessors:read=custom,write=none

Check failure on line 199 in libnvme/src/nvme/private.h

View workflow job for this annotation

GitHub Actions / checkpatch review

WARNING: line length of 85 exceeds 80 columns
struct list_node entry;
struct list_node nentry;

struct libnvme_stat stat[2]; /* gendisk I/O stat */
unsigned int curr_idx; /* current index into the stat[] */
bool diffstat; // !accessors:none
// curr_idx: current index into the stat[]
unsigned int curr_idx; // !access:read=generated,write=generated

Check failure on line 205 in libnvme/src/nvme/private.h

View workflow job for this annotation

GitHub Actions / checkpatch review

WARNING: line length of 81 exceeds 80 columns
bool diffstat; // !access:read=none

struct libnvme_ctrl *c;
struct libnvme_ns *n;

char *name;
char *sysfs_dir;
char *ana_state; // !accessors:none
char *numa_nodes; // !accessors:none
int grpid;
int queue_depth; // !accessors:none
long multipath_failover_count; // !accessors:none
long command_retry_count; // !accessors:none
long command_error_count; // !accessors:none
char *name; // !access:read=generated,write=generated

Check failure on line 211 in libnvme/src/nvme/private.h

View workflow job for this annotation

GitHub Actions / checkpatch review

WARNING: line length of 81 exceeds 80 columns
char *sysfs_dir; // !access:read=generated,write=generated

Check failure on line 212 in libnvme/src/nvme/private.h

View workflow job for this annotation

GitHub Actions / checkpatch review

WARNING: line length of 81 exceeds 80 columns
char *ana_state;
char *numa_nodes;
int grpid; // !access:read=generated,write=generated

Check failure on line 215 in libnvme/src/nvme/private.h

View workflow job for this annotation

GitHub Actions / checkpatch review

WARNING: line length of 81 exceeds 80 columns
int queue_depth;
long multipath_failover_count;
long command_retry_count;
long command_error_count;
};

struct libnvme_ns_head {
Expand All @@ -236,12 +237,12 @@

struct libnvme_stat stat[2]; /* gendisk I/O stat */
unsigned int curr_idx; /* current index into the stat[] */
bool diffstat; // !accessors:none
bool diffstat; // !access:read=none,write=none

struct libnvme_transport_handle *hdl;
__u32 nsid;
char *name;
char *generic_name; // !accessors:none
char *generic_name; // !access:read=custom,write=none
char *sysfs_dir;

int lba_shift;
Expand All @@ -255,82 +256,82 @@
unsigned char uuid[NVME_UUID_LEN];
enum nvme_csi csi;

long command_retry_count; // !accessors:none
long command_error_count; // !accessors:none
long requeue_no_usable_path_count; // !accessors:none
long fail_no_available_path_count; // !accessors:none
long command_retry_count; // !access:read=custom,write=none
long command_error_count; // !access:read=custom,write=none
long requeue_no_usable_path_count; // !access:read=custom,write=none
long fail_no_available_path_count; // !access:read=custom,write=none
};

struct libnvme_ctrl { // !generate-accessors
struct libnvme_ctrl { // !generate-accessors:read=generated,write=none

Check failure on line 265 in libnvme/src/nvme/private.h

View workflow job for this annotation

GitHub Actions / checkpatch review

WARNING: line length of 88 exceeds 80 columns
struct list_node entry;
struct list_head paths;
struct list_head namespaces;
struct libnvme_subsystem *s;

struct libnvme_global_ctx *ctx;
struct libnvme_transport_handle *hdl;
char *name; // !accessors:readonly
char *sysfs_dir; // !accessors:readonly
char *address; // !accessors:none
char *firmware; // !accessors:readonly
char *model; // !accessors:readonly
char *state; // !accessors:none
char *numa_node; // !accessors:readonly
char *queue_count; // !accessors:readonly
char *serial; // !accessors:readonly
char *sqsize; // !accessors:readonly
char *transport; // !accessors:readonly
char *subsysnqn; // !accessors:readonly
char *traddr; // !accessors:readonly
char *trsvcid; // !accessors:readonly
char *dhchap_host_key;
char *dhchap_ctrl_key;
char *keyring;
char *tls_key_identity;
char *tls_key;
char *cntrltype; // !accessors:readonly
char *cntlid; // !accessors:readonly
char *dctype; // !accessors:readonly
char *phy_slot; // !accessors:readonly
char *host_traddr; // !accessors:readonly
char *host_iface; // !accessors:readonly
bool discovery_ctrl;
bool unique_discovery_ctrl;
bool discovered;
bool persistent;
long command_error_count; // !accessors:none
long reset_count; // !accessors:none
long reconnect_count; // !accessors:none
char *name;
char *sysfs_dir;
char *address; // !access:read=custom
char *firmware;
char *model;
char *state; // !access:read=custom

Check failure on line 278 in libnvme/src/nvme/private.h

View workflow job for this annotation

GitHub Actions / checkpatch review

WARNING: please, no space before tabs
char *numa_node;
char *queue_count;
char *serial;
char *sqsize;
char *transport;
char *subsysnqn;
char *traddr;
char *trsvcid;
char *dhchap_host_key; // !access:write=generated
char *dhchap_ctrl_key; // !access:write=generated
char *keyring; // !access:write=generated
char *tls_key_identity; // !access:write=generated
char *tls_key; // !access:write=generated
char *cntrltype;
char *cntlid;
char *dctype;
char *phy_slot;
char *host_traddr;
char *host_iface;
bool discovery_ctrl; // !access:write=generated
bool unique_discovery_ctrl; // !access:write=generated
bool discovered; // !access:write=generated
bool persistent; // !access:write=generated
long command_error_count; // !access:read=custom
long reset_count; // !access:read=custom
long reconnect_count; // !access:read=custom
struct libnvme_fabrics_config cfg;
};

struct libnvme_subsystem { // !generate-accessors
struct libnvme_subsystem { // !generate-accessors:read=generated,write=none

Check failure on line 308 in libnvme/src/nvme/private.h

View workflow job for this annotation

GitHub Actions / checkpatch review

WARNING: line length of 88 exceeds 80 columns
struct list_node entry;
struct list_head ctrls;
struct list_head namespaces;
struct libnvme_host *h;

char *name; // !accessors:readonly
char *sysfs_dir; // !accessors:readonly
char *subsysnqn; // !accessors:readonly
char *model; // !accessors:readonly
char *serial; // !accessors:readonly
char *firmware; // !accessors:readonly
char *subsystype; // !accessors:readonly
char *application;
char *iopolicy; // !accessors:none
char *name;
char *sysfs_dir;
char *subsysnqn;
char *model;
char *serial;
char *firmware;
char *subsystype;
char *application; // !access:write=generated
char *iopolicy; // !access:read=custom
};

struct libnvme_host { // !generate-accessors
struct list_node entry;
struct list_head subsystems;
struct libnvme_global_ctx *ctx;

char *hostnqn; // !accessors:readonly
char *hostid; // !accessors:readonly
char *hostnqn; // !access:read=generated,write=none
char *hostid; // !access:read=generated,write=none
char *dhchap_host_key;
char *hostsymname;
bool pdc_enabled; // !accessors:none
bool pdc_enabled; // !access:read=none,write=custom
bool pdc_enabled_valid; /* set if pdc_enabled doesn't have an undefined
* value */
};
Expand Down
Loading
Loading