From: Masatake YAMATO Date: Mon, 7 Mar 2022 13:18:15 +0000 (+0900) Subject: lsfd: add ENDPOINTS column X-Git-Tag: v2.39-rc1~709^2~3 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=66f31d8dfdaae2dc98913138f200287db8db7669;p=thirdparty%2Futil-linux.git lsfd: add ENDPOINTS column The field is for printing the information about the IPC endpoints. Signed-off-by: Masatake YAMATO --- diff --git a/misc-utils/lsfd.1.adoc b/misc-utils/lsfd.1.adoc index 72a7c10a43..ca9d8287d4 100644 --- a/misc-utils/lsfd.1.adoc +++ b/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. diff --git a/misc-utils/lsfd.c b/misc-utils/lsfd.c index 8d593fa279..88b9205cb1 100644 --- a/misc-utils/lsfd.c +++ b/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, diff --git a/misc-utils/lsfd.h b/misc-utils/lsfd.h index cf2cb52b30..b6c533b4ab 100644 --- a/misc-utils/lsfd.h +++ b/misc-utils/lsfd.h @@ -43,6 +43,7 @@ enum { COL_DELETED, COL_DEV, COL_DEVTYPE, + COL_ENDPOINTS, COL_FD, COL_FLAGS, COL_INODE,