diff options
Diffstat (limited to 'include/linux/shm.h')
| -rw-r--r-- | include/linux/shm.h | 7 | 
1 files changed, 7 insertions, 0 deletions
diff --git a/include/linux/shm.h b/include/linux/shm.h index eca6235a46c..92808b86703 100644 --- a/include/linux/shm.h +++ b/include/linux/shm.h @@ -95,6 +95,9 @@ struct shmid_kernel /* private to the kernel */  	pid_t			shm_cprid;  	pid_t			shm_lprid;  	struct user_struct	*mlock_user; + +	/* The task created the shm object.  NULL if the task is dead. */ +	struct task_struct	*shm_creator;  };  /* shm_mode upper byte flags */ @@ -106,6 +109,7 @@ struct shmid_kernel /* private to the kernel */  #ifdef CONFIG_SYSVIPC  long do_shmat(int shmid, char __user *shmaddr, int shmflg, unsigned long *addr);  extern int is_file_shm_hugepages(struct file *file); +extern void exit_shm(struct task_struct *task);  #else  static inline long do_shmat(int shmid, char __user *shmaddr,  				int shmflg, unsigned long *addr) @@ -116,6 +120,9 @@ static inline int is_file_shm_hugepages(struct file *file)  {  	return 0;  } +static inline void exit_shm(struct task_struct *task) +{ +}  #endif  #endif /* __KERNEL__ */  |