/include/linux/ |
D | ipc_namespace.h | 71 struct ns_common ns; member 78 extern void shm_destroy_orphaned(struct ipc_namespace *ns); 80 static inline void shm_destroy_orphaned(struct ipc_namespace *ns) {} in shm_destroy_orphaned() argument 84 extern int mq_init_ns(struct ipc_namespace *ns); 119 static inline int mq_init_ns(struct ipc_namespace *ns) { return 0; } in mq_init_ns() argument 124 struct user_namespace *user_ns, struct ipc_namespace *ns); 126 static inline struct ipc_namespace *get_ipc_ns(struct ipc_namespace *ns) in get_ipc_ns() argument 128 if (ns) in get_ipc_ns() 129 refcount_inc(&ns->count); in get_ipc_ns() 130 return ns; in get_ipc_ns() [all …]
|
D | pid_namespace.h | 47 struct ns_common ns; member 55 static inline struct pid_namespace *get_pid_ns(struct pid_namespace *ns) in get_pid_ns() argument 57 if (ns != &init_pid_ns) in get_pid_ns() 58 kref_get(&ns->kref); in get_pid_ns() 59 return ns; in get_pid_ns() 63 struct user_namespace *user_ns, struct pid_namespace *ns); 66 extern void put_pid_ns(struct pid_namespace *ns); 71 static inline struct pid_namespace *get_pid_ns(struct pid_namespace *ns) in get_pid_ns() argument 73 return ns; in get_pid_ns() 77 struct user_namespace *user_ns, struct pid_namespace *ns) in copy_pid_ns() argument [all …]
|
D | user_namespace.h | 64 struct ns_common ns; member 93 struct user_namespace *ns; member 101 bool setup_userns_sysctls(struct user_namespace *ns); 102 void retire_userns_sysctls(struct user_namespace *ns); 103 struct ucounts *inc_ucount(struct user_namespace *ns, kuid_t uid, enum ucount_type type); 108 static inline struct user_namespace *get_user_ns(struct user_namespace *ns) in get_user_ns() argument 110 if (ns) in get_user_ns() 111 atomic_inc(&ns->count); in get_user_ns() 112 return ns; in get_user_ns() 117 extern void __put_user_ns(struct user_namespace *ns); [all …]
|
D | proc_ns.h | 21 void (*put)(struct ns_common *ns); 22 int (*install)(struct nsproxy *nsproxy, struct ns_common *ns); 23 struct user_namespace *(*owner)(struct ns_common *ns); 24 struct ns_common *(*get_parent)(struct ns_common *ns); 50 extern int pid_ns_prepare_proc(struct pid_namespace *ns); 51 extern void pid_ns_release_proc(struct pid_namespace *ns); 57 static inline int pid_ns_prepare_proc(struct pid_namespace *ns) { return 0; } in pid_ns_prepare_proc() argument 58 static inline void pid_ns_release_proc(struct pid_namespace *ns) {} in pid_ns_release_proc() argument 69 static inline int ns_alloc_inum(struct ns_common *ns) in ns_alloc_inum() argument 71 atomic_long_set(&ns->stashed, 0); in ns_alloc_inum() [all …]
|
D | export.h | 97 #define ___EXPORT_SYMBOL_NS(sym,sec,ns) __GENKSYMS_EXPORT_SYMBOL(sym) argument 109 #define ___EXPORT_SYMBOL_NS(sym, sec, ns) \ argument 113 = #ns; \ 129 #define __EXPORT_SYMBOL_NS(sym, sec, ns) argument 156 #define __EXPORT_SYMBOL_NS(sym, sec, ns) \ argument 158 __cond_export_ns_sym(sym, sec, ns, __is_defined(__KSYM_##sym)) 159 #define __cond_export_ns_sym(sym, sec, ns, conf) \ argument 160 ___cond_export_ns_sym(sym, sec, ns, conf) 161 #define ___cond_export_ns_sym(sym, sec, ns, enabled) \ argument 162 __cond_export_ns_sym_##enabled(sym, sec, ns) [all …]
|
D | nsproxy.h | 71 void free_nsproxy(struct nsproxy *ns); 76 static inline void put_nsproxy(struct nsproxy *ns) in put_nsproxy() argument 78 if (atomic_dec_and_test(&ns->count)) { in put_nsproxy() 79 free_nsproxy(ns); in put_nsproxy() 83 static inline void get_nsproxy(struct nsproxy *ns) in get_nsproxy() argument 85 atomic_inc(&ns->count); in get_nsproxy()
|
D | utsname.h | 29 struct ns_common ns; member 34 static inline void get_uts_ns(struct uts_namespace *ns) in get_uts_ns() argument 36 kref_get(&ns->kref); in get_uts_ns() 43 static inline void put_uts_ns(struct uts_namespace *ns) in put_uts_ns() argument 45 kref_put(&ns->kref, free_uts_ns); in put_uts_ns() 50 static inline void get_uts_ns(struct uts_namespace *ns) in get_uts_ns() argument 54 static inline void put_uts_ns(struct uts_namespace *ns) in put_uts_ns() argument
|
D | pid.h | 56 struct pid_namespace *ns; member 114 extern struct pid *find_pid_ns(int nr, struct pid_namespace *ns); 123 extern struct pid *alloc_pid(struct pid_namespace *ns); 125 extern void disable_pid_allocation(struct pid_namespace *ns); 139 struct pid_namespace *ns = NULL; in ns_of_pid() local 141 ns = pid->numbers[pid->level].ns; in ns_of_pid() 142 return ns; in ns_of_pid() 175 pid_t pid_nr_ns(struct pid *pid, struct pid_namespace *ns);
|
D | timecounter.h | 73 u64 ns = (u64) cycles; in cyclecounter_cyc2ns() local 75 ns = (ns * cc->mult) + *frac; in cyclecounter_cyc2ns() 76 *frac = ns & mask; in cyclecounter_cyc2ns() 77 return ns >> cc->shift; in cyclecounter_cyc2ns()
|
D | capability.h | 206 struct user_namespace *ns, int cap); 209 struct user_namespace *ns, int cap); 211 extern bool ns_capable(struct user_namespace *ns, int cap); 212 extern bool ns_capable_noaudit(struct user_namespace *ns, int cap); 213 extern bool ns_capable_setid(struct user_namespace *ns, int cap); 220 struct user_namespace *ns, int cap) in has_ns_capability() argument 229 struct user_namespace *ns, int cap) in has_ns_capability_noaudit() argument 237 static inline bool ns_capable(struct user_namespace *ns, int cap) in ns_capable() argument 241 static inline bool ns_capable_noaudit(struct user_namespace *ns, int cap) in ns_capable_noaudit() argument 245 static inline bool ns_capable_setid(struct user_namespace *ns, int cap) in ns_capable_setid() argument [all …]
|
D | ktime.h | 155 s64 ns = kt; in ktime_divns() local 156 u64 tmp = ns < 0 ? -ns : ns; in ktime_divns() 159 return ns < 0 ? -tmp : tmp; in ktime_divns() 265 static inline ktime_t ns_to_ktime(u64 ns) in ns_to_ktime() argument 267 return ns; in ns_to_ktime()
|
D | uidgid.h | 131 static inline bool kuid_has_mapping(struct user_namespace *ns, kuid_t uid) in kuid_has_mapping() argument 133 return from_kuid(ns, uid) != (uid_t) -1; in kuid_has_mapping() 136 static inline bool kgid_has_mapping(struct user_namespace *ns, kgid_t gid) in kgid_has_mapping() argument 138 return from_kgid(ns, gid) != (gid_t) -1; in kgid_has_mapping() 179 static inline bool kuid_has_mapping(struct user_namespace *ns, kuid_t uid) in kuid_has_mapping() argument 184 static inline bool kgid_has_mapping(struct user_namespace *ns, kgid_t gid) in kgid_has_mapping() argument
|
D | time64.h | 154 static __always_inline void timespec64_add_ns(struct timespec64 *a, u64 ns) in timespec64_add_ns() argument 156 a->tv_sec += __iter_div_u64_rem(a->tv_nsec + ns, NSEC_PER_SEC, &ns); in timespec64_add_ns() 157 a->tv_nsec = ns; in timespec64_add_ns()
|
D | projid.h | 58 static inline bool kprojid_has_mapping(struct user_namespace *ns, kprojid_t projid) in kprojid_has_mapping() argument 60 return from_kprojid(ns, projid) != (projid_t)-1; in kprojid_has_mapping() 83 static inline bool kprojid_has_mapping(struct user_namespace *ns, kprojid_t projid) in kprojid_has_mapping() argument
|
D | kernfs.h | 148 const void *ns; /* namespace tag */ member 328 const char *name, const void *ns); 330 const char *path, const void *ns); 347 void *priv, const void *ns); 355 void *priv, const void *ns, 366 const void *ns); 414 const void *ns) in kernfs_find_and_get_ns() argument 418 const void *ns) in kernfs_walk_and_get_ns() argument 444 void *priv, const void *ns) in kernfs_create_dir_ns() argument 451 void *priv, const void *ns, struct lock_class_key *key) in __kernfs_create_file() argument [all …]
|
D | cgroup.h | 120 int proc_cgroup_show(struct seq_file *m, struct pid_namespace *ns, 855 struct ns_common ns; member 865 void free_cgroup_ns(struct cgroup_namespace *ns); 872 struct cgroup_namespace *ns); 876 static inline void free_cgroup_ns(struct cgroup_namespace *ns) { } in free_cgroup_ns() argument 886 static inline void get_cgroup_ns(struct cgroup_namespace *ns) in get_cgroup_ns() argument 888 if (ns) in get_cgroup_ns() 889 refcount_inc(&ns->count); in get_cgroup_ns() 892 static inline void put_cgroup_ns(struct cgroup_namespace *ns) in put_cgroup_ns() argument 894 if (ns && refcount_dec_and_test(&ns->count)) in put_cgroup_ns() [all …]
|
D | mnt_namespace.h | 12 extern void put_mnt_ns(struct mnt_namespace *ns);
|
D | time32.h | 171 static __always_inline void timespec_add_ns(struct timespec *a, u64 ns) in timespec_add_ns() argument 173 a->tv_sec += __iter_div_u64_rem(a->tv_nsec + ns, NSEC_PER_SEC, &ns); in timespec_add_ns() 174 a->tv_nsec = ns; in timespec_add_ns()
|
D | ptrace.h | 187 struct pid_namespace *ns; in ptrace_event_pid() local 190 ns = task_active_pid_ns(rcu_dereference(current->parent)); in ptrace_event_pid() 191 if (ns) in ptrace_event_pid() 192 message = pid_nr_ns(pid, ns); in ptrace_event_pid()
|
D | sysfs.h | 230 int __must_check sysfs_create_dir_ns(struct kobject *kobj, const void *ns); 244 const void *ns); 253 const void *ns); 315 static inline int sysfs_create_dir_ns(struct kobject *kobj, const void *ns) in sysfs_create_dir_ns() argument 350 const void *ns) in sysfs_create_file_ns() argument 380 const void *ns) in sysfs_remove_file_ns() argument 425 const char *new_name, const void *ns) in sysfs_rename_link_ns() argument
|
/include/linux/regulator/ |
D | fixed.h | 56 #define regulator_register_fixed(id, s, ns) regulator_register_always_on(id, \ argument 57 "fixed-dummy", s, ns, 0)
|
/include/linux/mlx5/ |
D | fs.h | 148 mlx5_create_auto_grouped_flow_table(struct mlx5_flow_namespace *ns, 163 mlx5_create_flow_table(struct mlx5_flow_namespace *ns, 167 mlx5_create_vport_flow_table(struct mlx5_flow_namespace *ns, 172 struct mlx5_flow_namespace *ns,
|
/include/linux/mtd/ |
D | rawnand.h | 627 #define NAND_OP_CMD(id, ns) \ argument 631 .delay_ns = ns, \ 634 #define NAND_OP_ADDR(ncycles, cycles, ns) \ argument 641 .delay_ns = ns, \ 644 #define NAND_OP_DATA_IN(l, b, ns) \ argument 652 .delay_ns = ns, \ 655 #define NAND_OP_DATA_OUT(l, b, ns) \ argument 663 .delay_ns = ns, \ 666 #define NAND_OP_8BIT_DATA_IN(l, b, ns) \ argument 674 .delay_ns = ns, \ [all …]
|
/include/net/ |
D | codel.h | 69 u64 ns = ktime_get_ns(); in codel_get_time() local 71 return ns >> CODEL_SHIFT; in codel_get_time()
|
/include/linux/sched/ |
D | debug.h | 40 struct pid_namespace *ns, struct seq_file *m);
|