FreeBSD kernel netgraph code
|
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/bitstring.h>
#include <sys/domain.h>
#include <sys/endian.h>
#include <sys/errno.h>
#include <sys/filedesc.h>
#include <sys/ioccom.h>
#include <sys/kernel.h>
#include <sys/lock.h>
#include <sys/malloc.h>
#include <sys/mbuf.h>
#include <sys/mutex.h>
#include <sys/protosw.h>
#include <sys/queue.h>
#include <sys/socket.h>
#include <sys/socketvar.h>
#include <sys/sysctl.h>
#include <sys/taskqueue.h>
#include <net/vnet.h>
#include <netgraph/ng_message.h>
#include <netgraph/netgraph.h>
#include <netgraph/bluetooth/include/ng_bluetooth.h>
#include <netgraph/bluetooth/include/ng_hci.h>
#include <netgraph/bluetooth/include/ng_l2cap.h>
#include <netgraph/bluetooth/include/ng_btsocket.h>
#include <netgraph/bluetooth/include/ng_btsocket_sco.h>
Go to the source code of this file.
Macros | |
#define | M_NETGRAPH_BTSOCKET_SCO M_NETGRAPH |
#define | NG_BTSOCKET_SCO_INFO |
#define | NG_BTSOCKET_SCO_WARN |
#define | NG_BTSOCKET_SCO_ERR |
#define | NG_BTSOCKET_SCO_ALERT |
#define | ng_btsocket_sco_wakeup_input_task() taskqueue_enqueue(taskqueue_swi, &ng_btsocket_sco_queue_task) |
#define | ng_btsocket_sco_wakeup_route_task() taskqueue_enqueue(taskqueue_swi, &ng_btsocket_sco_rt_task) |
Variables | |
static ng_constructor_t | ng_btsocket_sco_node_constructor |
static ng_rcvmsg_t | ng_btsocket_sco_node_rcvmsg |
static ng_shutdown_t | ng_btsocket_sco_node_shutdown |
static ng_newhook_t | ng_btsocket_sco_node_newhook |
static ng_connect_t | ng_btsocket_sco_node_connect |
static ng_rcvdata_t | ng_btsocket_sco_node_rcvdata |
static ng_disconnect_t | ng_btsocket_sco_node_disconnect |
static struct ng_type | typestruct |
static u_int32_t | ng_btsocket_sco_debug_level |
static node_p | ng_btsocket_sco_node |
static struct ng_bt_itemq | ng_btsocket_sco_queue |
static struct mtx | ng_btsocket_sco_queue_mtx |
static struct task | ng_btsocket_sco_queue_task |
static struct mtx | ng_btsocket_sco_sockets_mtx |
#define M_NETGRAPH_BTSOCKET_SCO M_NETGRAPH |
Definition at line 71 of file ng_btsocket_sco.c.
#define NG_BTSOCKET_SCO_ALERT |
#define NG_BTSOCKET_SCO_ERR |
#define NG_BTSOCKET_SCO_INFO |
#define ng_btsocket_sco_wakeup_input_task | ( | ) | taskqueue_enqueue(taskqueue_swi, &ng_btsocket_sco_queue_task) |
#define ng_btsocket_sco_wakeup_route_task | ( | ) | taskqueue_enqueue(taskqueue_swi, &ng_btsocket_sco_rt_task) |
#define NG_BTSOCKET_SCO_WARN |
|
static |
Definition at line 106 of file ng_btsocket_sco.c.
void ng_btsocket_sco_abort | ( | struct socket * | so | ) |
Definition at line 1167 of file ng_btsocket_sco.c.
References ng_btsocket_sco_disconnect().
int ng_btsocket_sco_accept | ( | struct socket * | so, |
struct sockaddr ** | nam | ||
) |
Definition at line 1186 of file ng_btsocket_sco.c.
References ng_btsocket_sco_node, and ng_btsocket_sco_peeraddr().
int ng_btsocket_sco_attach | ( | struct socket * | so, |
int | proto, | ||
struct thread * | td | ||
) |
Definition at line 1199 of file ng_btsocket_sco.c.
References BLUETOOTH_PROTO_SCO, M_NETGRAPH_BTSOCKET_SCO, NG_BTSOCKET_SCO_CLOSED, ng_btsocket_sco_node, NG_BTSOCKET_SCO_RECVSPACE, NG_BTSOCKET_SCO_SENDSPACE, ng_btsocket_sco_sockets_mtx, ng_btsocket_sco_pcb::pcb_mtx, ng_btsocket_sco_pcb::so, so2sco_pcb, ng_btsocket_sco_pcb::state, and ng_btsocket_sco_pcb::timo.
int ng_btsocket_sco_bind | ( | struct socket * | so, |
struct sockaddr * | nam, | ||
struct thread * | td | ||
) |
Definition at line 1287 of file ng_btsocket_sco.c.
References ng_btsocket_sco_node, ng_btsocket_sco_sockets_mtx, NG_HCI_BDADDR_ANY, ng_btsocket_sco_pcb::pcb_mtx, sockaddr_sco::sco_bdaddr, sockaddr_sco::sco_family, sockaddr_sco::sco_len, so2sco_pcb, and ng_btsocket_sco_pcb::src.
void ng_btsocket_sco_close | ( | struct socket * | so | ) |
Definition at line 1175 of file ng_btsocket_sco.c.
References ng_btsocket_sco_disconnect().
int ng_btsocket_sco_connect | ( | struct socket * | so, |
struct sockaddr * | nam, | ||
struct thread * | td | ||
) |
Definition at line 1346 of file ng_btsocket_sco.c.
References ng_btsocket_sco_pcb::dst, ng_btsocket_sco_pcb::flags, ng_btsocket_sco_rtentry::hook, NG_BTSOCKET_SCO_CLIENT, NG_BTSOCKET_SCO_CONNECTING, ng_btsocket_sco_node, ng_btsocket_sco_send_lp_con_req(), ng_btsocket_sco_timeout(), NG_HCI_BDADDR_ANY, NG_HOOK_NOT_VALID, ng_btsocket_sco_pcb::pcb_mtx, ng_btsocket_sco_pcb::rt, sockaddr_sco::sco_bdaddr, sockaddr_sco::sco_family, sockaddr_sco::sco_len, ng_btsocket_sco_pcb::so, so2sco_pcb, ng_btsocket_sco_rtentry::src, ng_btsocket_sco_pcb::src, and ng_btsocket_sco_pcb::state.
int ng_btsocket_sco_control | ( | struct socket * | so, |
u_long | cmd, | ||
caddr_t | data, | ||
struct ifnet * | ifp, | ||
struct thread * | td | ||
) |
Definition at line 1448 of file ng_btsocket_sco.c.
int ng_btsocket_sco_ctloutput | ( | struct socket * | so, |
struct sockopt * | sopt | ||
) |
Definition at line 1459 of file ng_btsocket_sco.c.
References ng_btsocket_sco_pcb::con_handle, ng_btsocket_sco_node, NG_BTSOCKET_SCO_OPEN, ng_btsocket_sco_pcb::pcb_mtx, ng_btsocket_sco_rtentry::pkt_size, ng_btsocket_sco_pcb::rt, so2sco_pcb, SO_SCO_CONNINFO, SO_SCO_MTU, SOL_SCO, and ng_btsocket_sco_pcb::state.
|
static |
Definition at line 698 of file ng_btsocket_sco.c.
References NG_BTSOCKET_SCO_ALERT, NG_BTSOCKET_SCO_ERR, NG_BTSOCKET_SCO_INFO, NG_BTSOCKET_SCO_OPEN, ng_btsocket_sco_pcb_by_handle(), ng_btsocket_sco_sockets_mtx, NG_FREE_M, NG_HCI_CON_HANDLE, NG_HOOK_PRIVATE, ng_btsocket_sco_pcb::pcb_mtx, ng_btsocket_sco_pcb::so, ng_btsocket_sco_rtentry::src, and ng_btsocket_sco_pcb::state.
Referenced by ng_btsocket_sco_input().
Definition at line 812 of file ng_btsocket_sco.c.
References ng_mesg::ng_msghdr::arglen, ng_hci_node_up_ep::bdaddr, ng_mesg::ng_msghdr::cmd, ng_hci_sync_con_queue_ep::completed, ng_hci_sync_con_queue_ep::con_handle, ng_mesg::data, ng_mesg::header, ng_btsocket_sco_rtentry::hook, M_NETGRAPH_BTSOCKET_SCO, NG_BTSOCKET_SCO_INFO, NG_BTSOCKET_SCO_OPEN, ng_btsocket_sco_pcb_by_handle(), ng_btsocket_sco_send2(), ng_btsocket_sco_sockets_mtx, ng_btsocket_sco_timeout(), ng_btsocket_sco_untimeout(), NG_BTSOCKET_SCO_WARN, NG_FREE_MSG, NG_HCI_BDADDR_ANY, NG_HOOK_NAME, NG_HOOK_NOT_VALID, NG_HOOK_PRIVATE, NG_HOOK_SET_PRIVATE, NGM_HCI_NODE_UP, NGM_HCI_SYNC_CON_QUEUE, ng_btsocket_sco_rtentry::num_pkts, ng_hci_node_up_ep::num_pkts, ng_btsocket_sco_pcb::pcb_mtx, ng_btsocket_sco_rtentry::pending, ng_btsocket_sco_rtentry::pkt_size, ng_hci_node_up_ep::pkt_size, ng_btsocket_sco_pcb::so, ng_btsocket_sco_rtentry::src, and ng_btsocket_sco_pcb::state.
Referenced by ng_btsocket_sco_input().
void ng_btsocket_sco_detach | ( | struct socket * | so | ) |
Definition at line 1517 of file ng_btsocket_sco.c.
References ng_btsocket_sco_pcb::flags, M_NETGRAPH_BTSOCKET_SCO, NG_BTSOCKET_SCO_CLOSED, ng_btsocket_sco_node, NG_BTSOCKET_SCO_OPEN, ng_btsocket_sco_send_lp_discon_req(), ng_btsocket_sco_sockets_mtx, NG_BTSOCKET_SCO_TIMO, ng_btsocket_sco_untimeout(), ng_btsocket_sco_pcb::pcb_mtx, so2sco_pcb, and ng_btsocket_sco_pcb::state.
int ng_btsocket_sco_disconnect | ( | struct socket * | so | ) |
Definition at line 1555 of file ng_btsocket_sco.c.
References ng_btsocket_sco_pcb::flags, NG_BTSOCKET_SCO_CLOSED, NG_BTSOCKET_SCO_DISCONNECTING, ng_btsocket_sco_node, NG_BTSOCKET_SCO_OPEN, ng_btsocket_sco_send_lp_discon_req(), ng_btsocket_sco_timeout(), NG_BTSOCKET_SCO_TIMO, ng_btsocket_sco_untimeout(), ng_btsocket_sco_pcb::pcb_mtx, so2sco_pcb, and ng_btsocket_sco_pcb::state.
Referenced by ng_btsocket_sco_abort(), and ng_btsocket_sco_close().
|
static |
Definition at line 1102 of file ng_btsocket_sco.c.
References NG_BT_ITEMQ_INIT, NG_BTSOCKET_SCO_ALERT, ng_btsocket_sco_debug_level, ng_btsocket_sco_input(), ng_btsocket_sco_node, NG_BTSOCKET_SCO_NODE_TYPE, ng_btsocket_sco_queue, ng_btsocket_sco_queue_mtx, ng_btsocket_sco_queue_task, ng_btsocket_sco_rtclean(), ng_btsocket_sco_sockets_mtx, NG_BTSOCKET_WARN_LEVEL, ng_make_node_common(), ng_name_node(), ng_newtype(), NG_NODE_UNREF, and typestruct.
|
static |
Definition at line 977 of file ng_btsocket_sco.c.
References ng_mesg::ng_msghdr::cmd, ng_item::el_flags, ng_mesg::header, NG_BT_ITEMQ_DEQUEUE, ng_btsocket_sco_data_input(), ng_btsocket_sco_default_msg_input(), ng_btsocket_sco_lp_msg_input(), ng_btsocket_sco_queue, ng_btsocket_sco_queue_mtx, NG_FREE_ITEM, NG_HOOK_NOT_VALID, NG_HOOK_UNREF, NGI_GET_HOOK, NGI_GET_M, NGI_GET_MSG, NGM_HCI_LP_CON_CFM, NGM_HCI_LP_CON_IND, NGM_HCI_LP_DISCON_IND, NGQF_DATA, NGQF_MESG, and NGQF_TYPE.
Referenced by ng_btsocket_sco_init().
int ng_btsocket_sco_listen | ( | struct socket * | so, |
int | backlog, | ||
struct thread * | td | ||
) |
Definition at line 1597 of file ng_btsocket_sco.c.
References ng_btsocket_sco_node, NG_HCI_BDADDR_ANY, ng_btsocket_sco_pcb::pcb_mtx, so2sco_pcb, and ng_btsocket_sco_pcb::src.
Definition at line 931 of file ng_btsocket_sco.c.
References ng_mesg::ng_msghdr::cmd, ng_mesg::header, NG_BTSOCKET_SCO_ALERT, ng_btsocket_sco_process_lp_con_cfm(), ng_btsocket_sco_process_lp_con_ind(), ng_btsocket_sco_process_lp_discon_ind(), NG_BTSOCKET_SCO_WARN, NG_FREE_MSG, NG_HOOK_PRIVATE, NGM_HCI_LP_CON_CFM, NGM_HCI_LP_CON_IND, and NGM_HCI_LP_DISCON_IND.
Referenced by ng_btsocket_sco_input().
|
static |
Definition at line 271 of file ng_btsocket_sco.c.
References NG_HOOK_FORCE_QUEUE, NG_HOOK_PEER, NG_HOOK_REF, and NG_HOOK_SET_PRIVATE.
|
static |
Definition at line 289 of file ng_btsocket_sco.c.
References ng_btsocket_sco_wakeup_route_task, NG_HOOK_PRIVATE, and NG_HOOK_UNREF.
Definition at line 261 of file ng_btsocket_sco.c.
Definition at line 349 of file ng_btsocket_sco.c.
References NG_BT_ITEMQ_DROP, NG_BT_ITEMQ_ENQUEUE, NG_BT_ITEMQ_FULL, NG_BTSOCKET_SCO_ERR, ng_btsocket_sco_queue, ng_btsocket_sco_queue_mtx, ng_btsocket_sco_wakeup_input_task, NG_FREE_ITEM, NG_HOOK_REF, and NGI_SET_HOOK.
Definition at line 312 of file ng_btsocket_sco.c.
References ng_mesg::header, NG_BT_ITEMQ_DROP, NG_BT_ITEMQ_ENQUEUE, NG_BT_ITEMQ_FULL, NG_BTSOCKET_SCO_ERR, ng_btsocket_sco_queue, ng_btsocket_sco_queue_mtx, ng_btsocket_sco_wakeup_input_task, NG_FREE_ITEM, NG_HOOK_REF, NGI_MSG, NGI_SET_HOOK, NGM_HCI_COOKIE, and ng_mesg::ng_msghdr::typecookie.
|
static |
Definition at line 224 of file ng_btsocket_sco.c.
References NG_BTSOCKET_SCO_ALERT, ng_btsocket_sco_node, NG_BTSOCKET_SCO_NODE_TYPE, ng_make_node_common(), ng_name_node(), NG_NODE_UNREF, and typestruct.
|
static |
Definition at line 1821 of file ng_btsocket_sco.c.
References ng_btsocket_sco_sockets_mtx, NG_HCI_BDADDR_ANY, ng_btsocket_sco_pcb::pcb_mtx, ng_btsocket_sco_pcb::so, and ng_btsocket_sco_pcb::src.
Referenced by ng_btsocket_sco_process_lp_con_ind().
|
static |
Definition at line 1883 of file ng_btsocket_sco.c.
References ng_btsocket_sco_pcb::dst, NG_BTSOCKET_SCO_CONNECTING, ng_btsocket_sco_sockets_mtx, ng_btsocket_sco_pcb::pcb_mtx, ng_btsocket_sco_pcb::src, and ng_btsocket_sco_pcb::state.
Referenced by ng_btsocket_sco_process_lp_con_cfm().
|
static |
Definition at line 1857 of file ng_btsocket_sco.c.
References ng_btsocket_sco_pcb::con_handle, ng_btsocket_sco_sockets_mtx, ng_btsocket_sco_pcb::pcb_mtx, and ng_btsocket_sco_pcb::src.
Referenced by ng_btsocket_sco_data_input(), ng_btsocket_sco_default_msg_input(), and ng_btsocket_sco_process_lp_discon_ind().
int ng_btsocket_sco_peeraddr | ( | struct socket * | so, |
struct sockaddr ** | nam | ||
) |
Definition at line 1632 of file ng_btsocket_sco.c.
References ng_btsocket_sco_pcb::dst, ng_btsocket_sco_node, ng_btsocket_sco_pcb::pcb_mtx, sockaddr_sco::sco_bdaddr, sockaddr_sco::sco_family, sockaddr_sco::sco_len, and so2sco_pcb.
Referenced by ng_btsocket_sco_accept().
|
static |
Definition at line 378 of file ng_btsocket_sco.c.
References ng_mesg::ng_msghdr::arglen, ng_hci_lp_con_cfm_ep::bdaddr, ng_btsocket_sco_pcb::con_handle, ng_hci_lp_con_cfm_ep::con_handle, ng_mesg::data, ng_btsocket_sco_pcb::dst, ng_mesg::header, NG_BTSOCKET_SCO_CLOSED, NG_BTSOCKET_SCO_CONNECTING, NG_BTSOCKET_SCO_INFO, NG_BTSOCKET_SCO_OPEN, ng_btsocket_sco_pcb_by_addrs(), ng_btsocket_sco_sockets_mtx, ng_btsocket_sco_untimeout(), ng_btsocket_sco_pcb::pcb_mtx, ng_btsocket_sco_pcb::so, ng_btsocket_sco_rtentry::src, ng_btsocket_sco_pcb::src, ng_btsocket_sco_pcb::state, and ng_hci_lp_con_cfm_ep::status.
Referenced by ng_btsocket_sco_lp_msg_input().
|
static |
Definition at line 451 of file ng_btsocket_sco.c.
References ng_mesg::ng_msghdr::arglen, ng_hci_lp_con_ind_ep::bdaddr, ng_mesg::data, ng_mesg::header, NG_BTSOCKET_SCO_CLOSED, NG_BTSOCKET_SCO_CONNECTING, NG_BTSOCKET_SCO_INFO, ng_btsocket_sco_pcb_by_addr(), ng_btsocket_sco_send_lp_con_rsp(), ng_btsocket_sco_sockets_mtx, ng_btsocket_sco_timeout(), NG_HCI_BDADDR_ANY, ng_btsocket_sco_pcb::pcb_mtx, ng_btsocket_sco_pcb::so, so2sco_pcb, ng_btsocket_sco_rtentry::src, ng_btsocket_sco_pcb::src, and status.
Referenced by ng_btsocket_sco_lp_msg_input().
|
static |
Definition at line 546 of file ng_btsocket_sco.c.
References ng_mesg::ng_msghdr::arglen, ng_btsocket_sco_pcb::con_handle, ng_hci_lp_discon_ind_ep::con_handle, ng_mesg::data, ng_btsocket_sco_pcb::dst, ng_btsocket_sco_pcb::flags, ng_mesg::header, NG_BTSOCKET_SCO_CLOSED, NG_BTSOCKET_SCO_INFO, ng_btsocket_sco_pcb_by_handle(), ng_btsocket_sco_sockets_mtx, NG_BTSOCKET_SCO_TIMO, ng_btsocket_sco_untimeout(), ng_btsocket_sco_pcb::pcb_mtx, ng_btsocket_sco_pcb::so, ng_btsocket_sco_rtentry::src, ng_btsocket_sco_pcb::src, and ng_btsocket_sco_pcb::state.
Referenced by ng_btsocket_sco_lp_msg_input().
|
static |
Definition at line 1943 of file ng_btsocket_sco.c.
References ng_btsocket_sco_pcb::flags, NG_BTSOCKET_SCO_CLOSED, NG_BTSOCKET_SCO_CONNECTING, NG_BTSOCKET_SCO_DISCONNECTING, NG_BTSOCKET_SCO_ERR, NG_BTSOCKET_SCO_OPEN, ng_btsocket_sco_pcb::pcb_mtx, ng_btsocket_sco_pcb::so, and ng_btsocket_sco_pcb::state.
Referenced by ng_btsocket_sco_timeout().
|
static |
Definition at line 1040 of file ng_btsocket_sco.c.
References ng_btsocket_sco_pcb::flags, ng_btsocket_sco_rtentry::hook, M_NETGRAPH_BTSOCKET_SCO, NG_BTSOCKET_SCO_CLOSED, ng_btsocket_sco_sockets_mtx, NG_BTSOCKET_SCO_TIMO, ng_btsocket_sco_untimeout(), NG_HOOK_NOT_VALID, NG_HOOK_SET_PRIVATE, NG_HOOK_UNREF, ng_btsocket_sco_pcb::pcb_mtx, ng_btsocket_sco_pcb::rt, ng_btsocket_sco_pcb::so, and ng_btsocket_sco_pcb::state.
Referenced by ng_btsocket_sco_init().
int ng_btsocket_sco_send | ( | struct socket * | so, |
int | flags, | ||
struct mbuf * | m, | ||
struct sockaddr * | nam, | ||
struct mbuf * | control, | ||
struct thread * | td | ||
) |
Definition at line 1659 of file ng_btsocket_sco.c.
References control, ng_btsocket_sco_pcb::flags, ng_btsocket_sco_rtentry::hook, NG_BTSOCKET_SCO_ERR, ng_btsocket_sco_node, NG_BTSOCKET_SCO_OPEN, ng_btsocket_sco_send2(), ng_btsocket_sco_timeout(), NG_BTSOCKET_SCO_TIMO, NG_FREE_M, NG_HOOK_NOT_VALID, ng_btsocket_sco_pcb::pcb_mtx, ng_btsocket_sco_rtentry::pkt_size, ng_btsocket_sco_pcb::rt, ng_btsocket_sco_pcb::so, so2sco_pcb, and ng_btsocket_sco_pcb::state.
|
static |
Definition at line 1735 of file ng_btsocket_sco.c.
References ng_btsocket_sco_pcb::con_handle, ng_btsocket_sco_rtentry::hook, NG_HCI_MK_CON_HANDLE, NG_HCI_SCO_DATA_PKT, NG_SEND_DATA_ONLY, ng_btsocket_sco_rtentry::num_pkts, ng_btsocket_sco_pcb::pcb_mtx, ng_btsocket_sco_rtentry::pending, ng_btsocket_sco_pcb::rt, and ng_btsocket_sco_pcb::so.
Referenced by ng_btsocket_sco_default_msg_input(), and ng_btsocket_sco_send().
|
static |
Definition at line 601 of file ng_btsocket_sco.c.
References ng_hci_lp_con_req_ep::bdaddr, ng_mesg::data, ng_btsocket_sco_pcb::dst, ng_btsocket_sco_rtentry::hook, ng_hci_lp_con_req_ep::link_type, ng_btsocket_sco_node, NG_HCI_LINK_SCO, NG_HOOK_NOT_VALID, NG_MKMESSAGE, NG_SEND_MSG_HOOK, NGM_HCI_COOKIE, NGM_HCI_LP_CON_REQ, ng_btsocket_sco_pcb::pcb_mtx, and ng_btsocket_sco_pcb::rt.
Referenced by ng_btsocket_sco_connect().
|
static |
Definition at line 632 of file ng_btsocket_sco.c.
References ng_hci_lp_con_rsp_ep::bdaddr, ng_mesg::data, ng_btsocket_sco_rtentry::hook, ng_hci_lp_con_rsp_ep::link_type, ng_btsocket_sco_node, NG_HCI_LINK_SCO, NG_HOOK_NOT_VALID, NG_MKMESSAGE, NG_SEND_MSG_HOOK, NGM_HCI_COOKIE, NGM_HCI_LP_CON_RSP, status, and ng_hci_lp_con_rsp_ep::status.
Referenced by ng_btsocket_sco_process_lp_con_ind().
|
static |
Definition at line 661 of file ng_btsocket_sco.c.
References ng_btsocket_sco_pcb::con_handle, ng_hci_lp_discon_req_ep::con_handle, ng_mesg::data, ng_btsocket_sco_rtentry::hook, ng_btsocket_sco_node, NG_HOOK_NOT_VALID, NG_MKMESSAGE, NG_SEND_MSG_HOOK, NGM_HCI_COOKIE, NGM_HCI_LP_DISCON_REQ, ng_btsocket_sco_pcb::pcb_mtx, ng_hci_lp_discon_req_ep::reason, and ng_btsocket_sco_pcb::rt.
Referenced by ng_btsocket_sco_detach(), and ng_btsocket_sco_disconnect().
int ng_btsocket_sco_sockaddr | ( | struct socket * | so, |
struct sockaddr ** | nam | ||
) |
Definition at line 1785 of file ng_btsocket_sco.c.
References ng_btsocket_sco_node, ng_btsocket_sco_pcb::pcb_mtx, sockaddr_sco::sco_bdaddr, sockaddr_sco::sco_family, sockaddr_sco::sco_len, so2sco_pcb, and ng_btsocket_sco_pcb::src.
|
static |
Definition at line 1908 of file ng_btsocket_sco.c.
References bluetooth_sco_rtx_timeout(), ng_btsocket_sco_pcb::flags, ng_btsocket_sco_process_timeout(), NG_BTSOCKET_SCO_TIMO, ng_btsocket_sco_pcb::pcb_mtx, and ng_btsocket_sco_pcb::timo.
Referenced by ng_btsocket_sco_connect(), ng_btsocket_sco_default_msg_input(), ng_btsocket_sco_disconnect(), ng_btsocket_sco_process_lp_con_ind(), and ng_btsocket_sco_send().
|
static |
Definition at line 1926 of file ng_btsocket_sco.c.
References ng_btsocket_sco_pcb::flags, NG_BTSOCKET_SCO_TIMO, ng_btsocket_sco_pcb::pcb_mtx, and ng_btsocket_sco_pcb::timo.
Referenced by ng_btsocket_sco_default_msg_input(), ng_btsocket_sco_detach(), ng_btsocket_sco_disconnect(), ng_btsocket_sco_process_lp_con_cfm(), ng_btsocket_sco_process_lp_discon_ind(), and ng_btsocket_sco_rtclean().
SYSINIT | ( | ng_btsocket_sco_init | , |
SI_SUB_PROTO_DOMAIN | , | ||
SI_ORDER_THIRD | , | ||
ng_btsocket_sco_init | , | ||
NULL | |||
) |
|
static |
Definition at line 100 of file ng_btsocket_sco.c.
Referenced by ng_btsocket_sco_init().
|
static |
Definition at line 101 of file ng_btsocket_sco.c.
Referenced by ng_btsocket_sco_accept(), ng_btsocket_sco_attach(), ng_btsocket_sco_bind(), ng_btsocket_sco_connect(), ng_btsocket_sco_ctloutput(), ng_btsocket_sco_detach(), ng_btsocket_sco_disconnect(), ng_btsocket_sco_init(), ng_btsocket_sco_listen(), ng_btsocket_sco_node_shutdown(), ng_btsocket_sco_peeraddr(), ng_btsocket_sco_send(), ng_btsocket_sco_send_lp_con_req(), ng_btsocket_sco_send_lp_con_rsp(), ng_btsocket_sco_send_lp_discon_req(), and ng_btsocket_sco_sockaddr().
|
static |
Definition at line 79 of file ng_btsocket_sco.c.
|
static |
Definition at line 75 of file ng_btsocket_sco.c.
|
static |
Definition at line 81 of file ng_btsocket_sco.c.
|
static |
Definition at line 78 of file ng_btsocket_sco.c.
|
static |
Definition at line 80 of file ng_btsocket_sco.c.
|
static |
Definition at line 76 of file ng_btsocket_sco.c.
|
static |
Definition at line 77 of file ng_btsocket_sco.c.
|
static |
Definition at line 102 of file ng_btsocket_sco.c.
Referenced by ng_btsocket_sco_init(), ng_btsocket_sco_input(), ng_btsocket_sco_node_rcvdata(), and ng_btsocket_sco_node_rcvmsg().
|
static |
Definition at line 103 of file ng_btsocket_sco.c.
Referenced by ng_btsocket_sco_init(), ng_btsocket_sco_input(), ng_btsocket_sco_node_rcvdata(), and ng_btsocket_sco_node_rcvmsg().
|
static |
Definition at line 104 of file ng_btsocket_sco.c.
Referenced by ng_btsocket_sco_init().
|
static |
Definition at line 105 of file ng_btsocket_sco.c.
Referenced by ng_btsocket_sco_attach(), ng_btsocket_sco_bind(), ng_btsocket_sco_data_input(), ng_btsocket_sco_default_msg_input(), ng_btsocket_sco_detach(), ng_btsocket_sco_init(), ng_btsocket_sco_pcb_by_addr(), ng_btsocket_sco_pcb_by_addrs(), ng_btsocket_sco_pcb_by_handle(), ng_btsocket_sco_process_lp_con_cfm(), ng_btsocket_sco_process_lp_con_ind(), ng_btsocket_sco_process_lp_discon_ind(), and ng_btsocket_sco_rtclean().
|
static |
Definition at line 87 of file ng_btsocket_sco.c.
Referenced by ng_btsocket_sco_init(), and ng_btsocket_sco_node_shutdown().