| /include/linux/ |
| A D | ipc_namespace.h | 80 struct ns_common ns; member 93 extern int mq_init_ns(struct ipc_namespace *ns); 137 if (ns) in get_ipc_ns() 138 refcount_inc(&ns->ns.count); in get_ipc_ns() 139 return ns; in get_ipc_ns() 144 if (ns) { in get_ipc_ns_not_zero() 145 if (refcount_inc_not_zero(&ns->ns.count)) in get_ipc_ns_not_zero() 146 return ns; in get_ipc_ns_not_zero() 160 return ns; in copy_ipcs() 165 return ns; in get_ipc_ns() [all …]
|
| A D | pid_namespace.h | 41 struct ns_common ns; member 59 if (ns != &init_pid_ns) in get_pid_ns() 60 refcount_inc(&ns->ns.count); in get_pid_ns() 61 return ns; in get_pid_ns() 69 for (; ns; ns = ns->parent) in pidns_memfd_noexec_scope() 70 scope = max(scope, READ_ONCE(ns->memfd_noexec_scope)); in pidns_memfd_noexec_scope() 85 extern void put_pid_ns(struct pid_namespace *ns); 92 return ns; in get_pid_ns() 104 ns = ERR_PTR(-EINVAL); in copy_pid_ns() 105 return ns; in copy_pid_ns() [all …]
|
| A D | nsproxy.h | 47 struct cgroup_namespace *: &(__ns->ns), \ 48 struct ipc_namespace *: &(__ns->ns), \ 49 struct net *: &(__ns->ns), \ 50 struct pid_namespace *: &(__ns->ns), \ 51 struct mnt_namespace *: &(__ns->ns), \ 52 struct time_namespace *: &(__ns->ns), \ 54 struct uts_namespace *: &(__ns->ns)) 110 void free_nsproxy(struct nsproxy *ns); 117 if (refcount_dec_and_test(&ns->count)) in put_nsproxy() 118 free_nsproxy(ns); in put_nsproxy() [all …]
|
| A D | user_namespace.h | 84 struct ns_common ns; member 121 struct user_namespace *ns; member 132 bool setup_userns_sysctls(struct user_namespace *ns); 133 void retire_userns_sysctls(struct user_namespace *ns); 160 return READ_ONCE(ns->rlimit_max[type]); in get_userns_rlimit_max() 173 if (ns) in get_user_ns() 174 refcount_inc(&ns->ns.count); in get_user_ns() 175 return ns; in get_user_ns() 180 extern void __put_user_ns(struct user_namespace *ns); 184 if (ns && refcount_dec_and_test(&ns->ns.count)) in put_user_ns() [all …]
|
| A D | utsname.h | 28 struct ns_common ns; member 33 static inline void get_uts_ns(struct uts_namespace *ns) in get_uts_ns() argument 35 refcount_inc(&ns->ns.count); in get_uts_ns() 40 extern void free_uts_ns(struct uts_namespace *ns); 42 static inline void put_uts_ns(struct uts_namespace *ns) in put_uts_ns() argument 44 if (refcount_dec_and_test(&ns->ns.count)) in put_uts_ns() 45 free_uts_ns(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
|
| A D | export.h | 33 #define ___EXPORT_SYMBOL(sym, license, ns...) \ argument 37 .ascii ns "\0" ASM_NL \ 48 #define __EXPORT_SYMBOL(sym, license, ns) argument 52 #define __EXPORT_SYMBOL(sym, license, ns) __GENKSYMS_EXPORT_SYMBOL(sym) argument 56 #define __EXPORT_SYMBOL(sym, license, ns) \ argument 57 ___EXPORT_SYMBOL(sym, license, ns) 75 #define __EXPORT_SYMBOL(sym, license, ns) \ argument 79 asm(__stringify(___EXPORT_SYMBOL(sym, license, ns))) 91 #define EXPORT_SYMBOL_NS(sym, ns) __EXPORT_SYMBOL(sym, "", ns) argument 92 #define EXPORT_SYMBOL_NS_GPL(sym, ns) __EXPORT_SYMBOL(sym, "GPL", ns) argument
|
| A D | time_namespace.h | 26 struct ns_common ns; member 37 struct time_namespace *ns); 42 refcount_inc(&ns->ns.count); in get_time_ns() 43 return ns; in get_time_ns() 49 void free_time_ns(struct time_namespace *ns); 55 if (refcount_dec_and_test(&ns->ns.count)) in put_time_ns() 56 free_time_ns(ns); in put_time_ns() 102 struct time_namespace *ns = current->nsproxy->time_ns; in timens_ktime_to_host() local 104 if (likely(ns == &init_time_ns)) in timens_ktime_to_host() 112 struct time_namespace *ns) in vdso_join_timens() argument [all …]
|
| A D | proc_ns.h | 22 void (*put)(struct ns_common *ns); 23 int (*install)(struct nsset *nsset, struct ns_common *ns); 24 struct user_namespace *(*owner)(struct ns_common *ns); 25 struct ns_common *(*get_parent)(struct ns_common *ns); 69 static inline int ns_alloc_inum(struct ns_common *ns) in ns_alloc_inum() argument 71 WRITE_ONCE(ns->stashed, NULL); in ns_alloc_inum() 72 return proc_alloc_inum(&ns->inum); in ns_alloc_inum() 75 #define ns_free_inum(ns) proc_free_inum((ns)->inum) argument 84 extern bool ns_match(const struct ns_common *ns, dev_t dev, ino_t ino);
|
| A D | capability.h | 143 struct user_namespace *ns, int cap); 146 struct user_namespace *ns, int cap); 148 extern bool ns_capable(struct user_namespace *ns, int cap); 149 extern bool ns_capable_noaudit(struct user_namespace *ns, int cap); 150 extern bool ns_capable_setid(struct user_namespace *ns, int cap); 153 struct user_namespace *ns, int cap) in has_ns_capability() argument 162 struct user_namespace *ns, int cap) in has_ns_capability_noaudit() argument 170 static inline bool ns_capable(struct user_namespace *ns, int cap) in ns_capable() argument 183 bool privileged_wrt_inode_uidgid(struct user_namespace *ns, 202 return ns_capable(ns, CAP_CHECKPOINT_RESTORE) || in checkpoint_restore_ns_capable() [all …]
|
| A D | pid.h | 54 struct pid_namespace *ns; member 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); 241 return __task_pid_nr_ns(tsk, PIDTYPE_PID, ns); in task_pid_nr_ns() 272 return __task_pid_nr_ns(tsk, PIDTYPE_PGID, ns); in task_pgrp_nr_ns() 283 return __task_pid_nr_ns(tsk, PIDTYPE_SID, ns); in task_session_nr_ns() 293 return __task_pid_nr_ns(tsk, PIDTYPE_TGID, ns); in task_tgid_nr_ns() [all …]
|
| A D | export-internal.h | 40 #define __KSYMTAB(name, sym, sec, ns) \ argument 45 " .asciz \"" ns "\"" "\n" \ 62 #define KSYMTAB_FUNC(name, sec, ns) __KSYMTAB(name, KSYM_FUNC(name), sec, ns) argument 63 #define KSYMTAB_DATA(name, sec, ns) __KSYMTAB(name, name, sec, ns) argument
|
| A D | timecounter.h | 75 u64 ns = (u64) cycles; in cyclecounter_cyc2ns() local 77 ns = (ns * cc->mult) + *frac; in cyclecounter_cyc2ns() 78 *frac = ns & mask; in cyclecounter_cyc2ns() 79 return ns >> cc->shift; in cyclecounter_cyc2ns()
|
| A D | pm.h | 378 #define _EXPORT_PM_OPS(name, license, ns) \ argument 380 __EXPORT_SYMBOL(name, license, ns); \ 387 #define _EXPORT_DEV_PM_OPS(name, license, ns) _EXPORT_PM_OPS(name, license, ns) argument 389 #define _EXPORT_DEV_PM_OPS(name, license, ns) _DISCARD_PM_OPS(name, license, ns) argument 393 #define _EXPORT_DEV_SLEEP_PM_OPS(name, license, ns) _EXPORT_PM_OPS(name, license, ns) argument 395 #define _EXPORT_DEV_SLEEP_PM_OPS(name, license, ns) _DISCARD_PM_OPS(name, license, ns) argument 400 #define EXPORT_NS_DEV_PM_OPS(name, ns) _EXPORT_DEV_PM_OPS(name, "", #ns) argument 401 #define EXPORT_NS_GPL_DEV_PM_OPS(name, ns) _EXPORT_DEV_PM_OPS(name, "GPL", #ns) argument 405 #define EXPORT_NS_DEV_SLEEP_PM_OPS(name, ns) _EXPORT_DEV_SLEEP_PM_OPS(name, "", #ns) argument 406 #define EXPORT_NS_GPL_DEV_SLEEP_PM_OPS(name, ns) _EXPORT_DEV_SLEEP_PM_OPS(name, "GPL", #ns) argument [all …]
|
| A D | ktime.h | 136 s64 ns = kt; in ktime_divns() local 137 u64 tmp = ns < 0 ? -ns : ns; in ktime_divns() 140 return ns < 0 ? -tmp : tmp; in ktime_divns() 220 static inline ktime_t ns_to_ktime(u64 ns) in ns_to_ktime() argument 222 return ns; in ns_to_ktime()
|
| A 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
|
| A D | time64.h | 163 static __always_inline void timespec64_add_ns(struct timespec64 *a, u64 ns) in timespec64_add_ns() argument 165 a->tv_sec += __iter_div_u64_rem(a->tv_nsec + ns, NSEC_PER_SEC, &ns); in timespec64_add_ns() 166 a->tv_nsec = ns; in timespec64_add_ns()
|
| A D | uidgid.h | 123 static inline bool kuid_has_mapping(struct user_namespace *ns, kuid_t uid) in kuid_has_mapping() argument 125 return from_kuid(ns, uid) != (uid_t) -1; in kuid_has_mapping() 128 static inline bool kgid_has_mapping(struct user_namespace *ns, kgid_t gid) in kgid_has_mapping() argument 130 return from_kgid(ns, gid) != (gid_t) -1; in kgid_has_mapping() 175 static inline bool kuid_has_mapping(struct user_namespace *ns, kuid_t uid) in kuid_has_mapping() argument 180 static inline bool kgid_has_mapping(struct user_namespace *ns, kgid_t gid) in kgid_has_mapping() argument
|
| A D | cgroup.h | 129 int proc_cgroup_show(struct seq_file *m, struct pid_namespace *ns, 787 struct ns_common ns; member 797 void free_cgroup_ns(struct cgroup_namespace *ns); 804 struct cgroup_namespace *ns); 806 static inline void get_cgroup_ns(struct cgroup_namespace *ns) in get_cgroup_ns() argument 808 refcount_inc(&ns->ns.count); in get_cgroup_ns() 811 static inline void put_cgroup_ns(struct cgroup_namespace *ns) in put_cgroup_ns() argument 813 if (refcount_dec_and_test(&ns->ns.count)) in put_cgroup_ns() 814 free_cgroup_ns(ns); in put_cgroup_ns() 827 static inline void get_cgroup_ns(struct cgroup_namespace *ns) { } in get_cgroup_ns() argument [all …]
|
| A D | kernfs.h | 212 const void *ns; /* namespace tag */ member 409 const char *name, const void *ns); 411 const char *path, const void *ns); 429 void *priv, const void *ns); 437 void *priv, const void *ns, 449 const void *ns); 497 const void *ns) in kernfs_find_and_get_ns() argument 501 const void *ns) in kernfs_walk_and_get_ns() argument 529 void *priv, const void *ns) in kernfs_create_dir_ns() argument 536 void *priv, const void *ns, struct lock_class_key *key) in __kernfs_create_file() argument [all …]
|
| /include/linux/irqchip/ |
| A D | arm-gic-v3-prio.h | 37 #define __gicv3_ns_to_prio(ns) (0x80 | ((ns) >> 1)) argument
|
| /include/linux/regulator/ |
| A 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/dsa/ |
| A D | ksz_common.h | 20 u64 ns = FIELD_GET(KSZ_TSTAMP_SEC_MASK, tstamp) * NSEC_PER_SEC + in ksz_decode_tstamp() local 23 return ns_to_ktime(ns); in ksz_decode_tstamp()
|
| /include/net/ |
| A D | ioam6.h | 33 struct ioam6_namespace __rcu *ns; member 59 struct ioam6_namespace *ns,
|
| A D | net_namespace.h | 96 struct ns_common ns; member 214 struct ns_common *get_net_ns(struct ns_common *ns); 238 static inline struct ns_common *get_net_ns(struct ns_common *ns) in get_net_ns() argument 268 refcount_inc(&net->ns.count); in get_net() 279 if (!refcount_inc_not_zero(&net->ns.count)) in maybe_get_net() 287 if (refcount_dec_and_test(&net->ns.count)) in put_net() 299 return refcount_read(&net->ns.count) != 0; in check_net()
|
| /include/uapi/linux/ |
| A D | kfd_ioctl.h | 631 #define KFD_EVENT_FMT_PAGEFAULT_START(ns, pid, addr, node, rw)\ argument 632 "%lld -%d @%lx(%x) %c\n", (ns), (pid), (addr), (node), (rw) 634 #define KFD_EVENT_FMT_PAGEFAULT_END(ns, pid, addr, node, migrate_update)\ argument 635 "%lld -%d @%lx(%x) %c\n", (ns), (pid), (addr), (node), (migrate_update) 639 "%lld -%d @%lx(%lx) %x->%x %x:%x %d\n", (ns), (pid), (start), (size),\ 643 "%lld -%d @%lx(%lx) %x->%x %d %d\n", (ns), (pid), (start), (size),\ 646 #define KFD_EVENT_FMT_QUEUE_EVICTION(ns, pid, node, evict_trigger)\ argument 647 "%lld -%d %x %d\n", (ns), (pid), (node), (evict_trigger) 649 #define KFD_EVENT_FMT_QUEUE_RESTORE(ns, pid, node, rescheduled)\ argument 650 "%lld -%d %x %c\n", (ns), (pid), (node), (rescheduled) [all …]
|