Searched refs:pipe (Results 1 - 23 of 23) sorted by relevance

/macosx-10.5.8/xnu-1228.15.4/bsd/sys/
H A Dpipe.h48 * $FreeBSD: src/sys/sys/pipe.h,v 1.24 2003/08/13 20:01:38 alc Exp $
140 * Per-pipe data structure.
143 struct pipe { struct
146 struct pipemapping pipe_map; /* pipe mapping for direct I/O */
150 struct pipe *pipe_peer; /* link with other direction */
151 u_int pipe_state; /* pipe status info */
158 struct label *pipe_label; /* pipe MAC label - shared */
161 #define PIPE_MTX(pipe) ((pipe)->pipe_mtxp)
163 #define PIPE_LOCK(pipe) lck_mtx_loc
[all...]
H A Dfile_internal.h125 DTYPE_PIPE, /* pipe */
200 struct pipe;
201 int fp_getfpipe(struct proc *p, int fd, struct fileproc **resultfp, struct pipe **resultpipe);
H A DMakefile42 mbuf.h mman.h mount.h msg.h msgbuf.h mtio.h netport.h param.h paths.h pipe.h poll.h \
88 pipe.h sysproto.h semaphore.h wait.h \
H A Dproc_info.h609 extern int fill_pipeinfo(struct pipe * cpipe, struct pipe_info * pinfo);
H A Dsysproto.h1741 int pipe(struct proc *, struct pipe_args *, int *);
/macosx-10.5.8/xnu-1228.15.4/libsyscall/custom/
H A D__pipe.s36 SYSCALL_NONAME(pipe, 0)
44 PSEUDO_INT(__pipe, pipe, 0)
53 PSEUDO(__pipe, pipe, 0)
/macosx-10.5.8/xnu-1228.15.4/security/
H A Dmac_pipe.c69 #include <sys/pipe.h>
88 mac_pipe_label_init(struct pipe *cpipe)
103 mac_pipe_label_destroy(struct pipe *cpipe)
123 error = MAC_EXTERNALIZE(pipe, label, elements, outbuf, outbuflen);
133 error = MAC_INTERNALIZE(pipe, label, string);
139 mac_pipe_label_associate(kauth_cred_t cred, struct pipe *cpipe)
147 struct pipe *cpipe)
158 mac_pipe_check_ioctl(kauth_cred_t cred, struct pipe *cpipe, u_int cmd)
171 mac_pipe_check_read(kauth_cred_t cred, struct pipe *cpipe)
184 mac_pipe_check_label_update(kauth_cred_t cred, struct pipe *cpip
[all...]
H A Dmac_framework.h105 struct pipe;
266 int mac_pipe_check_ioctl(kauth_cred_t cred, struct pipe *cpipe,
269 struct pipe *cpipe);
270 int mac_pipe_check_read(kauth_cred_t cred, struct pipe *cpipe);
271 int mac_pipe_check_select(kauth_cred_t cred, struct pipe *cpipe,
273 int mac_pipe_check_stat(kauth_cred_t cred, struct pipe *cpipe);
274 int mac_pipe_check_write(kauth_cred_t cred, struct pipe *cpipe);
276 void mac_pipe_label_associate(kauth_cred_t cred, struct pipe *cpipe);
278 void mac_pipe_label_destroy(struct pipe *cpipe);
280 void mac_pipe_label_init(struct pipe *cpip
[all...]
H A Dmac_policy.h99 struct pipe;
1554 When an application sends data to a socket or a pipe, it is wrapped
1900 @brief Access control check for pipe ioctl
1903 @param pipelabel The label on the pipe
1919 struct pipe *cpipe,
1924 @brief Access control check for pipe kqfilter
1928 @param pipelabel Policy label for the pipe
1931 receive the knote on the passed pipe.
1939 struct pipe *cpipe,
1943 @brief Access control check for pipe relabe
[all...]
H A Dmac_vfs.c75 #include <sys/pipe.h>
1340 struct pipe *cpipe;
1389 cpipe = (struct pipe *)fp->f_fglob->fg_data;
1391 if (cpipe == (struct pipe *)-1) {
/macosx-10.5.8/xnu-1228.15.4/bsd/kern/
H A Dsys_pipe.c64 * "normal" pipe buffering is done. If the buffer is between PIPE_MINDIRECT
71 * is returned back to the user-mode side. In that case, the pipe code
86 * SMALL_PIPE_SIZE, rather than PIPE_SIZE. Big pipe creation will be limited
118 #include <sys/pipe.h>
203 * Default pipe buffer size(s), this can be kind-of large now because pipe
204 * space is pageable. The pipe code will try to maintain locality of
241 static void pipeclose(struct pipe *cpipe);
242 static void pipe_free_kmem(struct pipe *cpipe);
243 static int pipe_create(struct pipe **cpipe
322 pipe(proc_t p, __unused struct pipe_args *uap, register_t *retval) function
[all...]
H A Dsys_generic.c109 #include <sys/pipe.h>
136 void evpipefree(struct pipe *);
137 void postpipeevent(struct pipe *, int);
1870 * called upon pipe close. deque and free all events for
1871 * the pipe... pipe must be locked by caller
1874 evpipefree(struct pipe *cpipe)
1885 TAILQ_REMOVE(&cpipe->pipe_evlist, evq, ee_slist); // remove from pipe q
1928 * pipe lock must be taken by the caller
1931 postpipeevent(struct pipe *pipe
[all...]
H A Dproc_info.c82 struct pipe;
114 int pid_pipeinfo(struct pipe * p, struct fileproc * fp, int closeonexec, user_addr_t buffer, uint32_t buffersize, register_t * retval);
1015 pid_pipeinfo(struct pipe * p, struct fileproc *fp, int closeonexec, user_addr_t buffer, __unused uint32_t buffersize, register_t * retval)
1174 struct pipe * cpipe;
H A Dsocket_info.c36 #include <sys/pipe.h>
H A Dbsd_init.c138 #include <sys/pipe.h> /* for pipeinit() */
H A Dkern_descrip.c102 #include <sys/pipe.h>
2758 * Description: Get fileproc and pipe pointer for a given fd from the
2766 * resultpipe Pointer to result pipe
2775 * *resultpipe (modified) pipe pointer
2782 struct pipe **resultpipe)
2803 *resultpipe = (struct pipe *)fp->f_data;
H A Dinit_sysent.c102 {0, 0, 0, (sy_call_t *)pipe, NULL, NULL, _SYSCALL_RET_INT_T, 0}, /* 42 = pipe */
/macosx-10.5.8/xnu-1228.15.4/bsd/netinet/
H A Dip_dummynet.c145 static void transmit_event(struct dn_pipe *pipe);
456 transmit_event(struct dn_pipe *pipe) argument
463 while ( (m = pipe->head) ) {
471 pipe->head = m->m_nextpkt ;
506 printf("dummynet: dropping bridged packet trapped in pipe\n");
520 if ( (m = pipe->head) ) {
523 * whole pipe p and hoping in the future we are more successful
525 heap_insert(&extract_heap, pkt->output_time, pipe);
532 * either a pipe (WF2Q) or a flow_queue (per-flow queueing)
580 struct dn_pipe *p = q->fs->pipe ;
797 struct dn_pipe *pipe = p; local
1160 struct dn_pipe *pipe ; local
1424 purge_pipe(struct dn_pipe *pipe) argument
[all...]
H A Dip_dummynet.h180 bandwidth to different flows) and a "pipe", which essentially
182 pipe.
185 configurable. The "clock" for a pipe can come from either an
187 A pipe is also associated with one (or more, if masks are used)
188 queue, where all packets for that pipe are stored.
190 The bandwidth available on the pipe is shared by the queues
191 associated with that pipe (only one in case the packet is sent
202 There are three data structures definining a pipe and associated queues:
210 Multiple dn_flow_set can be linked to the same pipe, and multiple
225 wfq_ready_event() extract a pipe whic
297 struct dn_pipe *pipe ; /* pointer to parent pipe */ member in struct:dn_flow_set
[all...]
/macosx-10.5.8/xnu-1228.15.4/libsyscall/
H A DMakefile33 CFLAGS += -fno-common -pipe -Wmost -g
/macosx-10.5.8/xnu-1228.15.4/bsd/man/man2/
H A DMakefile120 pipe.2 \
/macosx-10.5.8/xnu-1228.15.4/bsd/miscfs/fdesc/
H A Dfdesc_vnops.c90 #include <sys/pipe.h>
405 error = pipe_stat((struct pipe *)fp->f_fglob->fg_data, (void *)&stb, 0);
/macosx-10.5.8/xnu-1228.15.4/tools/tests/xnu_quick_test/
H A Dtests.c1406 * Test getpid, getppid, and pipe system calls.
1418 my_err = pipe( &my_fildes[0] );
1420 printf( "pipe call failed. got errno %d - %s. \n", errno, strerror( errno ) );
1424 /* make sure we can't seek on a pipe */
1427 printf( "lseek on pipe should fail but did not \n" );
1431 /* fork here and use pipe to communicate */
1442 close( my_fildes[1] ); /* close write end of pipe */
1448 printf( "read from pipe failed. got errno %d - %s. \n", errno, strerror( errno ) );
1452 /* parent wrote (to our pipe) its pid as character string */
1467 close( my_fildes[0] ); /* close read end of pipe */
[all...]

Completed in 214 milliseconds