tech-kern archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

re: To get net ioctl number



>   This might be FAQ...
> 
>   I'd like to get new number for new ioctl. How should I find unused number
> for it? I'm going to add new SIOCXXX. It may not enough to grep sys/net/*.h,
> so I made usr.bin/kdump-ioctl.c and did
> 
> 	grep \'i kdump-ioctl.c | sort -n -k 5,5 | uniq | column -t
> 
> I think it might not enough because kdump-ioctl.c has no compat-related
> code.
> 
>   What should I do?

i don't have a script, but looking in the tree for _IO*() calls should
find all the relevant ioctls we have defined.


.mrg.


Home | Main Index | Thread Index | Old Index