webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
Macros | Functions | Variables
user_mbuf.c File Reference
#include <stdio.h>
#include <string.h>
#include "umem.h"
#include "user_mbuf.h"
#include "user_environment.h"
#include "user_atomic.h"
#include "netinet/sctp_pcb.h"

Macros

#define KIPC_MAX_LINKHDR   4 /* int: max length of link header (see sys/sysclt.h) */
 
#define KIPC_MAX_PROTOHDR   5 /* int: max length of network header (see sys/sysclt.h)*/
 

Functions

struct mbufm_get (int how, short type)
 
struct mbufm_gethdr (int how, short type)
 
struct mbufm_free (struct mbuf *m)
 
void m_clget (struct mbuf *m, int how)
 
void mbuf_init (void *dummy)
 
void m_tag_delete (struct mbuf *m, struct m_tag *t)
 
void m_tag_delete_chain (struct mbuf *m, struct m_tag *t)
 
void m_freem (struct mbuf *mb)
 
void mb_free_ext (struct mbuf *m)
 
void m_move_pkthdr (struct mbuf *to, struct mbuf *from)
 
struct mbufm_pullup (struct mbuf *n, int len)
 
struct mbufm_pulldown (struct mbuf *m, int off, int len, int *offp)
 
struct mbufm_copym (struct mbuf *m, int off0, int len, int wait)
 
int m_tag_copy_chain (struct mbuf *to, struct mbuf *from, int how)
 
int m_dup_pkthdr (struct mbuf *to, struct mbuf *from, int how)
 
struct m_tagm_tag_copy (struct m_tag *t, int how)
 
struct m_tagm_tag_alloc (u_int32_t cookie, int type, int len, int wait)
 
void m_tag_free_default (struct m_tag *t)
 
void m_copyback (struct mbuf *m0, int off, int len, caddr_t cp)
 
struct mbufm_prepend (struct mbuf *m, int len, int how)
 
void m_copydata (const struct mbuf *m, int off, int len, caddr_t cp)
 
void m_cat (struct mbuf *m, struct mbuf *n)
 
void m_adj (struct mbuf *mp, int req_len)
 
struct mbufm_split (struct mbuf *m0, int len0, int wait)
 
int pack_send_buffer (caddr_t buffer, struct mbuf *mb)
 

Variables

struct mbstat mbstat
 
int max_linkhdr = KIPC_MAX_LINKHDR
 
int max_protohdr = KIPC_MAX_PROTOHDR
 
sctp_zone_t zone_mbuf
 
sctp_zone_t zone_clust
 
sctp_zone_t zone_ext_refcnt
 
struct clust_args clust_mb_args
 

Macro Definition Documentation

◆ KIPC_MAX_LINKHDR

#define KIPC_MAX_LINKHDR   4 /* int: max length of link header (see sys/sysclt.h) */

◆ KIPC_MAX_PROTOHDR

#define KIPC_MAX_PROTOHDR   5 /* int: max length of network header (see sys/sysclt.h)*/

Function Documentation

◆ m_adj()

void m_adj ( struct mbuf mp,
int  req_len 
)

◆ m_cat()

void m_cat ( struct mbuf m,
struct mbuf n 
)

◆ m_clget()

void m_clget ( struct mbuf m,
int  how 
)

◆ m_copyback()

void m_copyback ( struct mbuf m0,
int  off,
int  len,
caddr_t  cp 
)

◆ m_copydata()

void m_copydata ( const struct mbuf m,
int  off,
int  len,
caddr_t  cp 
)

◆ m_copym()

struct mbuf* m_copym ( struct mbuf m,
int  off0,
int  len,
int  wait 
)

◆ m_dup_pkthdr()

int m_dup_pkthdr ( struct mbuf to,
struct mbuf from,
int  how 
)

◆ m_free()

struct mbuf* m_free ( struct mbuf m)

◆ m_freem()

void m_freem ( struct mbuf mb)

◆ m_get()

struct mbuf* m_get ( int  how,
short  type 
)

◆ m_gethdr()

struct mbuf* m_gethdr ( int  how,
short  type 
)

◆ m_move_pkthdr()

void m_move_pkthdr ( struct mbuf to,
struct mbuf from 
)

◆ m_prepend()

struct mbuf* m_prepend ( struct mbuf m,
int  len,
int  how 
)

◆ m_pulldown()

struct mbuf* m_pulldown ( struct mbuf m,
int  off,
int  len,
int *  offp 
)

◆ m_pullup()

struct mbuf* m_pullup ( struct mbuf n,
int  len 
)

◆ m_split()

struct mbuf* m_split ( struct mbuf m0,
int  len0,
int  wait 
)

◆ m_tag_alloc()

struct m_tag* m_tag_alloc ( u_int32_t  cookie,
int  type,
int  len,
int  wait 
)

◆ m_tag_copy()

struct m_tag* m_tag_copy ( struct m_tag t,
int  how 
)

◆ m_tag_copy_chain()

int m_tag_copy_chain ( struct mbuf to,
struct mbuf from,
int  how 
)

◆ m_tag_delete()

void m_tag_delete ( struct mbuf m,
struct m_tag t 
)

◆ m_tag_delete_chain()

void m_tag_delete_chain ( struct mbuf m,
struct m_tag t 
)

◆ m_tag_free_default()

void m_tag_free_default ( struct m_tag t)

◆ mb_free_ext()

void mb_free_ext ( struct mbuf m)

◆ mbuf_init()

void mbuf_init ( void dummy)

◆ pack_send_buffer()

int pack_send_buffer ( caddr_t  buffer,
struct mbuf mb 
)

Variable Documentation

◆ clust_mb_args

struct clust_args clust_mb_args

◆ max_linkhdr

int max_linkhdr = KIPC_MAX_LINKHDR

◆ max_protohdr

int max_protohdr = KIPC_MAX_PROTOHDR

◆ mbstat

struct mbstat mbstat

◆ zone_clust

sctp_zone_t zone_clust

◆ zone_ext_refcnt

sctp_zone_t zone_ext_refcnt

◆ zone_mbuf

sctp_zone_t zone_mbuf