|
FreeBSD kernel kern code
|
#include <sys/cdefs.h>#include "opt_compat.h"#include "opt_sysvipc.h"#include <sys/param.h>#include <sys/systm.h>#include <sys/sem.h>#include <sys/shm.h>#include <sys/ipc.h>#include <sys/priv.h>#include <sys/proc.h>#include <sys/ucred.h>
Go to the source code of this file.
Functions | |
| __FBSDID ("$BSDSUniX$") | |
| void | shmfork (struct proc *p1, struct proc *p2) |
| void | shmexit (struct vmspace *vm) |
| int | ipcperm (struct thread *td, struct ipc_perm *perm, int acc_mode) |
Variables | |
| void(* | shmfork_hook )(struct proc *, struct proc *) = NULL |
| void(* | shmexit_hook )(struct vmspace *) = NULL |
| __FBSDID | ( | "$BSDSUniX$" | ) |
| int ipcperm | ( | struct thread * | td, |
| struct ipc_perm * | perm, | ||
| int | acc_mode | ||
| ) |
Definition at line 86 of file sysv_ipc.c.
References groupmember(), and priv_check().
Referenced by kern_msgctl(), kern_msgrcv(), kern_msgsnd(), kern_semctl(), kern_shmat(), kern_shmctl(), sys_msgget(), sys_semget(), and sys_semop().


| void shmexit | ( | struct vmspace * | vm | ) |
Definition at line 67 of file sysv_ipc.c.
References shmexit_hook.
Referenced by exec_new_vmspace().

| void shmfork | ( | struct proc * | p1, |
| struct proc * | p2 | ||
| ) |
Definition at line 56 of file sysv_ipc.c.
References shmfork_hook.
| void(* shmexit_hook) (struct vmspace *) = NULL |
Definition at line 52 of file sysv_ipc.c.
Referenced by shmexit(), shminit(), and shmunload().
| void(* shmfork_hook) (struct proc *, struct proc *) = NULL |
Definition at line 51 of file sysv_ipc.c.
Referenced by shmfork(), shminit(), and shmunload().