My Kernel v0.1.0

A BSD socket.

#include <socket.h>

Data Fields

struct filefile
 
const struct socket_protocol * proto
 
enum socket_state state
 
spinlock_t lock
 
void * data
 
queue_t rx_packets
 
spinlock_t rx_lock
 

Field Documentation

◆ data

void* socket::data

Domain-specific socket data

◆ file

struct file* socket::file

The socket's backing file

◆ lock

spinlock_t socket::lock

Socket wide synchronisation lock

◆ proto

const struct socket_protocol* socket::proto

Socket protocol type

◆ rx_lock

spinlock_t socket::rx_lock

Synchronisation lock for rx_packets

◆ rx_packets

queue_t socket::rx_packets

Packets received

◆ state

enum socket_state socket::state

Socket connection state


The documentation for this struct was generated from the following file: