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
|