> 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.