I'm writing a PCI character device driver and need some clairification.

As I see the FreeBSD driver structure there are really two components to a
device driver, there is the KLD component which contains the device methods
for probe, attach, detach, etc and handles the dynamic componet of the
driver. Then there is the traditional Unix cdevsw structure which handles
the read, write, ioctl etc.

The few places the KLD is documented really doesn't cover the link between
the two elements KLD and cdevsw. I understand that if successsfully probed
the attach creates the dev_t using the cdevw table. But I'm having
difficulty seeing the relationship.

Would it be fair to say the KLD components represent the dynamics kernel
facilities and the cdevsw implments what we consider the "traditional" Unix
device driver. Could somebody shed light on this subject.

Thanks in advance!





To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message

Reply via email to