| /xnu-12377.81.4/bsd/kern/ |
| H A D | kern_synch.c | 157 caddr_t chan, in _sleep() argument 189 ut->uu_wchan = chan; in _sleep() 192 if (mtx != NULL && chan != NULL && continuation == NULL) { in _sleep() 206 wait_result = lck_mtx_sleep_deadline(mtx, flags, chan, catch, abstime); in _sleep() 208 wait_result = lck_mtx_sleep(mtx, flags, chan, catch); in _sleep() 211 if (chan != NULL) { in _sleep() 212 assert_wait_deadline(chan, catch, abstime); in _sleep() 328 void *chan, in sleep() argument 331 return _sleep((caddr_t)chan, pri, (char *)NULL, 0, (int (*)(int))0, (lck_mtx_t *)0); in sleep() 336 void *chan, in msleep0() argument [all …]
|
| H A D | proc_info.c | 199 static int __attribute__ ((noinline)) pid_channelinfo(struct kern_channel *chan, struct fileproc *f… 2813 pid_channelinfo(struct kern_channel * chan, struct fileproc *fp, proc_t proc, user_addr_t buffer, _… in pid_channelinfo() argument 2821 if ((error = fill_channelinfo(chan, &channel_info.channelinfo)) == 0) { in pid_channelinfo() 2828 #pragma unused(chan, fp, proc, fd, buffer) in pid_channelinfo()
|
| H A D | tty.c | 3232 ttysleep(struct tty *tp, void *chan, int pri, const char *wmesg, int timo) in ttysleep() argument 3245 error = msleep0(chan, &tp->t_lock, pri, wmesg, timo, (int (*)(int))0); in ttysleep()
|
| /xnu-12377.81.4/bsd/sys/ |
| H A D | proc.h | 258 extern int msleep(void *chan, lck_mtx_t *mtx, int pri, const char *__unsafe_indexable wmesg, s… 259 extern int msleep0(void *chan, lck_mtx_t *mtx, int pri, const char *__unsafe_indexable wmesg, … 260 extern void wakeup(void *chan); 261 extern void wakeup_one(caddr_t chan); 429 extern int tsleep(void *chan, int pri, const char *wmesg, int timo); 430 extern int msleep1(void *chan, lck_mtx_t *mtx, int pri, const char *wmesg, u_int64_t timo);
|
| H A D | proc_info_private.h | 332 extern int fill_channelinfo(struct kern_channel * chan,
|
| H A D | proc_internal.h | 918 extern int sleep(void *chan, int pri) __exported; 919 extern int tsleep0(void *chan, int pri, const char *wmesg, int timo, int (*continuation)(int)); 920 extern int tsleep1(void *chan, int pri, const char *wmesg, u_int64_t abstime, int (*continuati…
|
| H A D | tty.h | 335 void *chan, int pri, const char *wmesg, int timeout);
|
| /xnu-12377.81.4/tests/skywalk/ |
| H A D | skt_netifdirect.c | 333 error = os_channel_packet_alloc(port->chan, &pkt); 388 error = os_channel_sync(port->chan, CHANNEL_SYNC_TX); 460 error = os_channel_packet_free(port->chan, pkt); in skt_netif_channel_receive() 472 error = os_channel_sync(port->chan, CHANNEL_SYNC_RX); in skt_netif_channel_receive() 571 skt_process_if_adv(port->port, port->chan); in skt_netif_send_and_receive() 576 skt_process_channel_event(port->chan, in skt_netif_send_and_receive() 786 assert(port.chan != NULL); in skt_netifdirect_xfer_ipv6() 816 assert(os_channel_configure_interface_advisory(port.chan, TRUE) == 0); in skt_netifdirect_xfer_ipv6() 822 assert(os_channel_configure_interface_advisory(port.chan, FALSE) == 0); in skt_netifdirect_xfer_ipv6()
|
| H A D | skt_xfer.c | 401 error = os_channel_buflet_alloc(port->chan, &buf); in sktc_xfer_copy_data_to_packet() 536 assert((skt_xfer_get_chan_max_frags(port->chan) * bdlim) >= in tcp_frame_populate() 626 assert((skt_xfer_get_chan_max_frags(port->chan) * bdlim) >= in udp_frame_populate() 719 assert((skt_xfer_get_chan_max_frags(port->chan) * bdlim) >= in ip_frame_populate() 1174 error = os_channel_packet_alloc(port->chan, &pkt); 1231 error = os_channel_sync(port->chan, CHANNEL_SYNC_TX); 1276 error = os_channel_packet_alloc(port->chan, &pkt); in channel_port_send_fragments() 1336 error = os_channel_sync(port->chan, CHANNEL_SYNC_TX); in channel_port_send_fragments() 1382 error = os_channel_packet_free(port->chan, pkt); in channel_port_receive_payload() 1388 error = os_channel_sync(port->chan, CHANNEL_SYNC_RX); in channel_port_receive_payload() [all …]
|
| H A D | skywalk_test_common.h | 301 extern void skt_process_if_adv(nexus_port_t port, channel_t chan); 319 channel_t chan, uint8_t payload_type, uint32_t stream_id,
|
| H A D | skywalk_test_utils.c | 1623 channel_t chan; in sktu_channel_port_init() local 1628 chan = sktu_channel_create_extended(instance, port, in sktu_channel_port_init() 1632 if (chan == NULL) { in sktu_channel_port_init() 1640 ch_port->chan = chan; in sktu_channel_port_init() 1641 ch_port->fd = os_channel_get_fd(chan); in sktu_channel_port_init() 1646 ringid = os_channel_ring_id(chan, CHANNEL_FIRST_TX_RING); in sktu_channel_port_init() 1647 ch_port->tx_ring = os_channel_tx_ring(ch_port->chan, ringid); in sktu_channel_port_init() 1650 ringid = os_channel_ring_id(chan, CHANNEL_FIRST_RX_RING); in sktu_channel_port_init() 1651 ch_port->rx_ring = os_channel_rx_ring(ch_port->chan, ringid); in sktu_channel_port_init() 1676 error = os_channel_packet_alloc(port->chan, &pkt); in sktu_channel_port_frame_to_pkt() [all …]
|
| H A D | skywalk_test_common.c | 2495 skt_process_if_adv(nexus_port_t port, channel_t chan) in skt_process_if_adv() argument 2500 error = os_channel_get_interface_advisory(chan, &ifadv); in skt_process_if_adv() 2503 error = os_channel_get_interface_advisory(chan, &ifadv); in skt_process_if_adv() 2532 skt_process_chan_event_common(channel_t chan, uint8_t payload_type, in skt_process_chan_event_common() argument 2544 error = os_channel_get_next_event_handle(chan, &eh, &etype, in skt_process_chan_event_common() 2585 error = os_channel_event_free(chan, eh); in skt_process_chan_event_common() 2590 skt_process_channel_event(channel_t chan, uint8_t payload_type, uint32_t stream_id, in skt_process_channel_event() argument 2598 skt_process_chan_event_common(chan, payload_type, stream_id, in skt_process_channel_event()
|
| H A D | skt_mangle.c | 427 assert(ctx.port.chan != NULL); in skt_mangle_verify_internalize_metadata_main()
|
| H A D | skywalk_test_utils.h | 162 channel_t chan; member
|
| H A D | skt_flowlookup.c | 434 assert(port.chan != NULL); in dev_init()
|
| H A D | skt_reass.c | 606 assert(port.chan != NULL); in skt_reass_main()
|