Home
last modified time | relevance | path

Searched refs:ctlfd (Results 1 – 12 of 12) sorted by relevance

/illumos-gate/usr/src/lib/libproc/common/
H A DPcontrol.c499 P->ctlfd = -1; in Pxcreate()
547 P->ctlfd = fd; in Pxcreate()
790 P->ctlfd = -1; in Pgrab()
802 P->ctlfd = -1; in Pgrab()
897 P->ctlfd = fd; in Pgrab()
1230 P->ctlfd = -1; in Pfree()
1432 int ctlfd = (P->agentctlfd >= 0)? P->agentctlfd : P->ctlfd; in Psync() local
1542 (fd = dupfd(fd, P->ctlfd)) != P->ctlfd) { in Preopen()
1549 P->ctlfd = fd; in Preopen()
1839 int ctlfd = (P->agentctlfd >= 0)? P->agentctlfd : P->ctlfd; in Pstopstatus() local
[all …]
H A DPsyscall.c119 if (write(P->ctlfd, &cmd, sizeof (cmd)) != sizeof (cmd)) in Pcreate_agent()
237 int ctlfd = (P->agentctlfd >= 0)? P->agentctlfd : P->ctlfd; in execute() local
278 (void) write(ctlfd, &ctl, sizeof (ctl)); in execute()
H A DPcontrol.h220 int ctlfd; /* /proc/<pid>/ctl filedescriptor */ member
H A DPidle.c187 P->ctlfd = -1; in Pgrab_file()
H A DPlwpregs.c274 fd = P->ctlfd; in setlwpregs_proc()
H A DPcore.c2392 P->ctlfd = -1;
/illumos-gate/usr/src/lib/watchmalloc/common/
H A Dmalloc.c1289 static int ctlfd = -1; variable
1327 if (ctlfd >= 0) in init_watch()
1328 (void) close(ctlfd); in init_watch()
1329 ctlfd = -1; in init_watch()
1334 (void) fcntl(ctlfd, F_SETFD, 1); in init_watch()
1368 if (ctlfd < 0) /* first time */ in nowatch()
1379 if (ctlfd >= 0) in nowatch()
1380 (void) close(ctlfd); in nowatch()
1381 ctlfd = -1; in nowatch()
1395 (void) close(ctlfd); in nowatch()
[all …]
/illumos-gate/usr/src/lib/libc/i386/sys/
H A Dptrace.c69 int ctlfd; /* /proc/<pid>/ctl */ member
323 if (writev(cp->ctlfd, iov, 2) < 0) in ptrace()
340 if (write(cp->ctlfd, (char *)&ctl, in ptrace()
351 if (write(cp->ctlfd, (char *)runctl, 3*sizeof (long)) in ptrace()
372 (void) write(cp->ctlfd, (char *)&ctl, in ptrace()
496 (cp->ctlfd = Dupfd(fd, cp->ctlfd)) < 0) in OpenProc()
519 if (cp->ctlfd > 0) in CloseProc()
520 (void) close(cp->ctlfd); in CloseProc()
524 cp->ctlfd = 0; in CloseProc()
562 write(cp->ctlfd, (char *)ctl, 2*sizeof (long)) in GrabProc()
[all …]
/illumos-gate/usr/src/lib/libc/sparc/sys/
H A Dptrace.c71 int ctlfd; /* /proc/<pid>/ctl */ member
333 if (writev(cp->ctlfd, iov, 2) < 0) in ptrace()
350 if (write(cp->ctlfd, (char *)&ctl, in ptrace()
361 if (write(cp->ctlfd, (char *)runctl, 3*sizeof (long)) in ptrace()
382 (void) write(cp->ctlfd, (char *)&ctl, in ptrace()
506 (cp->ctlfd = Dupfd(fd, cp->ctlfd)) < 0) in OpenProc()
529 if (cp->ctlfd > 0) in CloseProc()
530 (void) close(cp->ctlfd); in CloseProc()
534 cp->ctlfd = 0; in CloseProc()
572 write(cp->ctlfd, (char *)ctl, 2*sizeof (long)) in GrabProc()
[all …]
/illumos-gate/usr/src/cmd/fs.d/ufs/fssnap/
H A Dfssnap.c233 int ctlfd; in create_snap() local
299 if ((ctlfd = open(SNAP_CTL_PATH, O_RDONLY | O_EXCL)) == -1) { in create_snap()
304 if (ioctl(ctlfd, _FIOSNAPSHOTCREATE_MULTI, enable) == -1) { in create_snap()
317 if (close(ctlfd) != 0) { in create_snap()
346 int ctlfd; in delete_snap() local
350 if ((ctlfd = open(SNAP_CTL_PATH, O_RDONLY | O_EXCL)) == -1) in delete_snap()
354 if (ioctl(ctlfd, _FIOSNAPSHOTDELETE, &disable) == -1) { in delete_snap()
362 if (close(ctlfd) != 0) { in delete_snap()
/illumos-gate/usr/src/cmd/halt/
H A Dhalt.c174 int ctlfd; in direct_init() local
182 if ((ctlfd = open(ctlfile, O_WRONLY)) == -1) in direct_init()
186 if (write(ctlfd, &command, sizeof (long)) == -1) { in direct_init()
187 (void) close(ctlfd); in direct_init()
194 if (write(ctlfd, cmds, sizeof (cmds)) == -1) { in direct_init()
195 (void) close(ctlfd); in direct_init()
199 (void) close(ctlfd); in direct_init()
/illumos-gate/usr/src/lib/fm/topo/modules/common/ses/
H A Dses.c510 int efd, ctlfd, statfd; in ses_contract_thread() local
587 ctlfd = open64(path, O_WRONLY); in ses_contract_thread()
591 (void) ct_ctl_abandon(ctlfd); in ses_contract_thread()
592 (void) close(ctlfd); in ses_contract_thread()
602 ctlfd = open64(path, O_WRONLY); in ses_contract_thread()
612 (void) ct_ctl_ack(ctlfd, evid); in ses_contract_thread()
622 (void) ct_ctl_abandon(ctlfd); in ses_contract_thread()
624 (void) close(ctlfd); in ses_contract_thread()
779 int ctlfd; in ses_target_free() local
788 (void) ct_ctl_abandon(ctlfd); in ses_target_free()
[all …]