include blktrace_api.h in headers_install
Subsystems (2)
PATCH 1/1 include blktrace_api.h in headers_install
From: Sven Schuetz <[email protected]>
This header file is of interest for user space programming, i.e. for tools that process blktrace data.
We would like to use it for a tool on-top of blktrace which processes data provided by blktrace. For this purpose, it would be helpful if the blktrace API would make it to /usr/include/linux.
The git tree for the blktrace tools comes with its own copy of this header file. I didn't manage to replace that copy with the file generated by the patch below yet. A few more cleanups would be needed. For example, the blktrace ioctl numbers, which are currently defined in usr/include/fs.h, might need to be moved. Should be feasible, though.
--- include/linux/Kbuild | 1 include/linux/blktrace_api.h | 58 +++++++++++++++++++++++-------------------- 2 files changed, 33 insertions(+), 26 deletions(-)
include/linux/Kbuild +1 -0
@@ -175,6 +175,7 @@ unifdef-y += audit.h unifdef-y += auto_fs.h unifdef-y += auxvec.h unifdef-y += binfmts.h +unifdef-y += blktrace_api.h unifdef-y += capability.h unifdef-y += capi.h unifdef-y += cciss_ioctl.h
include/linux/blktrace_api.h +32 -26
84 lines not on this page · raw message
Quoted 11 lines · Jan Blunck
Quoted 9 lines · Martin Peschke
From: Sven Schuetz <[email protected]>
This header file is of interest for user space programming, i.e. for tools that process blktrace data.
We would like to use it for a tool on-top of blktrace which processes data provided by blktrace. For this purpose, it would be helpful if the blktrace API would make it to
/usr/include/linux.
Quoted 8 lines
Quoted 6 lines
The git tree for the blktrace tools comes with its own copy of this header file. I didn't manage to replace that copy with the file generated by the patch below yet. A few more cleanups would be needed. For example, the blktrace ioctl numbers, which are currently defined in
usr/include/fs.h, might need to be moved. Should be feasible, though.Any reason why this patch isn't upstream yet?
Nope, I'll add it.
Signature · 1 line
Jens Axboe
include/linux/blktrace_api.h enum { · line 130
Quoted 5 lines · Martin Peschke
include/linux/blktrace_api.h +5
-0+#ifdef __KERNEL__ +char name[BDEVNAME_SIZE ];/* output */ +#else +char name[32 ];/* output */ +#endif
Bad idea. BDEVNAME_SIZE is not exported and therfor not part of the public API. As this defines a userspace API it must not change anyway.
Bastian
Signature · 2 lines
No one can guarantee the actions of another. -- Spock, "Day of the Dove", stardate unknown
Quoted 9 lines · Bastian Blank
include/linux/blktrace_api.h enum { · line 130
Quoted 5 lines · Martin Peschke
include/linux/blktrace_api.h +5
-0+#ifdef __KERNEL__ +char name[BDEVNAME_SIZE ];/* output */ +#else +char name[32 ];/* output */ +#endif Bad idea.
BDEVNAME_SIZEis not exported and therfor not part of the public API. As this defines a userspace API it must not change anyway.
So this should be simply char name[32] both for kernel and user space?
Martin