[PATCH 1/3] linux/ioctlent.sh: discover paths via exported-headers method
vapier at gentoo.org
Sun Feb 22 04:18:28 UTC 2009
On Saturday 21 February 2009 21:59:18 Denys Vlasenko wrote:
> On Fri, 2009-02-20 at 12:56 -0500, Mike Frysinger wrote:
> > Rather than hard coding the subdirs to search for ioctls, discover them
> > dynamically with newer kernel trees by working off of the exported header
> > mechanism. If the kernel does not have this mechanism, we fall back to
> > the old method of hard coding the list.
> > This fixes issues where the current hard coded list does not contain all
> > headers which get exported to userspace (like the mtd ioctls).
> I searched the tree and apparently there is no documentation
> whatsoever on what ioctlent.sh is and how to use it.
if there is docs, i wish i knew about them ;). it took me a while to figure
out how to use those things. in general strace seems to be lacking docs, so
to get started requires reading a lot of source and mucking with stuff. but
this seems to be par for the course with anything ptrace related.
> I assume it is used to refresh ioctldefs.h from time to time.
> However, I only _assume_, and you apparently actually used it recently.
each of the .sh scripts in the tree is used to generate/update the related
> Can you write up a little explanation/HOWTO about it?
> I intend to add it to the cvs.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 835 bytes
Desc: This is a digitally signed message part.
More information about the Strace-devel