1 /* SPDX-License-Identifier: GPL-2.0 */
5 #include <linux/types.h>
7 #include <asm/shmparam.h>
14 struct list_head shm_clist;
17 long do_shmat(int shmid, char __user *shmaddr, int shmflg, unsigned long *addr,
18 unsigned long shmlba);
19 bool is_file_shm_hugepages(struct file *file);
20 void exit_shm(struct task_struct *task);
21 #define shm_init_task(task) INIT_LIST_HEAD(&(task)->sysvshm.shm_clist)
27 static inline long do_shmat(int shmid, char __user *shmaddr,
28 int shmflg, unsigned long *addr,
33 static inline bool is_file_shm_hugepages(struct file *file)
37 static inline void exit_shm(struct task_struct *task)
40 static inline void shm_init_task(struct task_struct *task)
45 #endif /* _LINUX_SHM_H_ */