/include/linux/ |
D | ipc_namespace.h | 73 struct ns_common ns; member 80 extern void shm_destroy_orphaned(struct ipc_namespace *ns); 82 static inline void shm_destroy_orphaned(struct ipc_namespace *ns) {} in shm_destroy_orphaned() argument 86 extern int mq_init_ns(struct ipc_namespace *ns); 121 static inline int mq_init_ns(struct ipc_namespace *ns) { return 0; } in mq_init_ns() argument 126 struct user_namespace *user_ns, struct ipc_namespace *ns); 128 static inline struct ipc_namespace *get_ipc_ns(struct ipc_namespace *ns) in get_ipc_ns() argument 130 if (ns) in get_ipc_ns() 131 refcount_inc(&ns->count); in get_ipc_ns() 132 return ns; in get_ipc_ns() [all …]
|
D | pid_namespace.h | 35 struct ns_common ns; member 43 static inline struct pid_namespace *get_pid_ns(struct pid_namespace *ns) in get_pid_ns() argument 45 if (ns != &init_pid_ns) in get_pid_ns() 46 kref_get(&ns->kref); in get_pid_ns() 47 return ns; in get_pid_ns() 51 struct user_namespace *user_ns, struct pid_namespace *ns); 54 extern void put_pid_ns(struct pid_namespace *ns); 59 static inline struct pid_namespace *get_pid_ns(struct pid_namespace *ns) in get_pid_ns() argument 61 return ns; in get_pid_ns() 65 struct user_namespace *user_ns, struct pid_namespace *ns) in copy_pid_ns() argument [all …]
|
D | export.h | 108 #define ___EXPORT_SYMBOL(sym, sec, ns) __GENKSYMS_EXPORT_SYMBOL(sym) argument 124 #define ___EXPORT_SYMBOL(sym, sec, ns) \ argument 133 " .asciz \"" ns "\" \n" \ 146 #define __EXPORT_SYMBOL(sym, sec, ns) argument 162 #define __EXPORT_SYMBOL(sym, sec, ns) \ argument 164 __cond_export_sym(sym, sec, ns, __is_defined(__KSYM_##sym)) 165 #define __cond_export_sym(sym, sec, ns, conf) \ argument 166 ___cond_export_sym(sym, sec, ns, conf) 167 #define ___cond_export_sym(sym, sec, ns, enabled) \ argument 168 __cond_export_sym_##enabled(sym, sec, ns) [all …]
|
D | user_namespace.h | 66 struct ns_common ns; member 101 struct user_namespace *ns; member 109 bool setup_userns_sysctls(struct user_namespace *ns); 110 void retire_userns_sysctls(struct user_namespace *ns); 111 struct ucounts *inc_ucount(struct user_namespace *ns, kuid_t uid, enum ucount_type type); 116 static inline struct user_namespace *get_user_ns(struct user_namespace *ns) in get_user_ns() argument 118 if (ns) in get_user_ns() 119 atomic_inc(&ns->count); in get_user_ns() 120 return ns; in get_user_ns() 125 extern void __put_user_ns(struct user_namespace *ns); [all …]
|
D | time_namespace.h | 24 struct ns_common ns; member 35 struct time_namespace *ns); 36 extern void timens_commit(struct task_struct *tsk, struct time_namespace *ns); 38 static inline struct time_namespace *get_time_ns(struct time_namespace *ns) in get_time_ns() argument 40 kref_get(&ns->kref); in get_time_ns() 41 return ns; in get_time_ns() 51 static inline void put_time_ns(struct time_namespace *ns) in put_time_ns() argument 53 kref_put(&ns->kref, free_time_ns); in put_time_ns() 85 struct time_namespace *ns = current->nsproxy->time_ns; in timens_ktime_to_host() local 87 if (likely(ns == &init_time_ns)) in timens_ktime_to_host() [all …]
|
D | proc_ns.h | 21 void (*put)(struct ns_common *ns); 22 int (*install)(struct nsset *nsset, struct ns_common *ns); 23 struct user_namespace *(*owner)(struct ns_common *ns); 24 struct ns_common *(*get_parent)(struct ns_common *ns); 67 static inline int ns_alloc_inum(struct ns_common *ns) in ns_alloc_inum() argument 69 atomic_long_set(&ns->stashed, 0); in ns_alloc_inum() 70 return proc_alloc_inum(&ns->inum); in ns_alloc_inum() 73 #define ns_free_inum(ns) proc_free_inum((ns)->inum) argument 83 extern bool ns_match(const struct ns_common *ns, dev_t dev, ino_t ino);
|
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 | nsproxy.h | 97 void free_nsproxy(struct nsproxy *ns); 102 static inline void put_nsproxy(struct nsproxy *ns) in put_nsproxy() argument 104 if (atomic_dec_and_test(&ns->count)) { in put_nsproxy() 105 free_nsproxy(ns); in put_nsproxy() 109 static inline void get_nsproxy(struct nsproxy *ns) in get_nsproxy() argument 111 atomic_inc(&ns->count); in get_nsproxy()
|
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 | 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 | pid.h | 56 struct pid_namespace *ns; member 125 extern struct pid *find_pid_ns(int nr, struct pid_namespace *ns); 134 extern struct pid *alloc_pid(struct pid_namespace *ns, pid_t *set_tid, 137 extern void disable_pid_allocation(struct pid_namespace *ns); 151 struct pid_namespace *ns = NULL; in ns_of_pid() local 153 ns = pid->numbers[pid->level].ns; in ns_of_pid() 154 return ns; in ns_of_pid() 187 pid_t pid_nr_ns(struct pid *pid, struct pid_namespace *ns);
|
D | ktime.h | 138 s64 ns = kt; in ktime_divns() local 139 u64 tmp = ns < 0 ? -ns : ns; in ktime_divns() 142 return ns < 0 ? -tmp : tmp; in ktime_divns() 222 static inline ktime_t ns_to_ktime(u64 ns) in ns_to_ktime() argument 224 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 | 150 static __always_inline void timespec64_add_ns(struct timespec64 *a, u64 ns) in timespec64_add_ns() argument 152 a->tv_sec += __iter_div_u64_rem(a->tv_nsec + ns, NSEC_PER_SEC, &ns); in timespec64_add_ns() 153 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 | 141 const void *ns; /* namespace tag */ member 368 const char *name, const void *ns); 370 const char *path, const void *ns); 387 void *priv, const void *ns); 395 void *priv, const void *ns, 406 const void *ns); 454 const void *ns) in kernfs_find_and_get_ns() argument 458 const void *ns) in kernfs_walk_and_get_ns() argument 484 void *priv, const void *ns) in kernfs_create_dir_ns() argument 491 void *priv, const void *ns, struct lock_class_key *key) in __kernfs_create_file() argument [all …]
|
D | resctrl.h | 10 struct pid_namespace *ns,
|
D | cgroup.h | 125 int proc_cgroup_show(struct seq_file *m, struct pid_namespace *ns, 869 struct ns_common ns; member 879 void free_cgroup_ns(struct cgroup_namespace *ns); 886 struct cgroup_namespace *ns); 890 static inline void free_cgroup_ns(struct cgroup_namespace *ns) { } in free_cgroup_ns() argument 900 static inline void get_cgroup_ns(struct cgroup_namespace *ns) in get_cgroup_ns() argument 902 if (ns) in get_cgroup_ns() 903 refcount_inc(&ns->count); in get_cgroup_ns() 906 static inline void put_cgroup_ns(struct cgroup_namespace *ns) in put_cgroup_ns() argument 908 if (ns && refcount_dec_and_test(&ns->count)) in put_cgroup_ns() [all …]
|
D | mnt_namespace.h | 13 extern void put_mnt_ns(struct mnt_namespace *ns);
|
D | ptrace.h | 180 struct pid_namespace *ns; in ptrace_event_pid() local 183 ns = task_active_pid_ns(rcu_dereference(current->parent)); in ptrace_event_pid() 184 if (ns) in ptrace_event_pid() 185 message = pid_nr_ns(pid, ns); in ptrace_event_pid()
|
/include/linux/regulator/ |
D | fixed.h | 57 #define regulator_register_fixed(id, s, ns) regulator_register_always_on(id, \ argument 58 "fixed-dummy", s, ns, 0)
|
/include/linux/mlx5/ |
D | fs.h | 167 mlx5_create_flow_table(struct mlx5_flow_namespace *ns, 171 mlx5_create_auto_grouped_flow_table(struct mlx5_flow_namespace *ns, 175 mlx5_create_vport_flow_table(struct mlx5_flow_namespace *ns, 180 struct mlx5_flow_namespace *ns,
|
/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/mtd/ |
D | rawnand.h | 746 #define NAND_OP_CMD(id, ns) \ argument 750 .delay_ns = ns, \ 753 #define NAND_OP_ADDR(ncycles, cycles, ns) \ argument 760 .delay_ns = ns, \ 763 #define NAND_OP_DATA_IN(l, b, ns) \ argument 771 .delay_ns = ns, \ 774 #define NAND_OP_DATA_OUT(l, b, ns) \ argument 782 .delay_ns = ns, \ 785 #define NAND_OP_8BIT_DATA_IN(l, b, ns) \ argument 793 .delay_ns = ns, \ [all …]
|
/include/linux/sched/ |
D | debug.h | 41 struct pid_namespace *ns, struct seq_file *m);
|