UbixOS  2.0
kern_pipe.c File Reference
#include <sys/thread.h>
#include <sys/sysproto_posix.h>
#include <sys/pipe.h>
#include <sys/descrip.h>
#include <sys/video.h>
#include <string.h>
Include dependency graph for kern_pipe.c:

Go to the source code of this file.

Functions

int sys_pipe2 (struct thread *thr, struct sys_pipe2_args *args)
 

Function Documentation

◆ sys_pipe2()

int sys_pipe2 ( struct thread thr,
struct sys_pipe2_args args 
)

Definition at line 36 of file kern_pipe.c.

References file::data, falloc(), file::fd_type, sys_pipe2_args::fildes, kmalloc(), memset(), pipeInfo::rFD, pipeInfo::rfdCNT, thread::td_retval, pipeInfo::wFD, and pipeInfo::wfdCNT.

Here is the call graph for this function: