sco_pcb
struct sco_pcb *sc_sco; /* SCO handle */
struct sco_pcb *sc_sco_l; /* SCO listen handle */
struct sco_pcb;
struct sco_pcb *hl_sco; /* SCO pcb */
struct sco_pcb *pcb, *new;
LIST_FOREACH(pcb, &sco_pcb, sp_next) {
struct sco_pcb *pcb;
LIST_ENTRY(sco_pcb) sp_next;
LIST_HEAD(sco_pcb_list, sco_pcb);
extern struct sco_pcb_list sco_pcb;
int sco_attach_pcb(struct sco_pcb **, const struct btproto *, void *);
int sco_bind_pcb(struct sco_pcb *, struct sockaddr_bt *);
int sco_sockaddr_pcb(struct sco_pcb *, struct sockaddr_bt *);
int sco_connect_pcb(struct sco_pcb *, struct sockaddr_bt *);
int sco_peeraddr_pcb(struct sco_pcb *, struct sockaddr_bt *);
int sco_disconnect_pcb(struct sco_pcb *, int);
void sco_detach_pcb(struct sco_pcb **);
int sco_listen_pcb(struct sco_pcb *);
int sco_send_pcb(struct sco_pcb *, struct mbuf *);
int sco_setopt(struct sco_pcb *, const struct sockopt *);
int sco_getopt(struct sco_pcb *, struct sockopt *);
sco_detach_pcb((struct sco_pcb **)&so->so_pcb);
struct sco_pcb *pcb = so->so_pcb;
struct sco_pcb *pcb = so->so_pcb;
struct sco_pcb *pcb = so->so_pcb;
struct sco_pcb *pcb = so->so_pcb;
struct sco_pcb *pcb = so->so_pcb;
struct sco_pcb *pcb = so->so_pcb;
struct sco_pcb *pcb = so->so_pcb;
struct sco_pcb *pcb = (struct sco_pcb *)so->so_pcb;
struct sco_pcb *pcb = (struct sco_pcb *)so->so_pcb;
struct sco_pcb *pcb = so->so_pcb;
struct sco_pcb *pcb = (struct sco_pcb *)so->so_pcb;
return sco_attach_pcb((struct sco_pcb **)&so->so_pcb, &sco_proto, so);
sco_sockaddr_pcb(struct sco_pcb *pcb, struct sockaddr_bt *addr)
sco_connect_pcb(struct sco_pcb *pcb, struct sockaddr_bt *dest)
sco_peeraddr_pcb(struct sco_pcb *pcb, struct sockaddr_bt *addr)
sco_disconnect_pcb(struct sco_pcb *pcb, int linger)
sco_detach_pcb(struct sco_pcb **handle)
struct sco_pcb *pcb;
sco_listen_pcb(struct sco_pcb *pcb)
sco_send_pcb(struct sco_pcb *pcb, struct mbuf *m)
sco_setopt(struct sco_pcb *pcb, const struct sockopt *sopt)
sco_getopt(struct sco_pcb *pcb, struct sockopt *sopt)
struct sco_pcb_list sco_pcb = LIST_HEAD_INITIALIZER(sco_pcb);
sco_attach_pcb(struct sco_pcb **handle,
struct sco_pcb *pcb;
pcb = malloc(sizeof(struct sco_pcb), M_BLUETOOTH,
LIST_INSERT_HEAD(&sco_pcb, pcb, sp_next);
sco_bind_pcb(struct sco_pcb *pcb, struct sockaddr_bt *addr)