Home
last modified time | relevance | path

Searched refs:pb_type (Results 1 – 2 of 2) sorted by relevance

/xnu-8020.121.3/bsd/net/
H A Dpf_pbuf.c39 pbuf->pb_type = PBUF_TYPE_MBUF; in pbuf_init_mbuf()
49 pbuf->pb_type = PBUF_TYPE_MEMORY; in pbuf_init_memory()
59 if (pbuf->pb_type == PBUF_TYPE_MBUF) { in pbuf_destroy()
64 } else if (pbuf->pb_type == PBUF_TYPE_MEMORY) { in pbuf_destroy()
69 VERIFY(pbuf->pb_type == PBUF_TYPE_ZOMBIE); in pbuf_destroy()
78 if (pbuf->pb_type == PBUF_TYPE_MBUF) { in pbuf_sync()
97 } else if (pbuf->pb_type == PBUF_TYPE_MEMORY) { in pbuf_sync()
118 panic("%s: bad pb_type: %d", __func__, pbuf->pb_type); in pbuf_sync()
129 if (pbuf->pb_type == PBUF_TYPE_MBUF) { in pbuf_to_mbuf()
134 } else if (pbuf->pb_type == PBUF_TYPE_MEMORY) { in pbuf_to_mbuf()
[all …]
H A Dpf_pbuf.h60 enum pbuf_type pb_type; member
83 #define pbuf_is_valid(pb) (!((pb) == NULL || (pb)->pb_type == PBUF_TYPE_ZOMBIE))