I’m writing new kernel module and I add implement new IOCTL’s.
Is there any rule that I should follow with IOCTL’s numbering ?
Maybe there is some “user range” ?
I work with kernel 2.6.21 on embedded platform.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
IOCTLs are defined to be device dependent — if there were “standard” ioctls for people to implement, these would be syscalls like
readandwrite.There are a few conventions for ioctl numbers: