Name

sock_alloc — allocate a socket

Synopsis

struct socket * sock_alloc ( void);
 

Arguments

void

no arguments

Description

Allocate a new inode and socket object. The two are bound together and initialised. The socket is then returned. If we are out of inodes NULL is returned.