FreeBSD kernel kern code
uipc_mbuf2.c File Reference
#include <sys/cdefs.h>
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/kernel.h>
#include <sys/lock.h>
#include <sys/malloc.h>
#include <sys/mbuf.h>
#include <sys/mutex.h>
#include <security/mac/mac_framework.h>
Include dependency graph for uipc_mbuf2.c:

Go to the source code of this file.

Functions

 __FBSDID ("$FreeBSD$")
 
static MALLOC_DEFINE (M_PACKET_TAGS, MBUF_TAG_MEM_NAME, "packet-attached information")
 
static struct mbuf * m_dup1 (struct mbuf *, int, int, int)
 
struct mbuf * m_pulldown (struct mbuf *m, int off, int len, int *offp)
 
void m_tag_free_default (struct m_tag *t)
 
struct m_tag * m_tag_alloc (uint32_t cookie, uint16_t type, int len, int wait)
 
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_tag_delete_nonpersistent (struct mbuf *m)
 
struct m_tag * m_tag_locate (struct mbuf *m, uint32_t cookie, uint16_t type, struct m_tag *t)
 
struct m_tag * m_tag_copy (struct m_tag *t, int how)
 
int m_tag_copy_chain (struct mbuf *to, const struct mbuf *from, int how)
 

Function Documentation

◆ __FBSDID()

__FBSDID ( "$FreeBSD$"  )

◆ m_dup1()

static struct mbuf * m_dup1 ( struct mbuf *  m,
int  off,
int  len,
int  wait 
)
static

Definition at line 270 of file uipc_mbuf2.c.

References m_copydata(), and m_dup_pkthdr().

Referenced by m_pulldown().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ m_pulldown()

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

Definition at line 97 of file uipc_mbuf2.c.

References m_adj(), m_copydata(), m_dup1(), m_freem(), and printf().

Here is the call graph for this function:

◆ m_tag_alloc()

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

Definition at line 317 of file uipc_mbuf2.c.

References m_tag_free_default(), malloc(), and type.

Referenced by m_tag_copy().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ m_tag_copy()

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

Definition at line 398 of file uipc_mbuf2.c.

References m_tag_alloc().

Referenced by m_tag_copy_chain().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ m_tag_copy_chain()

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

Definition at line 432 of file uipc_mbuf2.c.

References m_tag_copy(), and m_tag_delete_chain().

Referenced by m_dup_pkthdr().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ m_tag_delete()

void m_tag_delete ( struct mbuf *  m,
struct m_tag *  t 
)

Definition at line 334 of file uipc_mbuf2.c.

Referenced by m_tag_delete_chain(), and m_tag_delete_nonpersistent().

Here is the caller graph for this function:

◆ m_tag_delete_chain()

void m_tag_delete_chain ( struct mbuf *  m,
struct m_tag *  t 
)

Definition at line 344 of file uipc_mbuf2.c.

References m_tag_delete().

Referenced by m_demote_pkthdr(), m_dup_pkthdr(), m_move_pkthdr(), m_sanity(), m_tag_copy_chain(), mb_dtor_mbuf(), mb_dtor_pack(), and sbappendaddr_locked_internal().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ m_tag_delete_nonpersistent()

void m_tag_delete_nonpersistent ( struct mbuf *  m)

Definition at line 368 of file uipc_mbuf2.c.

References m_tag_delete().

Here is the call graph for this function:

◆ m_tag_free_default()

void m_tag_free_default ( struct m_tag *  t)

Definition at line 306 of file uipc_mbuf2.c.

References free().

Referenced by m_tag_alloc().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ m_tag_locate()

struct m_tag * m_tag_locate ( struct mbuf *  m,
uint32_t  cookie,
uint16_t  type,
struct m_tag *  t 
)

Definition at line 379 of file uipc_mbuf2.c.

References type.

◆ MALLOC_DEFINE()

static MALLOC_DEFINE ( M_PACKET_TAGS  ,
MBUF_TAG_MEM_NAME  ,
"packet-attached information"   
)
static