> Thanks, Dave. Here's what I get. Looks like 81 is right for the major,
> but the name doesn't agree with the name of the driver, which is pwc.o
> or videodev.o, I'm not sure which.
Right, you can register a driver name with the register_chrdev, and
that's what shows up in /proc/devices. Take a look in the code,
and I'm sure that'll be what you find.
> :setpwc-1.2# cat /proc/devices
> Character devices:
> 1 mem
> 2 pty/m%d
> 3 pty/s%d
> 4 tts/%d
> 5 cua/%d
> 7 vcs
> 10 misc
> 29 fb
> 81 video_capture
> 90 mtd
> 128 ptm
> 129 ptm
> 130 ptm
> 131 ptm
> 136 pts/%d
> 137 pts/%d
> 138 pts/%d
> 139 pts/%d
> 162 raw
> 180 usb
> 204 ttyAM%d
> 205 cuaam%d
>
> Is there anything significant about the fact that my drivers are .o's
> and your's is a .ko?
Not really. The driver was running on a 2.6 system, and
thats the extension the 2.6 kernel uses.
Hmm, I would imagine that if you have created a
/dev/node with major 81, then the driver is being called.
Put a printk() statement in the init() function of the
driver and use dmesg to see the printk output.
Then iterate :)
Look on the bright-side, you'll get to learn about drivers ;)
Dave
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/ts-7000/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/ts-7000/join
(Yahoo! ID required)
<*> To change settings via email:
<*> To unsubscribe from this group, send an email to:
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|