diff options
author | netchild <netchild@FreeBSD.org> | 2006-08-15 12:10:57 +0000 |
---|---|---|
committer | netchild <netchild@FreeBSD.org> | 2006-08-15 12:10:57 +0000 |
commit | b2a39f267af537affffa1c52b22f5128d4c0a4d3 (patch) | |
tree | 0ec3c426b5856dcb47a9ee601bee63a1ef397973 /sys/sys/eventhandler.h | |
parent | c6539b3d3ec0c97a3e6a13593770d554202805c3 (diff) | |
download | FreeBSD-src-b2a39f267af537affffa1c52b22f5128d4c0a4d3.zip FreeBSD-src-b2a39f267af537affffa1c52b22f5128d4c0a4d3.tar.gz |
- Change process_exec function handlers prototype to include struct
image_params arg.
- Change struct image_params to include struct sysentvec pointer and
initialize it.
- Change all consumers of process_exit/process_exec eventhandlers to
new prototypes (includes splitting up into distinct exec/exit functions).
- Add eventhandler to userret.
Sponsored by: Google SoC 2006
Submitted by: rdivacky
Parts suggested by: jhb (on hackers@)
Diffstat (limited to 'sys/sys/eventhandler.h')
-rw-r--r-- | sys/sys/eventhandler.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/sys/eventhandler.h b/sys/sys/eventhandler.h index 804ff03..f4f1b8c 100644 --- a/sys/sys/eventhandler.h +++ b/sys/sys/eventhandler.h @@ -162,10 +162,11 @@ EVENTHANDLER_DECLARE(vm_lowmem, vm_lowmem_handler_t); * exec handlers are called with Giant, but that is by accident. */ struct proc; +struct image_params; typedef void (*exitlist_fn)(void *, struct proc *); typedef void (*forklist_fn)(void *, struct proc *, struct proc *, int); -typedef void (*execlist_fn)(void *, struct proc *); +typedef void (*execlist_fn)(void *, struct proc *, struct image_params *); EVENTHANDLER_DECLARE(process_exit, exitlist_fn); EVENTHANDLER_DECLARE(process_fork, forklist_fn); @@ -174,4 +175,7 @@ EVENTHANDLER_DECLARE(process_exec, execlist_fn); typedef void (*uma_zone_chfn)(void *); EVENTHANDLER_DECLARE(nmbclusters_change, uma_zone_chfn); EVENTHANDLER_DECLARE(maxsockets_change, uma_zone_chfn); + +typedef void(*schedtail_fn)(void *, struct proc *); +EVENTHANDLER_DECLARE(schedtail, schedtail_fn); #endif /* SYS_EVENTHANDLER_H */ |