How to list the channels used by a process using the bash command

Is there a way to list the channels used by the current linux process (for example, given its pid name or process) and determine their capacity used?

Sort of:

lspipes -l -p pid

leads to something like:

[rw]  descriptor  size  name

where rw is the type of end of the pipe, and the size is its used capacity

Or something similar

+5
source share
2 answers

1) ls -l /proc/pid/fd

This will display the pipes

lr-x------ 1 prabagaran prabagaran 64 Sep  5 23:01 14 -> pipe:[57729]
l-wx------ 1 prabagaran prabagaran 64 Sep  5 23:01 15 -> pipe:[57728]
lr-x------ 1 prabagaran prabagaran 64 Sep  5 23:01 16 -> pipe:[57731]
lr-x------ 1 prabagaran prabagaran 64 Sep  5 23:01 17 -> pipe:[57730]

2) lsof | grep 57731

wineserve 3641 prabagaran   76w     FIFO        0,8       0t0   57731 pipe
winedevic 3651 prabagaran   16r     FIFO        0,8       0t0   57731 pipe

This is the channel information associated with this process identifier.

+10
source

I really don't think there is such a team. You can try the following:

lsof -p PID | grep FIFO

PID , FIFO ... . "FIFO". , lsof grep, .

- , .

+2

All Articles