[patch 6/6] sys_indirect RFC - example usage from kernel POV

2007-06-29 Thread Davide Libenzi
This is an example of how to add a context set/unset wrapper inside the kernel, for something like open flags: 1) Alloc a new SYSIND_CTX_* sequential index inside linux/indirect.h 2) Define a new "struct sysind_ctx_*" to be used by userspace 3) Define proper set/unset functions inside

[patch 6/6] sys_indirect RFC - example usage from kernel POV

2007-06-29 Thread Davide Libenzi
This is an example of how to add a context set/unset wrapper inside the kernel, for something like open flags: 1) Alloc a new SYSIND_CTX_* sequential index inside linux/indirect.h 2) Define a new struct sysind_ctx_* to be used by userspace 3) Define proper set/unset functions inside