/Zephyr-latest/kernel/ |
D | events.c | 11 * events has occurred. Threads wait on event objects until another thread or 12 * ISR posts the desired set of events to the event object. Each time events 15 * conditions match the current set of events now belonging to the event object 19 * any or all of the events it desires have been posted to the event object. 37 #define K_EVENT_WAIT_ANY 0x00 /* Wait for any events */ 38 #define K_EVENT_WAIT_ALL 0x01 /* Wait for all events */ 41 #define K_EVENT_WAIT_RESET 0x02 /* Reset events prior to waiting */ 45 uint32_t events; member 54 event->events = 0; in z_impl_k_event_init() 78 * @brief determine if desired set of events been satisfied [all …]
|
D | poll.c | 13 * This polling mechanism allows waiting on multiple events concurrently, 14 * either events triggered directly, or from kernel objects or other kernel 112 static inline void add_event(sys_dlist_t *events, struct k_poll_event *event, in add_event() argument 117 pending = (struct k_poll_event *)sys_dlist_peek_tail(events); in add_event() 121 sys_dlist_append(events, &event->_node); in add_event() 125 SYS_DLIST_FOR_EACH_CONTAINER(events, pending, _node) { in add_event() 133 sys_dlist_append(events, &event->_node); in add_event() 217 static inline void clear_event_registrations(struct k_poll_event *events, in clear_event_registrations() argument 222 clear_event_registration(&events[num_events]); in clear_event_registrations() 234 static inline int register_events(struct k_poll_event *events, in register_events() argument [all …]
|
/Zephyr-latest/doc/kernel/services/synchronization/ |
D | events.rst | 3 Events chapter 6 An :dfn:`event object` is a kernel object that implements traditional events. 17 on an event object until the desired set of events has been delivered to the 18 event object. When new events are delivered to the event object, all threads 23 * A 32-bit value that tracks which events have been delivered to it. 27 Events may be **delivered** by a thread or an ISR. When delivering events, the 28 events may either overwrite the existing set of events or add to them in 29 a bitwise fashion. When overwriting the existing set of events, this is referred 31 posting. Both posting and setting events have the potential to fulfill match 35 Threads may wait on one or more events. They may either wait for all of the [all …]
|
/Zephyr-latest/subsys/portability/cmsis_rtos_v2/ |
D | event_flags.c | 28 struct cv2_event_flags *events; in osEventFlagsNew() local 38 if (k_mem_slab_alloc(&cv2_event_flags_slab, (void **)&events, K_MSEC(100)) in osEventFlagsNew() 40 memset(events, 0, sizeof(struct cv2_event_flags)); in osEventFlagsNew() 45 k_poll_signal_init(&events->poll_signal); in osEventFlagsNew() 46 k_poll_event_init(&events->poll_event, K_POLL_TYPE_SIGNAL, in osEventFlagsNew() 47 K_POLL_MODE_NOTIFY_ONLY, &events->poll_signal); in osEventFlagsNew() 48 events->signal_results = 0U; in osEventFlagsNew() 51 strncpy(events->name, init_event_flags_attrs.name, in osEventFlagsNew() 52 sizeof(events->name) - 1); in osEventFlagsNew() 54 strncpy(events->name, attr->name, sizeof(events->name) - 1); in osEventFlagsNew() [all …]
|
/Zephyr-latest/tests/kernel/events/event_api/src/ |
D | test_event_apis.c | 34 uint32_t events; in entry_extra1() local 36 events = k_event_wait_all(&sync_event, 0x33, true, K_FOREVER); in entry_extra1() 38 k_event_post(&test_event, events); in entry_extra1() 43 uint32_t events; in entry_extra2() local 45 events = k_event_wait(&sync_event, 0x3300, true, K_FOREVER); in entry_extra2() 47 k_event_post(&test_event, events); in entry_extra2() 74 zassert_true(event.events == 0); in ZTEST() 80 * Sync point 1-1 : test_event contains events 0x1234. in receive_existing_events() 81 * Test for events 0x2448 (no waiting)--expect an error in receive_existing_events() 90 * Test for events 0x2448 (with waiting)--expect an error in receive_existing_events() [all …]
|
/Zephyr-latest/tests/kernel/events/sys_event/src/ |
D | main.c | 45 uint32_t events; in entry_extra1() local 47 events = k_event_wait_all(&sync_event, 0x33, true, K_FOREVER); in entry_extra1() 49 k_event_post(&test_event, events); in entry_extra1() 54 uint32_t events; in entry_extra2() local 56 events = k_event_wait(&sync_event, 0x3300, true, K_FOREVER); in entry_extra2() 58 k_event_post(&test_event, events); in entry_extra2() 72 zassert_true(init_event.events == 0); in ZTEST() 78 * Sync point 1-1 : test_event contains events 0x1234. in receive_existing_events() 79 * Test for events 0x2448 (no waiting)--expect an error in receive_existing_events() 88 * Test for events 0x2448 (with waiting)--expect an error in receive_existing_events() [all …]
|
/Zephyr-latest/doc/kernel/services/ |
D | polling.rst | 32 **poll events**, one for each condition. 34 All events in the array must be initialized before the array can be polled on. 45 Each event can optionally specify a **tag** to group multiple events together, 55 nature of the kernel. The caller must look at the state of all the poll events 72 The main API is :c:func:`k_poll`, which operates on an array of poll events 77 Poll events can be initialized using either the runtime initializers 84 there to help a user to group similar events together. Being optional, it is 93 struct k_poll_event events[4] = { 112 struct k_poll_event events[4]; 115 k_poll_event_init(&events[0], [all …]
|
/Zephyr-latest/tests/net/lib/coap_client/src/ |
D | stubs.c | 20 short events; member 26 void set_socket_events(int fd, short events) in set_socket_events() argument 29 my_events[fd] |= events; in set_socket_events() 32 void clear_socket_events(int fd, short events) in clear_socket_events() argument 34 my_events[fd] &= ~events; in clear_socket_events() 39 int events = 0; in z_impl_zvfs_poll() local 43 my_events[fds[i].fd] & (fds[i].events | ZSOCK_POLLERR | ZSOCK_POLLHUP); in z_impl_zvfs_poll() 45 events++; in z_impl_zvfs_poll() 48 if (events == 0) { in z_impl_zvfs_poll() 52 return events; in z_impl_zvfs_poll()
|
/Zephyr-latest/tests/subsys/modem/modem_pipelink/src/ |
D | main.c | 25 static atomic_t events; variable 37 atomic_set_bit(&events, TEST_EVENTS_CONNECTED_BIT); in test_pipelink_callback() 41 atomic_set_bit(&events, TEST_EVENTS_DISCONNECTED_BIT); in test_pipelink_callback() 52 atomic_set(&events, 0); in test_reset_events() 84 zassert_true(atomic_test_bit(&events, TEST_EVENTS_CONNECTED_BIT)); in ZTEST() 85 zassert_false(atomic_test_bit(&events, TEST_EVENTS_DISCONNECTED_BIT)); in ZTEST() 88 zassert_false(atomic_test_bit(&events, TEST_EVENTS_CONNECTED_BIT)); in ZTEST() 89 zassert_false(atomic_test_bit(&events, TEST_EVENTS_DISCONNECTED_BIT)); in ZTEST() 91 zassert_false(atomic_test_bit(&events, TEST_EVENTS_CONNECTED_BIT)); in ZTEST() 92 zassert_true(atomic_test_bit(&events, TEST_EVENTS_DISCONNECTED_BIT)); in ZTEST() [all …]
|
/Zephyr-latest/dts/bindings/mbox/ |
D | nordic,nrf-vevif-event-tx.yaml | 7 VEVIF provides support for inter-domain software signaling. It implements a set of events 9 When used in the event tx mode, the VEVIF events are used to trigger IRQs from VPR 19 nordic,events = <1>; 20 nordic,events-mask = <0x00008000>; 29 nordic,events: 32 description: Number of events supported by the VEVIF instance. 34 nordic,events-mask: 37 description: Mask of events supported by the VEVIF instance.
|
D | nordic,nrf-vevif-event-rx.yaml | 7 VEVIF provides support for inter-domain software signaling. It implements a set of events 9 When used in the event rx mode, the VEVIF events are used to receive IRQs that are 21 nordic,events = <1>; 22 nordic,events-mask = <0x00008000>; 31 nordic,events: 34 description: Number of events supported by the VEVIF instance. 36 nordic,events-mask: 39 description: Mask of events supported by the VEVIF instance.
|
/Zephyr-latest/tests/subsys/modem/modem_cmux_pair/src/ |
D | main.c | 289 uint32_t events; in test_setup() local 304 events = k_event_wait(&cmux_event_dte, EVENT_CMUX_CONNECTED, false, K_MSEC(100)); in test_setup() 305 __ASSERT_NO_MSG((events & EVENT_CMUX_CONNECTED)); in test_setup() 306 events = k_event_wait(&cmux_event_dce, EVENT_CMUX_CONNECTED, false, K_MSEC(100)); in test_setup() 307 __ASSERT_NO_MSG((events & EVENT_CMUX_CONNECTED)); in test_setup() 311 events = k_event_wait(&cmux_event_dte, EVENT_CMUX_DLCI1_OPEN, false, K_MSEC(100)); in test_setup() 312 __ASSERT_NO_MSG((events & EVENT_CMUX_DLCI1_OPEN)); in test_setup() 313 events = k_event_wait(&cmux_event_dce, EVENT_CMUX_DLCI1_OPEN, false, K_MSEC(100)); in test_setup() 314 __ASSERT_NO_MSG((events & EVENT_CMUX_DLCI1_OPEN)); in test_setup() 317 events = k_event_wait(&cmux_event_dte, EVENT_CMUX_DLCI2_OPEN, false, K_MSEC(100)); in test_setup() [all …]
|
/Zephyr-latest/samples/bluetooth/mtu_update/img/ |
D | mtu.svg | 3 …events="all"/><rect x="315" y="61" width="30" height="360" fill="none" stroke="rgb(0, 0, 0)" strok…
|
/Zephyr-latest/tests/benchmarks/latency_measure/ |
D | README.rst | 23 * Time it takes to send and receive events 24 * Time it takes to wait for events (and context switch) 25 * Time it takes to wake and switch to a thread waiting for events 86 …events.post.immediate.kernel - Post events (nothing wakes) : … 87 …events.set.immediate.kernel - Set events (nothing wakes) : … 88 …events.wait.immediate.kernel - Wait for any events (no ctx switch) : … 89 …events.wait_all.immediate.kernel - Wait for all events (no ctx switch) : … 90 …events.wait.blocking.k_to_k - Wait for any events (w/ ctx switch) : … 91 …events.set.wake+ctx.k_to_k - Set events (w/ ctx switch) : … 92 …events.wait_all.blocking.k_to_k - Wait for all events (w/ ctx switch) : … [all …]
|
/Zephyr-latest/tests/kernel/poll/src/ |
D | test_poll.c | 53 * @brief Test poll events with no wait 81 struct k_poll_event events[] = { in ZTEST_USER() local 107 zassert_equal(k_poll(events, INT_MAX, K_NO_WAIT), -EINVAL); in ZTEST_USER() 108 zassert_equal(k_poll(events, 4096, K_NO_WAIT), -ENOMEM); in ZTEST_USER() 110 /* Allow zero events */ in ZTEST_USER() 111 zassert_equal(k_poll(events, 0, K_NO_WAIT), -EAGAIN); in ZTEST_USER() 135 /* test polling events that are already ready */ in ZTEST_USER() 140 zassert_equal(k_poll(events, ARRAY_SIZE(events), K_NO_WAIT), 0, ""); in ZTEST_USER() 142 zassert_equal(events[0].state, K_POLL_STATE_SEM_AVAILABLE, ""); in ZTEST_USER() 145 zassert_equal(events[1].state, K_POLL_STATE_FIFO_DATA_AVAILABLE, ""); in ZTEST_USER() [all …]
|
/Zephyr-latest/doc/connectivity/bluetooth/api/mesh/images/ |
D | dfu_srv.svg | 3 …events="all"/><path d="M 210 40 L 210 680" fill="none" stroke="#000000" stroke-miterlimit="10" str…
|
D | blob_srv.svg | 3 …events="all"/><path d="M 50 40 L 50 515" fill="none" stroke="#000000" stroke-miterlimit="10" strok…
|
/Zephyr-latest/doc/services/input/ |
D | index.rst | 6 The input subsystem provides an API for dispatching input events from input 9 Input Events 18 state, for example when the events corresponding to multiple axes of a 24 An input device can report input events directly using :c:func:`input_report` 28 Complex devices may use a combination of multiple events, and set the ``sync`` 33 to only receive events from a specific device. If there's no actual device 42 callback is only invoked for events from the specific device, otherwise the 43 callback will receive all the events in the system. This is the only type of 49 all the events are added to a queue and executed in a common ``input`` thread. 69 Input devices generating X/Y/Touch events can be used in existing applications [all …]
|
/Zephyr-latest/tests/net/conn_mgr_monitor/src/ |
D | main.c | 26 /* Time to wait for NET_MGMT events to finish firing */ 32 /* Time to wait for IPv6 DAD-gated events to finish. 236 /* Add small extra sleep to give any unexpected events to show up. */ in wait_for_events() 268 /* Allow any triggered events to shake out */ in conn_mgr_before() 293 /* Expect no events */ in cycle_ready_ifaces() 297 "No events should be fired if connectivity availability did not change."); in cycle_ready_ifaces() 314 /* Expect no events */ in cycle_ready_ifaces() 318 "No events should be fired if connectivity availability did not change."); in cycle_ready_ifaces() 323 /* Expect no events */ in cycle_ready_ifaces() 327 "No events should be fired if connectivity availability did not change."); in cycle_ready_ifaces() [all …]
|
/Zephyr-latest/drivers/stepper/ |
D | Kconfig.stepper_event_template | 5 bool "$(module-str) guarantee non ISR callbacks upon stepper events" 7 Enable the dispatch of stepper generated events via 13 int "$(module-str) maximum number of pending stepper events" 17 The maximum number of stepper events that can be pending before new events
|
/Zephyr-latest/tests/benchmarks/latency_measure/src/ |
D | events.c | 12 * 1. Immediately posting and setting events 13 * 2. Immediately receiving any or all events. 14 * 3. Blocking to receive either any or all events. 15 * 4. Waking (and switching to) a thread waiting for any or all events. 65 /* 8. Benchmark k_event_wait() (events have already been set) */ in event_ops_entry() 79 /* 11. Benchmark k_event_wait_all() (events have already been set) */ in event_ops_entry() 101 /* 2. Set the events to wake alt_thread */ in start_thread_entry() 109 /* 5. Post the events to wake alt_thread */ in start_thread_entry() 129 /* 1. Wait for any of the events */ in alt_thread_entry() 145 /* 4. Wait for all of the events */ in alt_thread_entry() [all …]
|
/Zephyr-latest/subsys/net/ip/ |
D | Kconfig.mgmt | 9 events (ip address change, iface up and running ...). 15 This adds support for the stack to notify events towards any 27 bool "Separate network events thread" 68 on events. 77 Numbers of events which can be queued at same time. Note that if a 99 bool "Monitor network events from net shell" 102 Allow user to monitor network events from net shell using 103 "net events [on|off]" command. The monitoring is disabled by 106 any events. 119 Allow user to start monitoring network events automatically [all …]
|
/Zephyr-latest/doc/connectivity/networking/conn_mgr/figures/ |
D | integration_diagram_simplified.svg | 3 …events="all"/><rect x="303" y="126" width="164" height="30" fill="none" stroke="none" pointer-even…
|
D | integration_diagram_detailed.svg | 3 …events="all"/><rect x="259" y="454" width="310" height="177" fill="rgb(255, 255, 255)" stroke="rgb…
|
/Zephyr-latest/doc/build/dts/ |
D | zephyr_dt_i2c_high_level.svg | 3 …events="none"/><path d="M 214 68.88 L 210.5 61.88 L 214 63.63 L 217.5 61.88 Z" fill="#000000" stro…
|