Changeset View
Changeset View
Standalone View
Standalone View
sys/sys/eventhandler.h
Show First 20 Lines • Show All 210 Lines • ▼ Show 20 Lines | |||||
EVENTHANDLER_DECLARE(mountroot, mountroot_handler_t); | EVENTHANDLER_DECLARE(mountroot, mountroot_handler_t); | ||||
/* File system mount events */ | /* File system mount events */ | ||||
struct mount; | struct mount; | ||||
struct vnode; | struct vnode; | ||||
struct thread; | struct thread; | ||||
typedef void (*vfs_mounted_notify_fn)(void *, struct mount *, struct vnode *, | typedef void (*vfs_mounted_notify_fn)(void *, struct mount *, struct vnode *, | ||||
struct thread *); | struct thread *); | ||||
typedef void (*vfs_remounted_notify_fn)(void *, struct mount *, | |||||
struct thread *); | |||||
typedef void (*vfs_unmounted_notify_fn)(void *, struct mount *, | typedef void (*vfs_unmounted_notify_fn)(void *, struct mount *, | ||||
struct thread *); | struct thread *); | ||||
EVENTHANDLER_DECLARE(vfs_mounted, vfs_mounted_notify_fn); | EVENTHANDLER_DECLARE(vfs_mounted, vfs_mounted_notify_fn); | ||||
EVENTHANDLER_DECLARE(vfs_remounted, vfs_remounted_notify_fn); | |||||
EVENTHANDLER_DECLARE(vfs_unmounted, vfs_unmounted_notify_fn); | EVENTHANDLER_DECLARE(vfs_unmounted, vfs_unmounted_notify_fn); | ||||
/* | /* | ||||
* Process events | * Process events | ||||
* process_fork and exit handlers are called without Giant. | * process_fork and exit handlers are called without Giant. | ||||
* exec handlers are called with Giant, but that is by accident. | * exec handlers are called with Giant, but that is by accident. | ||||
*/ | */ | ||||
struct proc; | struct proc; | ||||
▲ Show 20 Lines • Show All 91 Lines • Show Last 20 Lines |