mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* 8/16bit usb minor device number problem
@ 2006-09-27  9:00 Andreas Jellinghaus
  0 siblings, 0 replies; only message in thread
From: Andreas Jellinghaus @ 2006-09-27  9:00 UTC (permalink / raw)
  To: linux-kernel

I have the minor number of usb devices in /dev/bus/usb trunkated.
where do I look for debugging this problem? kernel? filesystem code?
udev? glibc? something else?

foo:/dev/bus/usb/003# ls -l
total 0
crw-rw-r--  1 root root 189, 0 Sep 26 11:52 001
crw-rw-r--  1 root root 189, 1 Sep 26 11:52 002
foo:/dev/bus/usb/003# cat /sys/class/usb_device/usbdev3.2/dev
189:257
foo:/dev/bus/usb/003#

no wonder my app fails talking to the device, it was
created with the wrong minor device number.

debian package with backport to sarge:
Version: 0.100-1~bpo.1

udev config:
# usbfs-like devices
SUBSYSTEM=="usb_device",        PROGRAM="/bin/sh -c 'K=%k;
K=$${K#usbdev}; printf bus/usb/%%03i/%%03i $${K%%%%.*} $${K#*.}'", \
                                 NAME="%c"

for now I can work around it with "rm -rf /dev/bus", but can
someone help me finding the real solution?

Thanks, Andreas

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2006-09-27  9:00 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-09-27  9:00 8/16bit usb minor device number problem Andreas Jellinghaus

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome