Deleted Added
full compact
eventhandler.h (112563) eventhandler.h (112564)
1/*-
2 * Copyright (c) 1999 Michael Smith <msmith@freebsd.org>
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 9 unchanged lines hidden (view full) ---

18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24 * SUCH DAMAGE.
25 *
1/*-
2 * Copyright (c) 1999 Michael Smith <msmith@freebsd.org>
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 9 unchanged lines hidden (view full) ---

18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24 * SUCH DAMAGE.
25 *
26 * $FreeBSD: head/sys/sys/eventhandler.h 112563 2003-03-24 21:07:31Z jhb $
26 * $FreeBSD: head/sys/sys/eventhandler.h 112564 2003-03-24 21:15:35Z jhb $
27 */
28
29#ifndef SYS_EVENTHANDLER_H
30#define SYS_EVENTHANDLER_H
31
32#include <sys/lock.h>
33#include <sys/ktr.h>
34#include <sys/mutex.h>

--- 168 unchanged lines hidden (view full) ---

203#define IDLE_PRI_LAST EVENTHANDLER_PRI_LAST
204EVENTHANDLER_FAST_DECLARE(idle_event, idle_eventhandler_t);
205
206/* Low memory event */
207typedef void (*vm_lowmem_handler_t)(void *, int);
208#define LOWMEM_PRI_DEFAULT EVENTHANDLER_PRI_FIRST
209EVENTHANDLER_DECLARE(vm_lowmem, vm_lowmem_handler_t);
210
27 */
28
29#ifndef SYS_EVENTHANDLER_H
30#define SYS_EVENTHANDLER_H
31
32#include <sys/lock.h>
33#include <sys/ktr.h>
34#include <sys/mutex.h>

--- 168 unchanged lines hidden (view full) ---

203#define IDLE_PRI_LAST EVENTHANDLER_PRI_LAST
204EVENTHANDLER_FAST_DECLARE(idle_event, idle_eventhandler_t);
205
206/* Low memory event */
207typedef void (*vm_lowmem_handler_t)(void *, int);
208#define LOWMEM_PRI_DEFAULT EVENTHANDLER_PRI_FIRST
209EVENTHANDLER_DECLARE(vm_lowmem, vm_lowmem_handler_t);
210
211/* Process events */
212struct proc;
213
214typedef void (*exitlist_fn)(void *, struct proc *);
215typedef void (*forklist_fn)(void *, struct proc *, struct proc *, int);
216typedef void (*execlist_fn)(void *, struct proc *);
217
218EVENTHANDLER_DECLARE(process_exit, exitlist_fn);
219EVENTHANDLER_DECLARE(process_fork, forklist_fn);
220EVENTHANDLER_DECLARE(process_exec, execlist_fn);
221
211#endif /* SYS_EVENTHANDLER_H */
222#endif /* SYS_EVENTHANDLER_H */