devfs
[Top] [All Lists]

Re: checking mount status from kernelspace

To: "Michael F. Brown" <mbrown@xxxxxxx>
Subject: Re: checking mount status from kernelspace
From: Richard Gooch <rgooch@xxxxxxxxxxxxxxx>
Date: Mon, 21 Jan 2002 14:32:56 -0700
Cc: devfs@xxxxxxxxxxx, rgooch@xxxxxxxxxxxxxxx
In-reply-to: <20020121125655.D15662@lapi0061>
References: <20020121125655.D15662@lapi0061>
Sender: owner-devfs@xxxxxxxxxxx
Michael F. Brown writes:
> From kernelspace I'm trying to determine if a devfs filesystem is mounted
> in /dev.
> 
> Userspace just checks for the existence of /dev/.devfsd, and while I could
> hijack sys_call_table[SYS_stat], I thought there must be a cleaner method.
> 
> (i.e. call some devfs_ function and check for some definitive return status)
> 
> Any ideas?

There isn't anything currently in devfs to support this. And I'd
prefer to avoid it: I want to remove code, not add it :-)

What is you are trying to do, anyway?

                                Regards,

                                        Richard....
Permanent: rgooch@xxxxxxxxxxxxx
Current:   rgooch@xxxxxxxxxxxxxxx

<Prev in Thread] Current Thread [Next in Thread>