Lines Matching defs:unpcb
39 * an associated struct unpcb (UNIX protocol control block). Stream sockets
90 #include <sys/unpcb.h>
200 * - per-unpcb mutexes
214 * The unpcb lock (unp_mtx) protects the most commonly referenced fields in the
215 * unpcb. This includes the unp_conn field, which either links two connected
222 * UNIX domain sockets each have an unpcb hung off of their so_pcb pointer,
226 * this is always true during operations performed on a socket. Each unpcb
231 * to the unpcb is held. Typically, this reference will be from the socket,
232 * or from another unpcb when the referring unpcb's lock is held (in order
296 static void unp_disconnect(struct unpcb *unp, struct unpcb *unp2);
298 static void unp_shutdown(struct unpcb *);
299 static void unp_drop(struct unpcb *);
314 unp_pcb_hold(struct unpcb *unp)
319 KASSERT(old > 0, ("%s: unpcb %p has no references", __func__, unp));
323 unp_pcb_rele(struct unpcb *unp)
338 unp_pcb_rele_notlast(struct unpcb *unp)
343 KASSERT(!ret, ("%s: unpcb %p has no references", __func__, unp));
347 unp_pcb_lock_pair(struct unpcb *unp, struct unpcb *unp2)
364 unp_pcb_unlock_pair(struct unpcb *unp, struct unpcb *unp2)
377 static struct unpcb *
378 unp_pcb_lock_peer(struct unpcb *unp)
380 struct unpcb *unp2;
423 struct unpcb *unp, *unp2;
443 struct unpcb *unp;
525 struct unpcb *unp;
677 struct unpcb *unp, *unp2;
712 struct unpcb *unp;
732 struct unpcb *unp, *unp2;
751 struct unpcb *unp, *unp2;
797 struct unpcb *ref = LIST_FIRST(&unp->unp_refs);
840 struct unpcb *unp, *unp2;
856 struct unpcb *unp;
890 struct unpcb *unp, *unp2;
916 struct unpcb *unp, *unp2;
967 struct unpcb *unp, *unp2;
1135 struct unpcb *unp, *unp2;
1210 * handle SBS_CANTSENDMORE/SS_ISCONNECTED complement in unpcb, but it
1643 struct unpcb *unp, *unp2;
1690 struct unpcb *unp;
1704 struct unpcb *unp = sotounpcb(so);
1762 struct unpcb *unp;
1781 struct unpcb *unp;
1892 struct unpcb *unp, *unp2, *unp3;
2070 unp_copy_peercred(struct thread *td, struct unpcb *client_unp,
2071 struct unpcb *server_unp, struct unpcb *listen_unp)
2085 struct unpcb *unp;
2086 struct unpcb *unp2;
2125 unp_disconnect(struct unpcb *unp, struct unpcb *unp2)
2130 struct unpcb *unptmp;
2136 ("%s: unpcb %p is not connected to %p", __func__, unp, unp2));
2223 * unp_pcblist() walks the global list of struct unpcb's to generate a
2224 * pointer list, bumping the refcount on each unpcb. It then copies them out
2232 struct unpcb *unp, **unp_list;
2381 unp_shutdown(struct unpcb *unp)
2383 struct unpcb *unp2;
2398 unp_drop(struct unpcb *unp)
2401 struct unpcb *unp2;
2548 struct unpcb *unp;
2553 ("%s: unpcb %p has lingering refs", __func__, unp));
2555 ("%s: unpcb %p has socket backpointer", __func__, unp));
2557 ("%s: unpcb %p has vnode references", __func__, unp));
2559 ("%s: unpcb %p is still connected", __func__, unp));
2561 ("%s: unpcb %p has leaked addr", __func__, unp));
2575 unp_zone = uma_zcreate("unpcb", sizeof(struct unpcb), NULL, dtor,
2896 static struct unpcb *
2957 struct unpcb *unp;
2971 struct unpcb *unp;
2995 struct unpcb *unp;
3019 struct unpcb *unp;
3068 unp_gc_scan(struct unpcb *unp, void (*op)(struct filedescent **, int))
3108 struct unpcb *unp, *unptmp;
3181 * on the file object and/or unpcb and dropping the link lock?
3238 struct unpcb *unp;
3464 struct unpcb *unp;
3550 struct unpcb *unp;
3566 DB_SHOW_COMMAND(unpcb, db_show_unpcb)
3568 struct unpcb *unp;
3571 db_printf("usage: show unpcb <addr>\n");
3574 unp = (struct unpcb *)addr;