miniOS
x86_64 hobby kernel with SMP, VFS, and POSIX process model
Loading...
Searching...
No Matches
unix_sock.c File Reference
#include <miniOS/net/unix_sock.h>
#include <miniOS/sched/sched.h>
#include <miniOS/io.h>
#include <string.h>
Include dependency graph for unix_sock.c:

Functions

static int ringbuf_avail (unix_sock_t *s)
static int ringbuf_free (unix_sock_t *s)
unix_sock_tunix_sock_alloc (void)
void unix_sock_free (unix_sock_t *s)
int unix_sock_bind (unix_sock_t *s, const char *path)
int unix_sock_listen (unix_sock_t *s, int backlog)
unix_sock_tunix_sock_accept (unix_sock_t *server)
int unix_sock_connect (unix_sock_t *s, const char *path)
int unix_sock_write (unix_sock_t *s, const void *buf, size_t len)
int unix_sock_read (unix_sock_t *s, void *buf, size_t len)
int unix_sock_socketpair (unix_sock_t **a, unix_sock_t **b)
int unix_sock_close (unix_sock_t *s)
int unix_sock_has_data (unix_sock_t *s)

Variables

static unix_sock_t unix_pool [UNIX_SOCK_POOL_SIZE]

Function Documentation

◆ ringbuf_avail()

int ringbuf_avail ( unix_sock_t * s)
static
Here is the caller graph for this function:

◆ ringbuf_free()

int ringbuf_free ( unix_sock_t * s)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ unix_sock_accept()

unix_sock_t * unix_sock_accept ( unix_sock_t * server)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ unix_sock_alloc()

unix_sock_t * unix_sock_alloc ( void )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ unix_sock_bind()

int unix_sock_bind ( unix_sock_t * s,
const char * path )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ unix_sock_close()

int unix_sock_close ( unix_sock_t * s)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ unix_sock_connect()

int unix_sock_connect ( unix_sock_t * s,
const char * path )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ unix_sock_free()

void unix_sock_free ( unix_sock_t * s)
Here is the caller graph for this function:

◆ unix_sock_has_data()

int unix_sock_has_data ( unix_sock_t * s)
Here is the call graph for this function:

◆ unix_sock_listen()

int unix_sock_listen ( unix_sock_t * s,
int backlog )
Here is the caller graph for this function:

◆ unix_sock_read()

int unix_sock_read ( unix_sock_t * s,
void * buf,
size_t len )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ unix_sock_socketpair()

int unix_sock_socketpair ( unix_sock_t ** a,
unix_sock_t ** b )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ unix_sock_write()

int unix_sock_write ( unix_sock_t * s,
const void * buf,
size_t len )
Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ unix_pool

unix_sock_t unix_pool[UNIX_SOCK_POOL_SIZE]
static