Deleted Added
full compact
eventhandler.h (138439) eventhandler.h (157927)
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 138439 2004-12-06 10:53:40Z jkoshy $
26 * $FreeBSD: head/sys/sys/eventhandler.h 157927 2006-04-21 09:25:40Z ps $
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>

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

166typedef void (*exitlist_fn)(void *, struct proc *);
167typedef void (*forklist_fn)(void *, struct proc *, struct proc *, int);
168typedef void (*execlist_fn)(void *, struct proc *);
169
170EVENTHANDLER_DECLARE(process_exit, exitlist_fn);
171EVENTHANDLER_DECLARE(process_fork, forklist_fn);
172EVENTHANDLER_DECLARE(process_exec, execlist_fn);
173
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>

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

166typedef void (*exitlist_fn)(void *, struct proc *);
167typedef void (*forklist_fn)(void *, struct proc *, struct proc *, int);
168typedef void (*execlist_fn)(void *, struct proc *);
169
170EVENTHANDLER_DECLARE(process_exit, exitlist_fn);
171EVENTHANDLER_DECLARE(process_fork, forklist_fn);
172EVENTHANDLER_DECLARE(process_exec, execlist_fn);
173
174typedef void (*uma_zone_chfn)(void *);
175EVENTHANDLER_DECLARE(nmbclusters_change, uma_zone_chfn);
176EVENTHANDLER_DECLARE(maxsockets_change, uma_zone_chfn);
174#endif /* SYS_EVENTHANDLER_H */
177#endif /* SYS_EVENTHANDLER_H */