unpcb
struct unpcb unpcb;
if (KREAD(kd, (u_long)sock.so_pcb, &unpcb)) {
kf->f_msgcount = unpcb.unp_msgcount;
kf->unp_conn = PTRTOINT64(unpcb.unp_conn);
SLIST_FIRST(&unpcb.unp_refs));
SLIST_NEXT(&unpcb, unp_nextref));
kf->v_un = PTRTOINT64(unpcb.unp_vnode);
if (unpcb.unp_addr != NULL) {
if (KREAD(kd, (u_long)unpcb.unp_addr, &mb)) {
kf->unp_addr = PTRTOINT64(unpcb.unp_addr);
struct unpcb *unpcb = so->so_pcb;
kf->f_msgcount = unpcb->unp_msgcount;
kf->unp_conn = PTRTOINT64(unpcb->unp_conn);
SLIST_FIRST(&unpcb->unp_refs));
SLIST_NEXT(unpcb, unp_nextref));
kf->v_un = PTRTOINT64(unpcb->unp_vnode);
kf->unp_addr = PTRTOINT64(unpcb->unp_addr);
if (unpcb->unp_addr != NULL) {
struct sockaddr_un *un = mtod(unpcb->unp_addr,
struct unpcb *unp = sotounpcb(so);
static inline void unp_rele(struct unpcb *);
SLIST_REMOVE(&unp2->unp_refs, unp, unpcb, unp_nextref);
static struct unpcb *
struct unpcb *unp;
LIST_HEAD(unp_head, unpcb) unp_head =
struct unpcb *unp;
struct unpcb *unp;
struct unpcb *unp;
struct unpcb *unp;
pool_init(&unpcb_pool, sizeof(struct unpcb), 0,
unp_ref(struct unpcb *unp)
unp_rele(struct unpcb *unp)
struct unpcb *unp, *unp2;
uipc_setaddr(const struct unpcb *unp, struct mbuf *nam)
struct unpcb *unp;
struct unpcb *unp = sotounpcb(so);
struct unpcb *unp = sotounpcb(so);
struct unpcb *unp = sotounpcb(so);
struct unpcb *unp = sotounpcb(so);
struct unpcb *unp = sotounpcb(so);
struct unpcb *unp = sotounpcb(so);
struct unpcb *unp = sotounpcb(so);
struct unpcb *unp = sotounpcb(so);
struct unpcb *unp = sotounpcb(so);
struct unpcb *unp = sotounpcb(so);
struct unpcb *unp = sotounpcb(so);
struct unpcb *unp = sotounpcb(so);
struct unpcb *unp = sotounpcb(so);
struct unpcb *unp = sotounpcb(so), *unp2;
unp_detach(struct unpcb *unp)
struct unpcb *unp2;
SLIST_REMOVE(&unp->unp_refs, unp2, unpcb, unp_nextref);
struct unpcb *unp, *unp2, *unp3;
void uipc_setaddr(const struct unpcb *, struct mbuf *);
struct unpcb *unp = sotounpcb(so);
struct unpcb *unp2;
static inline void unp_ref(struct unpcb *);
unp_disconnect(struct unpcb *unp)
struct unpcb *unp2;
#define sotounpcb(so) ((struct unpcb *)((so)->so_pcb))
void unp_detach(struct unpcb *);
void unp_disconnect(struct unpcb *);
struct unpcb *unp_conn; /* [s] control block of connected
SLIST_HEAD(,unpcb) unp_refs; /* [s] referencing socket linked list */
SLIST_ENTRY(unpcb) unp_nextref; /* [s] link in unp_refs list */
LIST_ENTRY(unpcb) unp_link; /* [G] link in per-AF list of sockets */
struct unpcb unp;