character driver .
hi,
i have written a character driver which works fine...when i run the application again with using rmmod it crashes that is: [char_driver]#make [char_driver]#insmod ./modules/lkm.ko [char_driver]#mknod node c 250 0 [char_driver]#./a.out node till here it works but when i type the following line [char_driver]#./a.out node it crashes ..... any solution...... waiting for reply. |
please post it only in one forum..
|
Quote:
|
completions in character driver in linux
hi,
i am trying o implement completion. i have to simple applications one for read and other for write. my code is as follows struct sculldev{ ........... ........... struct completiom my_completion; ....... ............ }; scullread(........) {declare vriables......struct sculldev *lsculldev; wait_for_completion(lsculldev->my_completion); ............. } scull_write(...........) { declare vriables......struct sculldev *lsculldev; ............................................ ............code........................ ............code....................... complete(&lsculldev->my_completion); return 0; } HOWEVER WHEN I RUN THE APPLICATION THE SYSTEM CRASHES. the messages in var/log/messages is BUG: sleeping function called from invalid context at arch/x86/mm fault.c in_atomic(): 0, irqs_disabled:1, pid 2207 i would appreciate if any one could help |
please create a new thread for a new problem.
|
All times are GMT -5. The time now is 08:37 PM. |