| To: | "Kevin P. Fleming" <kevin@xxxxxxxxxxxxx> |
|---|---|
| Subject: | Re: Userspace application check for devfs in use? |
| From: | Richard Gooch <rgooch@xxxxxxxxxxxxxxx> |
| Date: | Tue, 17 Jul 2001 00:41:43 -0600 |
| Cc: | <devfs@xxxxxxxxxxx> |
| In-reply-to: | <000901c10e76$c8ee6140$6baaa8c0@kevin> |
| References: | <000901c10e76$c8ee6140$6baaa8c0@kevin> |
| Sender: | owner-devfs@xxxxxxxxxxx |
Kevin P. Fleming writes:
> What is the proper (documented, recommended, whatever) method for a
> userspace application to check if the /dev filesystem is coming from devfs
> or not? I am modifying a tunneling application to use new-style /dev paths
> if devfs is in use, but it needs to know...
>
> Right now I'm just relying on a stat() of /dev/.devfsd returning
> without an error if devfs is mounted on /dev, but that may not be
> optimal (or future-proof). Any other suggestions?
That *is* the correct method. But don't test for filetype. Just
existence.
Regards,
Richard....
Permanent: rgooch@xxxxxxxxxxxxx
Current: rgooch@xxxxxxxxxxxxxxx
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Userspace application check for devfs in use?, Kevin P. Fleming |
|---|---|
| Next by Date: | Re: autoloading modules, Richard Gooch |
| Previous by Thread: | Userspace application check for devfs in use?, Kevin P. Fleming |
| Next by Thread: | Re: Userspace application check for devfs in use?, Kevin P. Fleming |
| Indexes: | [Date] [Thread] [Top] [All Lists] |