Lines Matching +full:3 +full:ns
23 * lost the old acct_file. 3/10/98, Al Viro.
73 static int acct_parm[3] = {4, 2, 30};
83 .maxlen = 3*sizeof(int),
110 struct pid_namespace *ns; member
163 static struct bsd_acct_struct *acct_get(struct pid_namespace *ns) in acct_get() argument
169 res = to_acct(READ_ONCE(ns->bacct)); in acct_get()
181 if (res != to_acct(READ_ONCE(ns->bacct))) { in acct_get()
196 cmpxchg(&acct->ns->bacct, pin, NULL); in acct_pin_kill()
216 struct pid_namespace *ns = task_active_pid_ns(current); in acct_on() local
263 acct->ns = ns; in acct_on()
271 old = xchg(&ns->bacct, &acct->pin); in acct_on()
316 void acct_exit_ns(struct pid_namespace *ns) in acct_exit_ns() argument
319 pin_kill(ns->bacct); in acct_exit_ns()
327 * is a 13-bit fraction with a 3-bit (base 8) exponent.
331 #define EXPSIZE 3 /* Base 8 (3 bit) exponent. */
341 value >>= EXPSIZE; /* Base 8 exponent == 3 bit shift. */ in encode_comp_t()
405 #elif ACCT_VERSION == 3
455 #if ACCT_VERSION == 3 in fill_ac()
522 #elif ACCT_VERSION == 3 in do_acct_process()
524 struct pid_namespace *ns = acct->ns; in do_acct_process() local
526 ac.ac_pid = task_tgid_nr_ns(current, ns); in do_acct_process()
529 ns); in do_acct_process()
593 static void slow_acct_process(struct pid_namespace *ns) in slow_acct_process() argument
595 for ( ; ns; ns = ns->parent) { in slow_acct_process()
596 struct bsd_acct_struct *acct = acct_get(ns); in slow_acct_process()
610 struct pid_namespace *ns; in acct_process() local
617 for (ns = task_active_pid_ns(current); ns != NULL; ns = ns->parent) { in acct_process()
618 if (ns->bacct) in acct_process()
621 if (unlikely(ns)) in acct_process()
622 slow_acct_process(ns); in acct_process()