Hi All, This is the output of dmesg i get when i kldload my module ************************************************************************************************************* <DALLAS HDLC CONTROLLER > mem 0x40300000-0x40300fff irq 11 at device 11.0 on pci1 WARNING: Device driver "hdlc_cdev" has wrong version and is disabled. Recompile KLD module. ************************************************************************************************************* In attach function of pci driver i'll try to create character device interface i just register this like this sc->hdlc_cdev = make_dev (&hdlc_cdevsw,0, UID_ROOT, GID_WHEEL, 0600, "hdlc_cdev");
where static struct cdevsw hdlc_cdevsw = { .d_name = "hdlc_cdev", .d_maj = CDEV_MAJOR, /*251*/ .d_open = hdlc_open, .d_read = hdlc_read, }; in read and write functions i just have some printf statements inorder to test . when i do ls -l /dev/hdlc_cdev crw------- 1 root wheel 251, 0 Sep 20 19:38 /dev/hdlc_cdev cat /dev/hdlc_cdev cat: /dev/hdlc_cdev: Device not configured but why do i get this error Thanks in Advance , Rashmi.N.S _______________________________________________ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "[EMAIL PROTECTED]"