cregit-Linux how code gets into the kernel

Release 4.12 include/linux/sem.h

Directory: include/linux
#ifndef _LINUX_SEM_H

#define _LINUX_SEM_H

#include <linux/atomic.h>
#include <linux/rcupdate.h>
#include <linux/cache.h>
#include <uapi/linux/sem.h>

struct task_struct;

/* One sem_array data structure for each set of semaphores in the system. */

struct sem_array {
struct kern_ipc_perm	sem_perm;	/* permissions .. see ipc.h */
time_t			sem_ctime;	/* last change time */
struct sem		*sem_base;	/* ptr to first semaphore in array */
struct list_head	pending_alter;	/* pending operations */
						/* that alter the array */
struct list_head	pending_const;	/* pending complex operations */
						/* that do not alter semvals */
struct list_head	list_id;	/* undo requests on this array */
int			sem_nsems;	/* no. of semaphores in array */
int			complex_count;	/* pending complex operations */
unsigned int		use_global_lock;/* >0: global lock required */


struct sysv_sem {
struct sem_undo_list *undo_list;

extern int copy_semundo(unsigned long clone_flags, struct task_struct *tsk);
extern void exit_sem(struct task_struct *tsk);


struct sysv_sem {
	/* empty */

static inline int copy_semundo(unsigned long clone_flags, struct task_struct *tsk) { return 0; }


Andrew Morton19100.00%1100.00%

static inline void exit_sem(struct task_struct *tsk) { return; }


Andrew Morton13100.00%1100.00%

#endif #endif /* _LINUX_SEM_H */

Overall Contributors

Andrew Morton6038.96%212.50%
Linus Torvalds (pre-git)4227.27%212.50%
Manfred Spraul3522.73%956.25%
Dave Olien106.49%16.25%
David Howells42.60%16.25%
Tim Schmielau31.95%16.25%
Davidlohr Bueso A0.00%00.00%
Directory: include/linux
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.
Created with cregit.