From: Klaus Hitschler <klaus.hitschler@gmx.de>
To: linux-hotplug@vger.kernel.org
Subject: sysfs & udev & multi-BUS device driver
Date: Mon, 07 Aug 2006 20:51:10 +0000 [thread overview]
Message-ID: <200608072251.10389.klaus.hitschler@gmx.de> (raw)
Hi,
I'm maintaining a device driver for CAN-BUS interfaces since kernel version
2.2.x (Controller Area Network - a BUS for automotive use) . Since that time
I implemented all that nice kernel features which were coming and going.
(http://www.peak-system.com/linux)
The driver now comprises support for ISA/PCI/USB/PCMCIA/Parallelport devices.
All support is done inside the same driver (I know It would be better to
partion it :-))
Now I plan to add support for udev and sysfs.
There's one feature I'd like to retain. The current users do know PCI devices
as /dev/pcan0 to /dev/pcan7, ISA devices as /dev/pcan8 to /dev/pcan15, ...,
USB devices as /dev/pcan32 to /dev/pcan39, and from /dev/pcan40 start PCMCIA
based devices.
With udev rules it should be easy to create device nodes with the same
numbering scheme. But how can I influence the 'kernel name' inside the driver
so I know that my internal 'minor' 32 matches to /dev/pcan32 ?
Can you link me to some infos that I can fill this mind gap between udev in
user space and device registration inside a driver.
Do you detect problems if I register the driver multilpe times for each BUS
ist is associated to?
Regards, Klaus
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid\x120709&bid&3057&dat\x121642
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
next reply other threads:[~2006-08-07 20:51 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-08-07 20:51 Klaus Hitschler [this message]
2006-08-07 21:32 ` sysfs & udev & multi-BUS device driver Greg KH
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200608072251.10389.klaus.hitschler@gmx.de \
--to=klaus.hitschler@gmx.de \
--cc=linux-hotplug@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).