File Index
Files and directories
Sign in
FILE

sem.h

File preview with syntax highlighting.

linux-6.19.14/include/linux/sem.h C
 1/* SPDX-License-Identifier: GPL-2.0 */
 2#ifndef _LINUX_SEM_H
 3#define _LINUX_SEM_H
 4
 5#include <uapi/linux/sem.h>
 6#include <linux/sem_types.h>
 7
 8struct task_struct;
 9
10#ifdef CONFIG_SYSVIPC
11
12extern int copy_semundo(u64 clone_flags, struct task_struct *tsk);
13extern void exit_sem(struct task_struct *tsk);
14
15#else
16
17static inline int copy_semundo(u64 clone_flags, struct task_struct *tsk)
18{
19	return 0;
20}
21
22static inline void exit_sem(struct task_struct *tsk)
23{
24	return;
25}
26#endif
27
28#endif /* _LINUX_SEM_H */
~/ Read-only file preview.