Adding upstream version 1.15.
Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
parent
2066c5b305
commit
90b6101daf
116 changed files with 6031 additions and 2284 deletions
9
nvme.h
9
nvme.h
|
@ -82,6 +82,7 @@ struct nvme_ctrl {
|
|||
char *traddr;
|
||||
char *trsvcid;
|
||||
char *host_traddr;
|
||||
char *host_iface;
|
||||
char *hostnqn;
|
||||
char *hostid;
|
||||
|
||||
|
@ -120,6 +121,7 @@ enum nvme_print_flags validate_output_format(const char *format);
|
|||
int __id_ctrl(int argc, char **argv, struct command *cmd,
|
||||
struct plugin *plugin, void (*vs)(__u8 *vs, struct json_object *root));
|
||||
char *nvme_char_from_block(char *block);
|
||||
int nvme_logical_block_size_from_ns_char(const char *dev);
|
||||
void *mmap_registers(const char *dev);
|
||||
|
||||
extern int current_index;
|
||||
|
@ -144,4 +146,11 @@ int uuid_from_systemd(char *uuid);
|
|||
|
||||
unsigned long long elapsed_utime(struct timeval start_time,
|
||||
struct timeval end_time);
|
||||
|
||||
static inline void nvme_strip_spaces(char *s, int l)
|
||||
{
|
||||
while (l && (s[l] == '\0' || s[l] == ' '))
|
||||
s[l--] = '\0';
|
||||
}
|
||||
|
||||
#endif /* _NVME_H */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue