char device driver and bus ?

Jul 13, 2007 0 Replies

hi all, as we known, linux kernel device driver have three layers: bus, device and dirver. but when a char device register, i will added to: chrdevs[MAX_PROBE_HASH] and it seems dont blong to any bus. does it means that the kernel only use the array chrdevs[MAX_PROBE_HASH] to manager the driver and device? for example, a usb driver and usb device will mach by ID, but when a serial driver and serial device will mach by what ?



if a char deveice doesnt blong to any bus, how to traversal the char devices? the array of chrdevs[MAX_PROBE_HASH] doest EXPORT_SYMBOL



Join the Discussion

Have something to add? Share your thoughts — no account required.

Didn't find your answer?

Ask the community — no account required