diff options
author | Masatake YAMATO <yamato@redhat.com> | 2014-01-29 16:43:31 +0900 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-01-28 23:46:56 -0800 |
commit | 93e14b6d776e850a371fe4234a06088f210d8651 (patch) | |
tree | 18422336d2b25bc595dfea498d553e0d71ae3130 /Documentation/hwmon/zl6100 | |
parent | 52efcea59eeae9f850e544c41764954273b0912c (diff) | |
download | talos-op-linux-93e14b6d776e850a371fe4234a06088f210d8651.tar.gz talos-op-linux-93e14b6d776e850a371fe4234a06088f210d8651.zip |
tun: add device name(iff) field to proc fdinfo entry
A file descriptor opened for /dev/net/tun and a tun device are
connected with ioctl. Though understanding the connection is
important for trouble shooting, no way is given to a user to know
the connected device for a given file descriptor at userland.
This patch adds a new fdinfo field for the device name connected to
a file descriptor opened for /dev/net/tun.
Here is an example of the field:
# lsof | grep tun
qemu-syst 4565 qemu 25u CHR 10,200 0t138 12921 /dev/net/tun
...
# cat /proc/4565/fdinfo/25
pos: 138
flags: 0104002
iff: vnet0
# ip link show dev vnet0
8: vnet0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 ...
changelog:
v2: indent iff just like the other fdinfo fields are.
v3: remove unused variable.
Both are suggested by David Miller <davem@davemloft.net>.
Signed-off-by: Masatake YAMATO <yamato@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'Documentation/hwmon/zl6100')
0 files changed, 0 insertions, 0 deletions