From: | michael@×××××××××××××.com |
---|---|
To: | gentoo-user@l.g.o |
Subject: | [gentoo-user] how to find if a program is using a particular /dev device? |
Date: | Fri, 18 Nov 2005 08:00:41 |
Message-Id: | Pine.LNX.4.64.0511172350080.14423@mail.magrittesystems.com |
1 | I have a custom device driver in /dev/ that can only be used by one |
2 | program at a time. Since the device is /dev/ttyUSB0, I can see if anyone |
3 | is using it by: |
4 | |
5 | ls -l /proc/*/fd/* | grep ttyUSB0 |
6 | |
7 | Is there a utility or other better way I can discover which process, or |
8 | better, which program, is using a particular device? |
9 | |
10 | Thanks, |
11 | Michael |
12 | -- |
13 | gentoo-user@g.o mailing list |
Subject | Author |
---|---|
Re: [gentoo-user] how to find if a program is using a particular /dev device? | John Myers <electronerd@×××××××××××××.net> |