Home
last modified time | relevance | path

Searched refs:proc (Results 1 – 25 of 799) sorted by relevance

12345678910>>...32

/freebsd/usr.bin/rpcgen/
H A Drpc_clntout.c72 proc_list *proc; in write_program() local
75 for (proc = vp->procs; proc != NULL; proc = proc->next) { in write_program()
78 ptype(proc->res_prefix, proc->res_type, 1); in write_program()
80 pvname(proc->proc_name, vp->vers_num); in write_program()
81 printarglist(proc, RESULT, "clnt", "CLIENT *"); in write_program()
84 pvname(proc->proc_name, vp->vers_num); in write_program()
85 printarglist(proc, RESULT, "clnt", "CLIENT *"); in write_program()
89 printbody(proc); in write_program()
105 printarglist(proc_list *proc, const char *result, const char *addargname, in printarglist() argument
114 ptype(proc->args.decls->decl.prefix, in printarglist()
[all …]
H A Drpc_sample.c78 proc_list *proc; in write_sample_client() local
88 for (proc = vp->procs; proc != NULL; proc = proc->next) { in write_sample_client()
92 ptype(proc->res_prefix, proc->res_type, 1); in write_sample_client()
95 ptype(proc->res_prefix, proc->res_type, 1); in write_sample_client()
99 if(proc->arg_num < 2 && !newstyle) { in write_sample_client()
101 if(!streq(proc->args.decls->decl.type, "void")) in write_sample_client()
102 ptype(proc->args.decls->decl.prefix, in write_sample_client()
103 proc->args.decls->decl.type, 1); in write_sample_client()
107 pvname(proc->proc_name, vp->vers_num); in write_sample_client()
109 } else if (!streq(proc->args.decls->decl.type, "void")) { in write_sample_client()
[all …]
H A Drpc_tblout.c79 proc_list *proc; in write_table() local
98 for (proc = vp->procs; proc != NULL; proc = proc->next) { in write_table()
99 current = atoi(proc->proc_num); in write_table()
114 pvname_svc(proc->proc_name, vp->vers_num); in write_table()
118 pvname(proc->proc_name, vp->vers_num); in write_table()
123 if( proc->arg_num > 1 ) in write_table()
124 printit((char*) NULL, proc->args.argname ); in write_table()
127 printit( proc->args.decls->decl.prefix, in write_table()
128 proc->args.decls->decl.type ); in write_table()
130 printit(proc->res_prefix, proc->res_type); in write_table()
H A Drpc_svcout.c326 proc_list *proc; in write_real_program() local
331 for (proc = vp->procs; proc != NULL; proc = proc->next) { in write_real_program()
334 internal_proctype(proc); in write_real_program()
338 pvname(proc->proc_name, vp->vers_num); in write_real_program()
341 if (proc->arg_num > 1) in write_real_program()
342 fputs(proc->args.argname, fout); in write_real_program()
344 ptype(proc->args.decls->decl.prefix, in write_real_program()
345 proc->args.decls->decl.type, 0); in write_real_program()
358 pvname_svc(proc->proc_name, vp->vers_num); in write_real_program()
360 if (proc->arg_num < 2) { /* single argument */ in write_real_program()
[all …]
H A Drpc_hout.c240 proc_list *proc; in define_printed() local
243 for (proc = vers->procs; proc != NULL; proc = proc->next) { in define_printed()
244 if (proc == stop) { in define_printed()
246 } else if (streq(proc->proc_name, stop->proc_name)) { in define_printed()
276 proc_list *proc; in pprogramdef() local
299 for (proc = vers->procs; proc != NULL; proc = proc->next) { in pprogramdef()
300 if (!define_printed(proc, def->def.pr.versions)) { in pprogramdef()
301 puldefine(proc->proc_name, proc->proc_num); in pprogramdef()
304 pprocdef(proc, vers, "CLIENT *", 0); in pprogramdef()
306 pprocdef(proc, vers, "struct svc_req *", 1); in pprogramdef()
[all …]
/freebsd/cddl/usr.sbin/dwatch/libexec/
H A Dproc15 proc)
17 proc:::create, \
18 proc:::exec, \
19 proc:::exec-failure, \
20 proc:::exec-success, \
21 proc:::exit, \
22 proc:::signal-clear, \
23 proc:::signal-discard, \
24 proc:::signal-send )}
26 proc-signal)
[all …]
H A DMakefile10 proc \
31 LINKS+= ${LIBEXECDIR}/dwatch/proc ${LIBEXECDIR}/dwatch/proc-create
32 LINKS+= ${LIBEXECDIR}/dwatch/proc ${LIBEXECDIR}/dwatch/proc-exec
33 LINKS+= ${LIBEXECDIR}/dwatch/proc ${LIBEXECDIR}/dwatch/proc-exec-failure
34 LINKS+= ${LIBEXECDIR}/dwatch/proc ${LIBEXECDIR}/dwatch/proc-exec-success
35 LINKS+= ${LIBEXECDIR}/dwatch/proc ${LIBEXECDIR}/dwatch/proc-exit
36 LINKS+= ${LIBEXECDIR}/dwatch/proc ${LIBEXECDIR}/dwatch/proc-signal
37 LINKS+= ${LIBEXECDIR}/dwatch/proc ${LIBEXECDIR}/dwatch/proc-signal-clear
38 LINKS+= ${LIBEXECDIR}/dwatch/proc ${LIBEXECDIR}/dwatch/proc-signal-discard
39 LINKS+= ${LIBEXECDIR}/dwatch/proc ${LIBEXECDIR}/dwatch/proc-signal-send
[all …]
/freebsd/contrib/llvm-project/compiler-rt/lib/tsan/rtl/
H A Dtsan_rtl_proc.cpp23 Processor *proc = new(mem) Processor; in ProcCreate() local
24 proc->thr = nullptr; in ProcCreate()
26 AllocatorProcStart(proc); in ProcCreate()
29 proc->dd_pt = ctx->dd->CreatePhysicalThread(); in ProcCreate()
30 return proc; in ProcCreate()
33 void ProcDestroy(Processor *proc) { in ProcDestroy() argument
34 CHECK_EQ(proc->thr, nullptr); in ProcDestroy()
36 AllocatorProcFinish(proc); in ProcDestroy()
38 ctx->metamap.OnProcIdle(proc); in ProcDestroy()
40 ctx->dd->DestroyPhysicalThread(proc->dd_pt); in ProcDestroy()
[all …]
H A Dtsan_sync.cpp48 u32 idx = block_alloc_.Alloc(&thr->proc()->block_cache); in AllocBlock()
59 uptr MetaMap::FreeBlock(Processor *proc, uptr p, bool reset) { in FreeBlock() argument
64 FreeRange(proc, p, sz, reset); in FreeBlock()
68 bool MetaMap::FreeRange(Processor *proc, uptr p, uptr sz, bool reset) { in FreeRange() argument
84 block_alloc_.Free(&proc->block_cache, idx & ~kFlagMask); in FreeRange()
92 sync_alloc_.Free(&proc->sync_cache, idx & ~kFlagMask); in FreeRange()
108 void MetaMap::ResetRange(Processor *proc, uptr p, uptr sz, bool reset) { in ResetRange() argument
112 FreeRange(proc, p, sz, reset); in ResetRange()
119 FreeRange(proc, p, sz, reset); in ResetRange()
125 FreeRange(proc, p, diff, reset); in ResetRange()
[all …]
H A Dtsan_mman.cpp64 Processor *proc; member
74 proc(ProcCreate()), in GlobalProc()
91 if (thr->proc()) in ScopedGlobalProcessor()
108 ProcWire(gp->proc, thr); in ScopedGlobalProcessor()
114 if (thr->proc() != gp->proc) in ~ScopedGlobalProcessor()
116 ProcUnwire(gp->proc, thr); in ~ScopedGlobalProcessor()
163 void AllocatorProcStart(Processor *proc) { in AllocatorProcStart() argument
164 allocator()->InitCache(&proc->alloc_cache); in AllocatorProcStart()
165 internal_allocator()->InitCache(&proc->internal_alloc_cache); in AllocatorProcStart()
168 void AllocatorProcFinish(Processor *proc) { in AllocatorProcFinish() argument
[all …]
/freebsd/sys/fs/pseudofs/
H A Dpseudofs_vnops.c89 pfs_visible_proc(struct thread *td, struct pfs_node *pn, struct proc *proc) in pfs_visible_proc() argument
92 if (proc == NULL) in pfs_visible_proc()
95 PROC_LOCK_ASSERT(proc, MA_OWNED); in pfs_visible_proc()
97 if ((proc->p_flag & P_WEXIT) != 0) in pfs_visible_proc()
99 if (p_cansee(td, proc) != 0) in pfs_visible_proc()
101 return (pn_vis(td, proc, pn)); in pfs_visible_proc()
106 struct proc **p) in pfs_visible()
108 struct proc *proc; in pfs_visible() local
117 proc = pfind(pid); in pfs_visible()
118 if (proc == NULL) in pfs_visible()
[all …]
/freebsd/sys/sys/
H A Dracct.h44 struct proc;
174 int racct_add(struct proc *p, int resource, uint64_t amount);
176 void racct_add_force(struct proc *p, int resource, uint64_t amount);
177 void racct_add_buf(struct proc *p, const struct buf *bufp, int is_write);
178 int racct_set(struct proc *p, int resource, uint64_t amount);
179 int racct_set_unlocked(struct proc *p, int resource, uint64_t amount);
180 void racct_set_force(struct proc *p, int resource, uint64_t amount);
181 void racct_sub(struct proc *p, int resource, uint64_t amount);
183 uint64_t racct_get_limit(struct proc *p, int resource);
184 uint64_t racct_get_available(struct proc *p, int resource);
[all …]
H A Dproc.h87 struct proc *s_leader; /* (m + e) Session leader. */
107 LIST_HEAD(, proc) pg_members; /* (m + e) Pointer to pgrp members. */
187 struct proc;
236 struct proc *td_proc; /* (*) Associated process. */
379 struct proc *td_rfppwait_p; /* (k) The vforked child */
648 struct proc { struct
649 LIST_ENTRY(proc) p_list; /* (d) List of all processes. */
669 LIST_ENTRY(proc) p_hash; /* (d) Hash chain. */ argument
670 LIST_ENTRY(proc) p_pglist; /* (g + e) List of processes in pgrp. */
671 struct proc *p_pptr; /* (c + e) Pointer to parent process. */ argument
[all …]
H A Dresourcevar.h132 struct proc;
138 void calccru(struct proc *p, struct timeval *up, struct timeval *sp);
139 void calcru(struct proc *p, struct timeval *up, struct timeval *sp);
147 int kern_proc_setrlimit(struct thread *td, struct proc *p, u_int which,
166 rlim_t lim_cur_proc(struct proc *p, int which);
167 void lim_fork(struct proc *p1, struct proc *p2);
175 rlim_t lim_max_proc(struct proc *p, int which);
177 void lim_rlimit_proc(struct proc *p, int which, struct rlimit *rlp);
181 void rufetch(struct proc *p, struct rusage *ru);
182 void rufetchcalc(struct proc *p, struct rusage *ru, struct timeval *up,
[all …]
H A Dkthread.h42 struct proc **global_procpp; /* ptr to proc ptr save area */
52 int kproc_create(void (*)(void *), void *, struct proc **,
55 int kproc_resume(struct proc *);
58 int kproc_suspend(struct proc *, int);
59 void kproc_suspend_check(struct proc *);
63 struct proc **,
69 struct proc *, struct thread **,
H A Drctl.h43 struct proc;
69 struct proc *rs_proc;
142 int rctl_enforce(struct proc *p, int resource, uint64_t amount);
144 int64_t rctl_pcpu_available(const struct proc *p);
145 uint64_t rctl_get_limit(struct proc *p, int resource);
146 uint64_t rctl_get_available(struct proc *p, int resource);
148 void rctl_proc_ucred_changed(struct proc *p, struct ucred *newcred);
149 int rctl_proc_fork(struct proc *parent, struct proc *child);
/freebsd/lib/libkvm/
H A Dkvm_proc.c105 kvm_proclist(kvm_t *kd, int what, int arg, struct proc *p, in kvm_proclist()
122 struct proc proc; in kvm_proclist() local
123 struct proc pproc; in kvm_proclist()
136 for (; cnt < maxcnt && p != NULL; p = LIST_NEXT(&proc, p_list)) { in kvm_proclist()
138 if (KREAD(kd, (u_long)p, &proc)) { in kvm_proclist()
142 if (proc.p_state == PRS_NEW) in kvm_proclist()
144 if (KREAD(kd, (u_long)proc.p_ucred, &ucred) == 0) { in kvm_proclist()
179 if (proc.p_pid != (pid_t)arg) in kvm_proclist()
213 kp->ki_args = proc.p_args; in kvm_proclist()
214 kp->ki_numthreads = proc.p_numthreads; in kvm_proclist()
[all …]
/freebsd/usr.sbin/rtprio/
H A Drtprio.c56 pid_t proc = 0; in main() local
69 proc = parseint(argv[1], "pid"); in main()
70 proc = abs(proc); in main()
73 if (rtprio(RTP_LOOKUP, proc, &rtp) != 0) in main()
109 proc = parseint(argv[2], "pid"); in main()
110 proc = abs(proc); in main()
113 if (rtprio(RTP_SET, proc, &rtp) != 0) in main()
116 if (proc == 0) { in main()
/freebsd/tools/test/stress2/misc/
H A Dprocfs6.sh34 if ! mount | grep -q /proc; then
35 mount -t procfs null /proc || exit 1
38 [ `ls /proc | wc -l` -eq 0 ] && { ls -l /proc; exit 1; }
39 [ `ls /proc/$$ | wc -l` -eq 0 ] && { ls -l /proc; exit 1; }
41 [ $mounted ] && umount /proc
/freebsd/sys/contrib/openzfs/include/os/freebsd/spl/sys/
H A Dproc.h34 #include_next <sys/proc.h>
62 typedef struct proc proc_t;
67 do_thread_create(caddr_t stk, size_t stksize, void (*proc)(void *), void *arg, in do_thread_create()
85 error = kproc_kthread_add(proc, arg, ppp, &td, RFSTOPPED, in do_thread_create()
95 #define thread_create_named(name, stk, stksize, proc, arg, len, \ argument
97 do_thread_create(stk, stksize, proc, arg, len, pp, state, pri, name)
98 #define thread_create(stk, stksize, proc, arg, len, pp, state, pri) \ argument
99 do_thread_create(stk, stksize, proc, arg, len, pp, state, pri, #proc)
/freebsd/tools/debugscripts/
H A Dgdbinit.i386235 set $proc = allproc.lh_first
237 set $pptr = $proc.p_pptr
238 if ($proc->p_pid == $arg0)
239 set $pcba = $proc->p_threads.tqh_first->td_pcb
244 set $aproc = $proc.p_list.le_next
248 set $proc = $aproc
279 set $proc = allproc.lh_first
281 if ($proc->p_pid == $arg0)
282 btr $proc->p_threads.tqh_first->td_pcb->pcb_ebp
285 set $aproc = $proc.p_list.le_next
[all …]
H A Dgdbinit.kernel200 set $proc = allproc.lh_first
202 printf "pid/ID ppid/tid uid pgrp flag st comm/name proc/thread\n"
204 set $pptr = $proc.p_pptr
206 set $pptr = $proc
208 if ($proc.p_state)
210 $proc.p_pid, $pptr->p_pid, \
211 $proc.p_ucred->cr_ruid, \
212 $proc.p_pgrp->pg_id, $proc.p_flag, $proc.p_state, \
213 &$proc.p_comm[0], $aproc
214 set $thread = $proc->p_threads.tqh_first
[all …]
/freebsd/sys/kern/
H A Dkern_procctl.c55 protect_setchild(struct thread *td, struct proc *p, int flags) in protect_setchild()
73 protect_setchildren(struct thread *td, struct proc *top, int flags) in protect_setchildren()
75 struct proc *p; in protect_setchildren()
107 protect_set(struct thread *td, struct proc *p, void *data) in protect_set()
137 reap_acquire(struct thread *td, struct proc *p, void *data __unused) in reap_acquire()
154 reap_release(struct thread *td, struct proc *p, void *data __unused) in reap_release()
169 reap_status(struct thread *td, struct proc *p, void *data) in reap_status()
171 struct proc *reap, *p2, *first_p; in reap_status()
204 reap_getpids(struct thread *td, struct proc *p, void *data) in reap_getpids()
206 struct proc *reap, *p2; in reap_getpids()
[all …]
/freebsd/usr.sbin/rpcbind/
H A Drpcb_stat.c60 rpcbs_procinfo(rpcvers_t rtype, rpcproc_t proc) in rpcbs_procinfo() argument
65 if (proc > rpcb_highproc_2) in rpcbs_procinfo()
70 if (proc > rpcb_highproc_3) in rpcbs_procinfo()
74 if (proc > rpcb_highproc_4) in rpcbs_procinfo()
79 inf[rtype].info[proc]++; in rpcbs_procinfo()
144 rpcvers_t vers, rpcproc_t proc, char *netid, rpcblist_ptr rbl) in rpcbs_rmtcall() argument
157 (rl->proc == proc) && in rpcbs_rmtcall()
179 rl->proc = proc; in rpcbs_rmtcall()
/freebsd/sys/compat/linuxkpi/common/src/
H A Dlinux_current.c57 find_other_mm(struct proc *p) in find_other_mm()
81 struct proc *proc; in linux_alloc_current() local
111 proc = td->td_proc; in linux_alloc_current()
113 PROC_LOCK(proc); in linux_alloc_current()
114 mm_other = find_other_mm(proc); in linux_alloc_current()
118 PROC_UNLOCK(proc); in linux_alloc_current()
128 PROC_LOCK(proc); in linux_alloc_current()
129 mm_other = find_other_mm(proc); in linux_alloc_current()
148 PROC_UNLOCK(proc); in linux_alloc_current()
199 struct proc *p; in linux_get_pid_task_int()
[all …]

12345678910>>...32