Subject: Re: [PATCH iproute] iptuntap: show processes using tuntap interface

From: Stephen Hemminger <[email-masked]>
Date: Thu, 25 Aug 2016 08:44:24 -0700

On Wed, 24 Aug 2016 20:08:25 +0200
Hannes Frederic Sowa <[email-masked]> wrote:

> Show which processes are using which tun/tap devices, e.g.:
> 
> $ ip -d tuntap
> tun0: tun
> 	Attached to processes: vpnc(9531)
> vnet0: tap vnet_hdr
> 	Attached to processes: qemu-system-x86(10442)
> virbr0-nic: tap UNKNOWN_FLAGS:800
> 	Attached to processes:
> 
> Signed-off-by: Hannes Frederic Sowa <[email-masked]>

I think reading all of /proc like this will scale really badly on large systems.
Why reinvent lsof?