|
My Kernel v0.1.0
|
A BSD socket.
#include <socket.h>
Data Fields | |
| struct file * | file |
| const struct socket_protocol * | proto |
| enum socket_state | state |
| spinlock_t | lock |
| void * | data |
| queue_t | rx_packets |
| spinlock_t | rx_lock |
| void* socket::data |
Domain-specific socket data
| struct file* socket::file |
The socket's backing file
| spinlock_t socket::lock |
Socket wide synchronisation lock
| const struct socket_protocol* socket::proto |
Socket protocol type
| spinlock_t socket::rx_lock |
Synchronisation lock for rx_packets
| queue_t socket::rx_packets |
Packets received
| enum socket_state socket::state |
Socket connection state