devfs
[Top] [All Lists]

Re: devfs_get_name() or header file needed

To: Robert Siemer <siemer@xxxxxxxxxxxxxxxxxx>
Subject: Re: devfs_get_name() or header file needed
From: Richard Gooch <rgooch@xxxxxxxxxxxxxxx>
Date: Mon, 11 Sep 2000 08:51:37 -0600
Cc: devfs@xxxxxxxxxxx
In-reply-to: <20000911130926B.siemer@xxxxxxxxxxxxxxxxxx>
References: <20000911130926B.siemer@xxxxxxxxxxxxxxxxxx>
Sender: owner-devfs@xxxxxxxxxxx
Robert Siemer writes:
> Hi!  (:
> 
> I'm writing a device driver for my RDS radio tuner. I need to create
> some files in /proc/rds/radio0/. To get the correct name of my radio
> (radio0 in this example) I want to fetch it from the
> video_device.devfs_handle->name   pointer.

Hm. Might it perhaps be cleaner to create your extra files in devfs
instead? procfs has been overloaded from it's original purpose, but
now that we have devfs, we don't have to continue with the same
brokenness.

> Problem: devfs_entry is kept private (no header file) and

And so it shall stay.

> devfs_get_name() is not exported, so I cant use it with my
> device.devfs_handle.
> 
> Is there any reason to not export it?
> (kernel 2.4.0-testX)

No. I just forgot to export it.

> PS: Can I do something against modprobe race conditions with devfsd?

Which race conditions are you talking about?

                                Regards,

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

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