Hi dudes, Is it better to test the return values of 1) register_chrdev with -EBUSY 2) unregister_chrdev with -EINVAL instead of doing if(ret_val < 0)? I looked at the code in fs/devices.c, and noticed that the return values if an error occurs is -EBUSY for register_chrdev, and -EINVAL for unregister_chrdev. Eugene -- eMail: eugeneteo@removethisplease.null.cc.uic.edu gpg pub_key: http://tacheon.cc.uic.edu/~eugeneteo/eugeneteo.asc main(i){putchar(182623909>>(i-1)*5&31|!!(i<7)<<6)&&main(++i);}
Attachment:
pgp00419.pgp
Description: PGP signature