Searched refs:pid (Results 1 - 25 of 1140) sorted by last modified time

1234567891011>>

/freebsd-head/sys/kern/
H A Dkern_exit.c361 * F_SETOWN with our pid.
424 WITNESS_WARN(WARN_PANIC, NULL, "process (pid %d) exiting", p->p_pid);
533 CTR2(KTR_PTRACE, "exit: pid %d, clearing orphan %d", p->p_pid,
597 * executing waitpid(2) with our pid, he will
689 sbuf_printf(sb, "%s(pid %d uid %d) aborted: ",
771 error = kern_wait(td, uap->pid, &status, uap->options, rup);
1111 kern_wait(struct thread *td, pid_t pid, int *status, int options, argument
1120 * Translate the special pid values into the (idtype, pid)
1124 if (pid
1188 pid_t pid; local
[all...]
H A Dkern_prot.c152 /* Get an arbitrary pid's process group id */
155 pid_t pid; member in struct:getpgid_args
164 if (uap->pid == 0) {
168 p = pfind(uap->pid);
183 * Get an arbitrary pid's session id.
187 pid_t pid; member in struct:getsid_args
194 return (kern_getsid(td, uap->pid));
198 kern_getsid(struct thread *td, pid_t pid) argument
203 if (pid == 0) {
207 p = pfind(pid);
376 int pid; /* target process id */ member in struct:setpgid_args
[all...]
/freebsd-head/contrib/llvm-project/compiler-rt/lib/profile/
H A DGCDAProfiling.c667 pid_t pid = fork(); local
669 if (pid == 0) {
672 // The pid changed so we've a fork (one could have its own fork function)
678 return pid;
/freebsd-head/sys/fs/fuse/
H A Dfuse_internal.c1119 pid_t pid = td->td_proc->p_pid; local
1158 fuse_filehandle_getrw(vp, FWRITE, &fufh, cred, pid);
H A Dfuse_vnops.c269 struct ucred *cred, pid_t pid)
271 if (fuse_filehandle_get(vp, FREAD, fufhp, cred, pid) == 0)
273 return fuse_filehandle_get(vp, FEXEC, fufhp, cred, pid);
278 fuse_flush(struct vnode *vp, struct ucred *cred, pid_t pid, int fflag) argument
290 err = fuse_filehandle_getrw(vp, fflag, &fufh, cred, pid);
384 pid_t pid = td->td_proc->p_pid; local
405 err = fuse_filehandle_get_anyflags(vp, &fufh, cred, pid);
435 fli->lk.pid = fl->l_pid;
443 fl->l_pid = flo->lk.pid;
560 pid_t pid local
268 fuse_filehandle_get_dir(struct vnode *vp, struct fuse_filehandle **fufhp, struct ucred *cred, pid_t pid) argument
1318 pid_t pid = td->td_proc->p_pid; local
1378 pid_t pid = curthread->td_proc->p_pid; local
1415 pid_t pid = curthread->td_proc->p_pid; local
1942 pid_t pid = curthread->td_proc->p_pid; local
[all...]
/freebsd-head/tests/sys/fs/fusefs/
H A Dutils.cc492 pid_ok = (pid_t)in.header.pid == getpid();
520 bool pid_ok = (pid_t)in.header.pid == getpid();
H A Dxattr.cc54 pid_t pid = *(pid_t*)target; local
57 printf("Killing! pid %d\n", pid);
58 kill(pid, SIGINT);
H A Dopen.cc175 in.header.pid == (uint32_t)getpid() &&
189 in.header.pid != (uint32_t)getpid() &&
/freebsd-head/contrib/unbound/compat/
H A Dgetentropy_solaris.c266 pid_t pid; local
270 pid = getpid();
271 if (lastpid == pid) {
276 lastpid = pid;
292 HX((pid = getpid()) == -1, pid);
293 HX((pid = getsid(pid)) == -1, pid);
294 HX((pid
[all...]
/freebsd-head/contrib/unbound/
H A Dconfigure1594 run-dir/unbound.pid)
4308 UNBOUND_PIDFILE="$UNBOUND_RUN_DIR/unbound.pid"
/freebsd-head/contrib/unbound/contrib/
H A Dunbound_munin_131 pid="`cat $lock 2>&1`"
132 kill -0 "$pid" >/dev/null 2>&1
133 if test $? -ne 0 -a "$pid" != $$ ; then
/freebsd-head/contrib/unbound/daemon/
H A Dunbound.c285 /** Read existing pid from pidfile.
286 * @param file: file name of pid file.
287 * @return: the pid from the file or -1 if none.
293 pid_t pid; local
321 pid = (pid_t)strtol(pidbuf, &t, 10);
326 return pid;
329 /** write pid to file.
330 * @param pidfile: file name of pid file.
331 * @param pid: pid t
334 writepid(const char* pidfile, pid_t pid) argument
[all...]
/freebsd-head/lib/libprocstat/
H A Dlibprocstat.c128 static Elf_Auxinfo *procstat_getauxv_sysctl(pid_t pid, unsigned int *cntp);
162 static gid_t *procstat_getgroups_sysctl(pid_t pid, unsigned int *count);
163 static struct kinfo_kstack *procstat_getkstack_sysctl(pid_t pid,
169 static int procstat_getosrel_sysctl(pid_t pid, int *osrelp);
172 static int procstat_getpathname_sysctl(pid_t pid, char *pathname,
178 static int procstat_getrlimit_sysctl(pid_t pid, int which,
184 static int procstat_getumask_sysctl(pid_t pid, unsigned short *maskp);
425 warnx("can't read proc struct at %p for pid %d",
434 warnx("can't read pgrp struct at %p for pid %d",
441 warnx("can't read session struct at %p for pid
2016 procstat_getgroups_sysctl(pid_t pid, unsigned int *cntp) argument
2097 procstat_getumask_sysctl(pid_t pid, unsigned short *maskp) argument
2177 procstat_getrlimit_sysctl(pid_t pid, int which, struct rlimit* rlimit) argument
2241 procstat_getpathname_sysctl(pid_t pid, char *pathname, size_t maxlen) argument
2321 procstat_getosrel_sysctl(pid_t pid, int *osrelp) argument
2380 is_elf32_sysctl(pid_t pid) argument
2402 procstat_getauxv32_sysctl(pid_t pid, unsigned int *cntp) argument
2451 procstat_getauxv_sysctl(pid_t pid, unsigned int *cntp) argument
2568 procstat_getkstack_sysctl(pid_t pid, int *cntp) argument
[all...]
/freebsd-head/contrib/bmake/filemon/
H A Dfilemon_dev.c104 filemon_setpid_parent(struct filemon *F, pid_t pid) argument
110 filemon_setpid_child(const struct filemon *F, pid_t pid) argument
114 return ioctl(F->fd, FILEMON_SET_PID, &pid);
H A Dfilemon_ktrace.c121 pid_t pid; member in struct:filemon_state::filemon_key
139 if (Sa->key.pid < Sb->key.pid)
141 if (Sa->key.pid > Sb->key.pid)
156 if (S->key.pid < key->pid)
158 if (S->key.pid > key->pid)
300 * pid, no
316 filemon_setpid_parent(struct filemon *F, pid_t pid) argument
329 filemon_setpid_child(const struct filemon *F, pid_t pid) argument
[all...]
/freebsd-head/contrib/bmake/
H A Djob.c411 fprintf(debug_file, "job %d, status %d, flags %d, pid %d\n",
412 (int)(job - job_table), job->job_state, job->flags, job->pid);
515 signo, job->pid);
517 KILLPG(job->pid, signo);
665 * Compare the pid of the job with the given pid and return 0 if they
671 * pid process id desired
674 * Job with matching pid
681 JobFindPid(int pid, int status, Boolean isJobs) argument
686 if ((job->job_state == status) && job->pid
2051 int pid; /* pid of dead child */ local
2074 JobReapChild(pid_t pid, WAIT_T status, Boolean isJobs) argument
[all...]
H A Dmake.h548 #define KILLPG(pid, sig) kill(-(pid), (sig))
550 #define KILLPG(pid, sig) killpg((pid), (sig))
H A Dmeta.c709 pid_t pid; local
711 pid = getpid();
712 if (filemon_setpid_child(pbm->filemon, pid) == -1) {
713 err(1, "Could not set filemon pid!");
721 meta_job_parent(Job *job, pid_t pid) argument
732 filemon_setpid_parent(pbm->filemon, pid);
1143 int pid; local
1205 * <key> <pid> <data>
1209 * <pid> is the process that made the syscall.
1230 * Each time we spot a different process ('pid')
[all...]
H A Dutil.c227 killpg(int pid, int sig) argument
229 return kill(-pid, sig);
504 killpg(int pid, int sig) argument
506 return kill(-pid, sig);
/freebsd-head/contrib/bmake/mk/
H A Dmeta2deps.py401 C "pid" "cwd"
402 E "pid" "path"
403 F "pid" "child"
404 R "pid" "path"
405 W "pid" "path"
406 X "pid" "status"
407 D "pid" "path"
408 L "pid" "src" "target"
409 M "pid" "old" "new"
410 S "pid" "pat
[all...]
/freebsd-head/sys/powerpc/aim/
H A Dmmu_radix.c187 radix_tlbie(uint8_t ric, uint8_t prs, uint16_t is, uint32_t pid, uint32_t lpid, argument
194 rs = ((uint64_t)pid << 32) | lpid;
201 radix_tlbie_invlpg_user_4k(uint32_t pid, vm_offset_t va) argument
205 TLBIEL_INVAL_PAGE, pid, 0, va, TLBIE_ACTUAL_PAGE_4K);
209 radix_tlbie_invlpg_user_2m(uint32_t pid, vm_offset_t va) argument
213 TLBIEL_INVAL_PAGE, pid, 0, va, TLBIE_ACTUAL_PAGE_2M);
217 radix_tlbie_invlpwc_user(uint32_t pid) argument
221 TLBIEL_INVAL_SET_PID, pid, 0, 0, 0);
225 radix_tlbie_flush_user(uint32_t pid) argument
229 TLBIEL_INVAL_SET_PID, pid,
729 tlbiel_radix_set_isa300(uint32_t set, uint32_t is, uint32_t pid, uint32_t ric, uint32_t prs) argument
4135 mmu_radix_update_proctab(int pid, pml1_entry_t l1pa) argument
4143 vmem_addr_t pid; local
[all...]
/freebsd-head/usr.bin/truss/
H A Dsyscalls.c1062 get_struct(pid_t pid, uintptr_t offset, void *buf, int len) argument
1070 if (ptrace(PT_IO, pid, (caddr_t)&iorequest, 0) < 0)
1083 get_string(pid_t pid, uintptr_t addr, int max) argument
1107 if (ptrace(PT_IO, pid, (caddr_t)&iorequest, 0) < 0) {
1210 pid_t pid = trussinfo->curthread->proc->pid; local
1223 if (get_struct(pid, arg, sa, len) == -1) {
1277 pid_t pid = trussinfo->curthread->proc->pid; local
1291 if (get_struct(pid, ar
1525 print_cmsgs(FILE *fp, pid_t pid, bool receive, struct msghdr *msghdr) argument
1601 pid_t pid; local
[all...]
/freebsd-head/usr.sbin/mountd/
H A Dmountd.c418 errx(1, "mountd already running, pid: %d.", otherpid);
/freebsd-head/sys/arm64/arm64/
H A Dgicv3_its.c182 uint32_t pid; member in struct:its_cmd_desc::__anon1::__anon5
189 uint32_t pid; member in struct:its_cmd_desc::__anon1::__anon6
200 uint32_t pid; member in struct:its_cmd_desc::__anon1::__anon8
1459 cmd_format_pid(struct its_cmd *cmd, uint32_t pid) argument
1463 cmd->cmd_dword[1] |= htole64((uint64_t)pid << CMD_PID_SHIFT);
1668 cmd_format_pid(cmd, desc->cmd_desc_mapvi.pid);
1675 cmd_format_id(cmd, desc->cmd_desc_mapi.pid);
1682 cmd_format_id(cmd, desc->cmd_desc_inv.pid);
1792 desc.cmd_desc_mapvi.pid = girq->gi_lpi + GIC_FIRST_LPI;
1822 desc.cmd_desc_inv.pid
[all...]
/freebsd-head/usr.sbin/acpi/acpidump/
H A Dacpi.c1895 pid_t pid; local
1924 if ((pid = fork()) == 0) {
1931 if (pid > 0)
1937 if (pid < 0) {

Completed in 317 milliseconds

1234567891011>>