8. SIMPLE EVENT SUPPORT
This files aim to add a simple event support to the kernel.
These are the kernel and user files (the kernel/Makefile
must be modified to include evnt.o in the objects):
- entry.S : definition of sys_my_evnt entry in the sys_call_table
- unistd.h : definition of the systen call __NR_my_evnt
- evnt.h : new file with the definition of the struct evnt_struct
- evnt.c : new file with the implementation of
sys_my_evnt(int flag, int id)
and the other do_evnt_XXX functions
- event.h : user .h file
- test1.c : user program that creates/removes an event
- test2.c : user program that waits on an event
- test3.c : user program that signal on an event
- test4.c : user program that prints the event wait_queue lists
(using printk)
arch/i386/kernel/entry.S
include/asm/unistd.h
include/linux/evnt.h
kernel/evnt.c
event.h
test1.c
test2.c
test3.c
test4.c
Next
Prev
Up
marco_corvi@geocities.com