El Fri, Sep 19, 2008 at 07:24:40PM +0530 Nalajala Murali ha dit:maybe instead of figuring out where your device is mapped you could use udev rules to enforce a mapping. udev rules are usually defined in /etc/udev/rules.d/, the format is described in http://www.reactivated.net/writing_udev_rules.html for example i use the following rules to map a usb stick on the first usb controller of an embedded device to /dev/usbhda: KERNEL=="sd?", SUBSYSTEM=="block", KERNELS=="1-1:1.0", SUBSYSTEMS=="usb", SYMLINK="usbhda" KERNEL=="sd*[0-9]", SUBSYSTEM=="block", KERNELS=="1-1:1.0", ACTION=="add", SYMLINK="usbhda%n" the application could use inotify(7) to watch /dev and be informed when the device node is added or removed -- Matthias Kaehlcke Embedded Linux Engineer Barcelona If you don't know where you are going, you will probably end up somewhere else (Laurence J. Peter) .''`. using free software / Debian GNU/Linux | http://debian.org : :' : `. `'` gpg --keyserver pgp.mit.edu --recv-keys 47D8E5D4 `- -- To unsubscribe from this list: send an email with "unsubscribe kernelnewbies" to ecartis@nl.linux.org Please read the FAQ at http://kernelnewbies.org/FAQ
| Greg KH | [GIT PATCH] driver core patches against 2.6.24 |
| James Bottomley | Re: Integration of SCST in the mainstream Linux kernel |
| Stephen Rothwell | Re: Announce: Linux-next (Or Andrew's dream :-)) |
| Arjan van de Ven | Re: [malware-list] [RFC 0/5] [TALPA] Intro to a linux interfaceforon access scanning |
| Patrick McHardy | Re: [GIT]: Networking |
| Gerrit Renker | [PATCH 27/37] dccp: Integration of dynamic feature activation - part 2 (server side) |
| Jarek Poplawski | [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock(). |
| Eric W. Biederman | Re: namespace support requires network modules to say "GPL" |
git: | |
