Browse Source

lsfd: add ENDPOINTS column

The field is for printing the information about the IPC
endpoints.

Signed-off-by: Masatake YAMATO <yamato@redhat.com>
pull/1622/head
Masatake YAMATO 5 months ago
parent
commit
66f31d8dfd
  1. 3
      misc-utils/lsfd.1.adoc
  2. 2
      misc-utils/lsfd.c
  3. 1
      misc-utils/lsfd.h

3
misc-utils/lsfd.1.adoc

@ -133,6 +133,9 @@ ID of the device containing the file.
DEVTYPE <__string__>::
Device type (_blk_, _char_, or _nodev_).
ENDPOINT <__string__>::
IPC endpoints information communicated with the fd.
FD <__number__>::
File descriptor for the file.

2
misc-utils/lsfd.c

@ -133,6 +133,8 @@ static struct colinfo infos[] = {
N_("ID of device containing file") },
[COL_DEVTYPE] = { "DEVTYPE", 0, SCOLS_FL_RIGHT, SCOLS_JSON_STRING,
N_("device type (blk, char, or nodev)") },
[COL_ENDPOINTS] ={"ENDPOINTS",0, 0, SCOLS_JSON_STRING,
N_("IPC endpoints information communicated with the fd") },
[COL_FLAGS] = { "FLAGS", 0, SCOLS_FL_RIGHT, SCOLS_JSON_STRING,
N_("flags specified when opening the file") },
[COL_FD] = { "FD", 0, SCOLS_FL_RIGHT, SCOLS_JSON_NUMBER,

1
misc-utils/lsfd.h

@ -43,6 +43,7 @@ enum {
COL_DELETED,
COL_DEV,
COL_DEVTYPE,
COL_ENDPOINTS,
COL_FD,
COL_FLAGS,
COL_INODE,

Loading…
Cancel
Save