I am trying to write a tty driver.... So as usual I tried compiling driver that I got from Linux Device Driver Book.. I've attached the same file here... My problem is..when I try to load this module I get this error. kobject_add failed for ttty3 with -EEXIST, don't try to register things with the same name in the same directory. [<c04d48bf>] kobject_shadow_add+0x150/0x182 [<c04d4a39>] kobject_set_name+0x2b/0x92 [<c053bee1>] device_add+0xa3/0x513 [<c04d45b7>] kobject_get+0xf/0x13 [<c04d492f>] kobject_init+0x2f/0x3f [<c053c8a9>] device_create+0x77/0x9a [<c051fe87>] tty_register_device+0xb5/0xbd [<c0490033>] remove_tree+0x142/0x499 [<c0495245>] create_proc_entry+0x90/0xa4 [<c04968d5>] proc_tty_register_driver+0x32/0x5b [<c05212b9>] tty_register_driver+0x191/0x19a [<dd8530e1>] tiny_init+0xe1/0xf8 [tiny_tty] [<c0429aac>] blocking_notifier_call_chain+0x17/0x1a [<c043a419>] sys_init_module+0x1610/0x1749 [<c04551e8>] __handle_mm_fault+0x37e/0xa80 [<c046586e>] __fput+0x137/0x161 [<c0403cf6>] sysenter_past_esp+0x5f/0x85 ======================= Tiny TTY driver v2.0 And strange thing is.. I can see it in lsmod. I also like to know that how can I test my tty driver...? Is it the case that once we load tty driver..all console get to use it..? Explore your hobbies and interests. Go to http://in.promos.yahoo.com/groups/
Attachment:
tiny_tty.c
Description: Binary data