Home
last modified time | relevance | path

Searched refs:pfd (Results 1 – 25 of 73) sorted by relevance

123

/titanic_50/usr/src/lib/libdtrace/common/
H A Ddt_printf.c48 pfcheck_addr(dt_pfargv_t *pfv, dt_pfargd_t *pfd, dt_node_t *dnp) in pfcheck_addr() argument
55 pfcheck_kaddr(dt_pfargv_t *pfv, dt_pfargd_t *pfd, dt_node_t *dnp) in pfcheck_kaddr() argument
63 pfcheck_uaddr(dt_pfargv_t *pfv, dt_pfargd_t *pfd, dt_node_t *dnp) in pfcheck_uaddr() argument
79 pfcheck_stack(dt_pfargv_t *pfv, dt_pfargd_t *pfd, dt_node_t *dnp) in pfcheck_stack() argument
86 pfcheck_time(dt_pfargv_t *pfv, dt_pfargd_t *pfd, dt_node_t *dnp) in pfcheck_time() argument
94 pfcheck_str(dt_pfargv_t *pfv, dt_pfargd_t *pfd, dt_node_t *dnp) in pfcheck_str() argument
116 pfcheck_wstr(dt_pfargv_t *pfv, dt_pfargd_t *pfd, dt_node_t *dnp) in pfcheck_wstr() argument
133 pfcheck_csi(dt_pfargv_t *pfv, dt_pfargd_t *pfd, dt_node_t *dnp) in pfcheck_csi() argument
141 pfcheck_fp(dt_pfargv_t *pfv, dt_pfargd_t *pfd, dt_node_t *dnp) in pfcheck_fp() argument
148 pfcheck_xint(dt_pfargv_t *pfv, dt_pfargd_t *pfd, dt_node_t *dnp) in pfcheck_xint() argument
[all …]
/titanic_50/usr/src/cmd/ptools/pwait/
H A Dpwait.c54 struct pollfd *pfd; in main() local
117 pfd = &pollfd[i]; in main()
118 if ((pfd->fd = open(psinfofile, O_RDONLY)) >= 0) { in main()
125 pfd->events = POLLPRI; in main()
126 pfd->revents = 0; in main()
144 pfd = &pollfd[i]; in main()
145 if (pfd->fd < 0 || (pfd->revents & ~POLLPRI) == 0) { in main()
150 pfd->events = 0; in main()
151 pfd->revents = 0; in main()
157 if (pfd->revents & POLLHUP) { in main()
[all …]
/titanic_50/usr/src/uts/common/fs/portfs/
H A Dport_fd.c81 portfd_t *pfd = (portfd_t *)arg; in port_fd_callback() local
82 polldat_t *pdp = PFTOD(pfd); in port_fd_callback()
123 port_pcache_remove_fd(pcp, pfd); in port_fd_callback()
183 portfd_t *pfd; in port_associate_fd() local
221 pfd = NULL; in port_associate_fd()
224 pfd = port_cache_lookup_fp(pcp, fd, fp); in port_associate_fd()
227 if (pfd == NULL) { in port_associate_fd()
235 pfd = kmem_zalloc(sizeof (portfd_t), KM_SLEEP); in port_associate_fd()
236 pdp = PFTOD(pfd); in port_associate_fd()
245 kmem_free(pfd, sizeof (portfd_t)); in port_associate_fd()
[all …]
/titanic_50/usr/src/cmd/sendmail/libmilter/
H A Dworker.c304 #define WAIT_FD(i) (pfd[i].fd)
311 struct pollfd *pfd = NULL; local
324 pfd = (struct pollfd *) malloc(PFD_STEP * sizeof(struct pollfd));
325 if (pfd == NULL)
395 pfd[nfd].fd = RD_PIPE;
396 pfd[nfd].events = MI_POLL_RD_FLAGS;
397 pfd[nfd].revents = 0;
427 realloc(pfd, new);
430 pfd = tpfd;
445 pfd[nfd].fd = ctx->ctx_sd;
[all …]
/titanic_50/usr/src/cmd/cmd-inet/usr.sbin/
H A Dsyncloop.c326 static struct pollfd pfd; variable
332 pfd.fd = dfd; in quiet_period()
333 pfd.events = POLLIN; in quiet_period()
334 pfd.revents = 0; in quiet_period()
335 while (poll(&pfd, 1, short_time) == 1) { in quiet_period()
338 if (poll(&pfd, 1, long_time) == 1) { in quiet_period()
372 pfd.fd = dfd; in first_packet()
373 pfd.events = POLLIN; in first_packet()
374 pollret = poll(&pfd, 1, long_time); in first_packet()
443 pfd.fd = dfd; in many_packets()
[all …]
/titanic_50/usr/src/uts/common/os/
H A Dklpd.c761 klpd_reg_t *pfd; in pfexec_unreg() local
768 pfd = myzone->zone_pfexecd; in pfexec_unreg()
769 if (pfd != NULL && pfd->klpd_door == dh) { in pfexec_unreg()
770 klpd_unlink(pfd); in pfexec_unreg()
772 pfd = NULL; in pfexec_unreg()
781 if (pfd != NULL) in pfexec_unreg()
782 klpd_rele(pfd); in pfexec_unreg()
845 klpd_reg_t *pfd; in pfexec_call() local
859 if ((pfd = myzone->zone_pfexecd) != NULL) in pfexec_call()
860 klpd_hold(pfd); in pfexec_call()
[all …]
H A Dfio.c284 int pfd; in fd_reserve() local
293 for (pfd = fd; pfd >= 0; pfd = (pfd & (pfd + 1)) - 1) in fd_reserve()
294 fip->fi_list[pfd].uf_alloc += incr; in fd_reserve()
634 portfd_t *pfd; in closeandsetf() local
782 pfd = ufp->uf_portfd; in closeandsetf()
791 if (pfd) in closeandsetf()
792 port_close_fd(pfd); in closeandsetf()
896 portfd_t *pfd; in closeall() local
898 pfd = ufp->uf_portfd; in closeall()
900 port_close_fd(pfd); in closeall()
[all …]
/titanic_50/usr/src/lib/libc/port/gen/
H A Dselect_large_fdset.c90 struct pollfd pfd[DEFAULT_POLL_SIZE]; in pselect_large_fdset() local
129 pfd_list = pfd; in pselect_large_fdset()
131 (void) memset(pfd, 0, sizeof (pfd)); in pselect_large_fdset()
162 &nfds_on_list, &pfd_list, pfd)) in pselect_large_fdset()
164 if (pfd_list != pfd) in pselect_large_fdset()
187 if (pfd_list != pfd) in pselect_large_fdset()
211 if (pfd_list != pfd) in pselect_large_fdset()
231 if (pfd_list != pfd) in pselect_large_fdset()
330 if (pfd_list != pfd) in pselect_large_fdset()
H A Dselect.c66 struct pollfd *pfd; in pselect() local
83 p = pfd = (struct pollfd *)alloca(nfds * sizeof (struct pollfd)); in pselect()
137 n = (int)(p - pfd); /* number of pollfd's */ in pselect()
139 rv = _pollsys(pfd, (nfds_t)n, tsp, sigmask); in pselect()
173 for (p = pfd, j = n; j-- > 0; p++) { in pselect()
215 for (p = pfd; n-- > 0; p++) { in pselect()
/titanic_50/usr/src/lib/libwanboot/common/
H A Dsocket_inet.c51 struct pollfd pfd; in socket_read() local
53 pfd.fd = fildes; in socket_read()
54 pfd.events = POLLIN; in socket_read()
56 switch (poll(&pfd, 1, read_timeout * 1000)) { in socket_read()
/titanic_50/usr/src/cmd/ipf/lib/common/
H A Dipft_pc.c78 static int pfd = -1, swapped = 0; variable
105 if (pfd != -1)
106 return pfd;
141 pfd = fd;
152 return close(pfd); in pcap_close()
165 if (read(pfd, (char *)rec, sizeof(*rec)) != sizeof(*rec))
204 if (read(pfd, bufp, i) != i)
239 if (read(pfd, s, i) != i)
/titanic_50/usr/src/cmd/lp/lib/msgs/
H A Dmdestroy.c43 struct pollfd pfd; in mdestroy() local
54 pfd.fd = md->readfd; in mdestroy()
55 pfd.events = POLLIN; in mdestroy()
56 while (poll(&pfd, 1, 500) > 0) { in mdestroy()
/titanic_50/usr/src/cmd/cmd-inet/usr.bin/nc/
H A Datomicio.c49 struct pollfd pfd; in atomicio() local
51 pfd.fd = fd; in atomicio()
52 pfd.events = f == read ? POLLIN : POLLOUT; in atomicio()
60 (void) poll(&pfd, 1, -1); in atomicio()
H A Dnetcat.c670 struct pollfd pfd[2]; in readwrite() local
679 pfd[0].fd = nfd; in readwrite()
680 pfd[0].events = POLLIN; in readwrite()
683 pfd[1].fd = wfd; in readwrite()
684 pfd[1].events = POLLIN; in readwrite()
686 while (pfd[0].fd != -1) { in readwrite()
690 if ((n = poll(pfd, 2 - dflag, timeout)) < 0) { in readwrite()
698 if (pfd[0].revents & (POLLIN|POLLHUP)) { in readwrite()
703 pfd[0].fd = -1; in readwrite()
704 pfd[0].events = 0; in readwrite()
[all …]
/titanic_50/usr/src/cmd/sgs/librtld_db/demo/common/
H A Dmain.c55 int pfd; in init_proc() local
67 if ((pfd = open(procname, O_WRONLY)) < 0) { in init_proc()
82 if (writev(pfd, piov, 2) == -1) in init_proc()
92 if (writev(pfd, piov, 2) == -1) in init_proc()
102 if (writev(pfd, piov, 2) == -1) in init_proc()
112 if (writev(pfd, piov, 2) == -1) in init_proc()
121 if (writev(pfd, piov, 2) == -1) in init_proc()
124 (void) close(pfd); in init_proc()
/titanic_50/usr/src/cmd/fs.d/smbclnt/smbutil/
H A Dprint.c193 int pfd = -1; in print_file() local
195 pfd = smb_open_printer(ctx, title, setup_len, mode); in print_file()
196 if (pfd < 0) { in print_file()
213 wcnt = smb_fh_write(pfd, offset, rcnt, databuf); in print_file()
227 (void) smb_fh_close(pfd); in print_file()
/titanic_50/usr/src/lib/libnsl/rpc/
H A Drtime_tli.c103 struct pollfd pfd; in rtime_tli() local
117 pfd.fd = fd; in rtime_tli()
118 pfd.events = POLLIN | POLLPRI | POLLRDNORM | POLLRDBAND; in rtime_tli()
122 res = poll(&pfd, 1, msec); in rtime_tli()
124 if ((res <= 0) || (pfd.revents & POLLNVAL)) in rtime_tli()
/titanic_50/usr/src/cmd/sgs/libcrle/common/
H A Daudit.c64 int pfd; variable
82 pfd = atoi(str); in la_version()
124 (void) write(pfd, buffer, strlen(buffer)); in la_objopen()
149 (void) write(pfd, buffer, strlen(buffer)); in la_objfilter()
/titanic_50/usr/src/cmd/fs.d/smbclnt/smbiod-svc/
H A Dsmbiod-svc.c177 daemonize_fini(int pfd, int rc) in daemonize_fini() argument
180 (void) write(pfd, &rc, sizeof (rc)); in daemonize_fini()
181 close(pfd); in daemonize_fini()
190 int door_fd = -1, tmp_fd = -1, pfd = -1; in main() local
253 pfd = daemonize_init(); in main()
296 if (pfd != -1) { in main()
297 daemonize_fini(pfd, rc); in main()
298 pfd = -1; in main()
346 if (pfd != -1) in main()
347 daemonize_fini(pfd, rc); in main()
/titanic_50/usr/src/cmd/hotplugd/
H A Dhotplugd.c95 int pfd; in main() local
140 pfd = daemonize(); in main()
146 (void) write(pfd, &status, sizeof (status)); in main()
147 (void) close(pfd); in main()
155 (void) write(pfd, &status, sizeof (status)); in main()
156 (void) close(pfd); in main()
/titanic_50/usr/src/cmd/bdiff/
H A Dbdiff.c95 int pfd[2]; in main() local
267 if ((pipe(pfd)) == -1) in main()
270 (void) close(pfd[0]); in main()
271 (void) close(pfd[1]); in main()
274 (void) close(pfd[0]); in main()
276 (void) dup(pfd[1]); in main()
277 (void) close(pfd[1]); in main()
296 (void) close(pfd[1]); in main()
297 pipeinp = fdopen(pfd[0], "r"); in main()
/titanic_50/usr/src/cmd/fm/modules/SUNW,SPARC-Enterprise/event-transport/
H A Dex_dscp.c263 struct pollfd pfd; in exs_server() local
266 pfd.events = POLLIN; in exs_server()
267 pfd.revents = 0; in exs_server()
268 pfd.fd = hp->h_server.c_sd; in exs_server()
270 if (poll(&pfd, 1, -1) <= 0) in exs_server()
273 if (pfd.revents & (POLLHUP | POLLERR)) { in exs_server()
281 if (pfd.revents & POLLIN) { in exs_server()
378 struct pollfd pfd; in exs_listen() local
381 pfd.events = POLLIN; in exs_listen()
382 pfd.revents = 0; in exs_listen()
[all …]
/titanic_50/usr/src/lib/libshell/common/features/
H A Dpoll25 int pfd[2];
31 if (pipe(pfd) < 0 ||
40 close(pfd[1]);
43 if (sfpkrd(pfd[0], buf, sizeof(buf), '\n', -1, 1) >= 0 ||
49 close(pfd[0]);
51 write(pfd[1], msg, sizeof(msg) - 1);
55 close(pfd[0]);
/titanic_50/usr/src/uts/common/fs/zfs/
H A Ddmu_traverse.c203 prefetch_needed(prefetch_data_t *pfd, const blkptr_t *bp) in prefetch_needed() argument
205 ASSERT(pfd->pd_flags & TRAVERSE_PREFETCH_DATA); in prefetch_needed()
494 prefetch_data_t *pfd = arg; in traverse_prefetcher() local
497 ASSERT(pfd->pd_bytes_fetched >= 0); in traverse_prefetcher()
500 if (pfd->pd_cancel) in traverse_prefetcher()
503 if (!prefetch_needed(pfd, bp)) in traverse_prefetcher()
506 mutex_enter(&pfd->pd_mtx); in traverse_prefetcher()
507 while (!pfd->pd_cancel && pfd->pd_bytes_fetched >= zfs_pd_bytes_max) in traverse_prefetcher()
508 cv_wait(&pfd->pd_cv, &pfd->pd_mtx); in traverse_prefetcher()
509 pfd->pd_bytes_fetched += BP_GET_LSIZE(bp); in traverse_prefetcher()
[all …]
/titanic_50/usr/src/lib/libslp/clib/
H A Dslp_net.c200 struct pollfd pfd[1]; in slp_uc_udp_send() local
226 pfd[0].fd = sockfd; in slp_uc_udp_send()
227 pfd[0].events = POLLRDNORM; in slp_uc_udp_send()
254 0, &timeout, sent, &now, pfd, 1); in slp_uc_udp_send()
341 struct pollfd *pfd; in slp_mc_send() local
351 if (make_mc_target(hp, sin, header, &pfd, &nfds, &bcifs) != SLP_OK) in slp_mc_send()
375 if (mc_sendmsg(pfd, msg, &bcifs) != SLP_OK) { in slp_mc_send()
381 mc_recvmsg(pfd, nfds, hp, scopes, header, &collator, final_to, in slp_mc_send()
393 free_pfds(pfd, nfds); in slp_mc_send()
1006 static void mc_recvmsg(struct pollfd *pfd, nfds_t nfds, slp_handle_impl_t *hp, in mc_recvmsg() argument
[all …]

123