/Zephyr-latest/kernel/ |
D | events.c | 8 * @file event objects library 10 * Event objects are used to signal one or more threads that a custom set of 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 13 * are posted to an event object, all threads waiting on that event object are 15 * conditions match the current set of events now belonging to the event object 18 * Threads waiting on an event object have the option of either waking once 19 * any or all of the events it desires have been posted to the event object. 21 * @brief Kernel event object 52 void z_impl_k_event_init(struct k_event *event) in z_impl_k_event_init() argument [all …]
|
D | poll.c | 11 * @brief Kernel asynchronous event polling interface. 29 /* Single subsystem lock. Locking per-event would be better on highly 40 static int signal_poller(struct k_poll_event *event, uint32_t state); 41 static int signal_triggered_work(struct k_poll_event *event, uint32_t status); 43 void k_poll_event_init(struct k_poll_event *event, uint32_t type, in k_poll_event_init() argument 51 event->poller = NULL; in k_poll_event_init() 52 /* event->tag is left uninitialized: the user will set it if needed */ in k_poll_event_init() 53 event->type = type; in k_poll_event_init() 54 event->state = K_POLL_STATE_NOT_READY; in k_poll_event_init() 55 event->mode = mode; in k_poll_event_init() [all …]
|
/Zephyr-latest/subsys/tracing/ctf/tsdl/ |
D | metadata | 22 event.header := struct event_header; 25 event { 34 event { 43 event { 54 event { 63 event { 72 event { 81 event { 89 event { 98 event { [all …]
|
/Zephyr-latest/include/zephyr/net/ |
D | net_event.h | 130 /** Event emitted when the network interface goes down. */ 134 /** Event emitted when the network interface goes up. */ 138 /** Event emitted when the network interface is taken down manually. */ 142 /** Event emitted when the network interface goes up manually. */ 146 /** Event emitted when an IPv6 address is added to the system. */ 150 /** Event emitted when an IPv6 address is removed from the system. */ 154 /** Event emitted when an IPv6 multicast address is added to the system. */ 158 /** Event emitted when an IPv6 multicast address is removed from the system. */ 162 /** Event emitted when an IPv6 prefix is added to the system. */ 166 /** Event emitted when an IPv6 prefix is removed from the system. */ [all …]
|
D | net_mgmt.h | 37 * @brief NET MGMT event mask basics, normalizing parts of bit fields 96 * @brief Generate a network management event. 98 * @param _mgmt_request Management event identifier 100 * @param _data Any additional data for the event 107 * @brief Declare a request handler function for the given network event. 109 * @param _mgmt_request Management event identifier 117 * @brief Create a request handler function for the given network event. 119 * @param _mgmt_request Management event identifier 120 * @param _func Function for handling this event 131 * @param mgmt_event The network event being notified. [all …]
|
/Zephyr-latest/scripts/tracing/ |
D | parse_ctf.py | 62 event = msg.event 63 # Compute the time difference since the last event message. 71 if event.name in [ 82 cpu = event.payload_field.get("cpu", None) 83 thread_id = event.payload_field.get("thread_id", None) 84 thread_name = event.payload_field.get("name", None) 87 if event.name in ['thread_switched_out', 'thread_switched_in'] and cpu is not None: 93 print(f"{dt} (+{diff_s:.6f} s): {event.name}: {thread_name} {cpu_string}") 95 print(f"{dt} (+{diff_s:.6f} s): {event.name}: {thread_id} {cpu_string}") 97 print(f"{dt} (+{diff_s:.6f} s): {event.name}") [all …]
|
/Zephyr-latest/include/zephyr/mgmt/hawkbit/ |
D | event.h | 9 * @brief hawkBit event header file 13 * @brief hawkBit event API. 14 * @defgroup hawkbit_event hawkBit event API 26 * @brief hawkBit event type. 32 /** Event triggered when there was an error */ 34 /** Event triggered when there was a networking error */ 36 /** Event triggered when there was a permission error */ 38 /** Event triggered when there was a metadata error */ 40 /** Event triggered when there was a download error */ 42 /** Event triggered when there was an allocation error */ [all …]
|
/Zephyr-latest/samples/subsys/smf/hsm_psicc2/src/ |
D | hsm_psicc2_console_cmds.c | 21 struct hsm_psicc2_event event; in cmd_hsm_psicc2_event() local 26 event.event_id = EVENT_A; in cmd_hsm_psicc2_event() 29 event.event_id = EVENT_B; in cmd_hsm_psicc2_event() 32 event.event_id = EVENT_C; in cmd_hsm_psicc2_event() 35 event.event_id = EVENT_D; in cmd_hsm_psicc2_event() 38 event.event_id = EVENT_E; in cmd_hsm_psicc2_event() 41 event.event_id = EVENT_F; in cmd_hsm_psicc2_event() 44 event.event_id = EVENT_G; in cmd_hsm_psicc2_event() 47 event.event_id = EVENT_H; in cmd_hsm_psicc2_event() 50 event.event_id = EVENT_I; in cmd_hsm_psicc2_event() [all …]
|
/Zephyr-latest/subsys/net/ip/ |
D | Kconfig.mgmt | 12 bool "Add support for runtime network event notifications" 17 (or else) needs to be notified on a specific network event 23 prompt "Network event scheduling" 29 Create a dedicated thread for network event callback handlers. 37 event callback handlers. 42 bool "Trigger callback on event emit" 44 Call network event handlers when the event is emitted. 55 Hidden option to enable the network event's queue if asynchronous 59 int "Stack size for the inner thread handling event callbacks" 71 int "Size of event queue" [all …]
|
/Zephyr-latest/subsys/usb/host/ |
D | usbh_core.c | 27 const struct uhc_event *const event) in usbh_event_carrier() argument 29 return k_msgq_put(&usbh_msgq, event, K_NO_WAIT); in usbh_event_carrier() 46 struct uhc_event *const event) in usbh_event_handler() argument 50 if (event->type == UHC_EVT_EP_REQUEST) { in usbh_event_handler() 51 struct usb_device *const udev = event->xfer->udev; in usbh_event_handler() 52 usbh_udev_cb_t cb = event->xfer->cb; in usbh_event_handler() 54 if (event->xfer->cb) { in usbh_event_handler() 55 ret = cb(udev, event->xfer); in usbh_event_handler() 57 ret = discard_ep_request(ctx, event->xfer); in usbh_event_handler() 62 switch (event->type) { in usbh_event_handler() [all …]
|
/Zephyr-latest/samples/drivers/misc/timeaware_gpio/ |
D | README.rst | 41 [TGPIO] timestamp: 0000000000000000, event count: 0000000000000000 42 [TGPIO] timestamp: 0000000148a3cf31, event count: 0000000000000001 43 [TGPIO] timestamp: 0000000149c8c731, event count: 0000000000000002 44 [TGPIO] timestamp: 000000014aedbf31, event count: 0000000000000003 45 [TGPIO] timestamp: 000000014c12b731, event count: 0000000000000004 46 [TGPIO] timestamp: 000000014d37af31, event count: 0000000000000005 47 [TGPIO] timestamp: 000000014e5ca731, event count: 0000000000000006 48 [TGPIO] timestamp: 000000014f819f31, event count: 0000000000000007 49 [TGPIO] timestamp: 0000000150a69731, event count: 0000000000000008 50 [TGPIO] timestamp: 0000000151cb8f31, event count: 0000000000000009 [all …]
|
/Zephyr-latest/tests/posix/eventfd/src/ |
D | _main.c | 17 int is_blocked(int fd, short *event) in is_blocked() argument 23 pfd.events = *event; in is_blocked() 28 *event = pfd.revents; in is_blocked() 36 short event; in eventfd_poll_unset_common() local 39 event = POLLIN; in eventfd_poll_unset_common() 40 ret = is_blocked(fd, &event); in eventfd_poll_unset_common() 46 event = POLLIN; in eventfd_poll_unset_common() 47 ret = is_blocked(fd, &event); in eventfd_poll_unset_common() 49 zassert_equal(event, POLLIN, "POLLIN not set"); in eventfd_poll_unset_common() 60 event = POLLIN; in eventfd_poll_unset_common() [all …]
|
/Zephyr-latest/include/zephyr/mgmt/mcumgr/mgmt/ |
D | callbacks.h | 46 /** Event which signifies that all event IDs for a particular group should be enabled. */ 49 /** Get event for a particular group and event ID. */ 52 /** Get event used for enabling all event IDs of a particular group. */ 56 /** Get group from event. */ 57 #define MGMT_EVT_GET_GROUP(event) ((event >> 16) & MGMT_EVT_OP_ID_ALL) argument 59 /** Get event ID from event. */ 60 #define MGMT_EVT_GET_ID(event) (event & MGMT_EVT_OP_ID_ALL) argument 63 * MGMT event callback return value. 84 * @brief Function to be called on MGMT notification/event. 86 * This callback function is used to notify an application or system about a MCUmgr mgmt event. [all …]
|
/Zephyr-latest/include/zephyr/sys/ |
D | heap_listener.h | 28 * Dummy event so an un-initialized but zero-ed listener node 45 * @note Minimal C library does not emit this event. 60 * Zephyr main code repository may not emit this event. 79 * Zephyr main code repository may not emit this event. 106 * The heap event to be notified. 108 enum heap_event_types event; member 118 * @brief Register heap event listener 128 * @brief Unregister heap event listener 139 * @brief Notify listeners of heap allocation event 141 * Notify registered heap event listeners with matching heap identifier that an [all …]
|
/Zephyr-latest/modules/hostap/src/ |
D | supp_events.c | 27 enum supplicant_event_num event; member 29 { "CTRL-EVENT-CONNECTED", SUPPLICANT_EVENT_CONNECTED }, 30 { "CTRL-EVENT-DISCONNECTED", SUPPLICANT_EVENT_DISCONNECTED }, 31 { "CTRL-EVENT-ASSOC-REJECT", SUPPLICANT_EVENT_ASSOC_REJECT }, 32 { "CTRL-EVENT-AUTH-REJECT", SUPPLICANT_EVENT_AUTH_REJECT }, 33 { "CTRL-EVENT-SSID-TEMP-DISABLED", SUPPLICANT_EVENT_SSID_TEMP_DISABLED }, 34 { "CTRL-EVENT-SSID-REENABLED", SUPPLICANT_EVENT_SSID_REENABLED }, 35 { "CTRL-EVENT-BSS-ADDED", SUPPLICANT_EVENT_BSS_ADDED }, 36 { "CTRL-EVENT-BSS-REMOVED", SUPPLICANT_EVENT_BSS_REMOVED }, 37 { "CTRL-EVENT-TERMINATING", SUPPLICANT_EVENT_TERMINATING }, [all …]
|
/Zephyr-latest/doc/kernel/services/synchronization/ |
D | events.rst | 6 An :dfn:`event object` is a kernel object that implements traditional events. 15 Any number of event objects can be defined (limited only by available RAM). Each 16 event object is referenced by its memory address. One or more threads may wait 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 21 An event object has the following key properties: 25 An event object must be initialized before it can be used. 32 conditions of multiple threads waiting on the event object. All threads whose 37 have the option of resetting the current set of events tracked by the event 39 threads wait on the same event object. [all …]
|
/Zephyr-latest/.github/workflows/ |
D | bsim-tests-publish.yaml | 12 if: github.event.workflow_run.conclusion != 'skipped' 18 run_id: ${{ github.event.workflow_run.id }} 25 commit: ${{ github.event.workflow_run.head_sha }} 26 event_file: event/event.json 27 event_name: ${{ github.event.workflow_run.event }}
|
/Zephyr-latest/include/zephyr/xen/ |
D | events.h | 32 * Allocate event-channel between caller and remote domain 35 * @return - local event channel port on success, negative on error 41 * Allocate event-channel between remote domains. Can be used only from Dom0. 45 * @return - local event channel port on success, negative on error 51 * Allocate local event channel, binded to remote port and attach specified callback 55 * @param remote_port - remote domain event channel port number 58 * @return - local event channel port on success, negative on error 64 * Bind user-defined handler to specified event-channel 66 * @param port - event channel number 67 * @param cb - pointer to event channel handler [all …]
|
/Zephyr-latest/samples/subsys/smf/smf_calculator/src/ |
D | smf_console_cmds.c | 14 struct calculator_event event; in cmd_smf_key() local 17 event.operand = c; in cmd_smf_key() 20 event.event_id = DIGIT_1_9; in cmd_smf_key() 22 event.event_id = DIGIT_0; in cmd_smf_key() 24 event.event_id = DECIMAL_POINT; in cmd_smf_key() 26 event.event_id = OPERATOR; in cmd_smf_key() 28 event.event_id = EQUALS; in cmd_smf_key() 30 event.event_id = CANCEL_BUTTON; in cmd_smf_key() 32 event.event_id = CANCEL_ENTRY; in cmd_smf_key() 38 int rc = post_calculator_event(&event, K_FOREVER); in cmd_smf_key()
|
/Zephyr-latest/subsys/bluetooth/controller/ll_sw/nordic/hal/nrf5/radio/ |
D | radio_nrf5_dppi_resources.h | 8 * Enable Radio on Event Timer tick: 9 * wire the EVENT_TIMER EVENTS_COMPARE[0] event to RADIO TASKS_TXEN/RXEN task. 15 * Capture event timer on Address reception: 16 * wire the RADIO EVENTS_ADDRESS event to the 23 * wire the EVENT_TIMER EVENTS_COMPARE[<HCTO timer>] event 29 * Capture event timer on Radio end: 30 * wire the RADIO EVENTS_END event to the 36 * Start event timer on RTC tick: 37 * wire the RTC0 EVENTS_COMPARE[2] event to EVENT_TIMER TASKS_START task. 46 * Capture event timer on Radio ready: [all …]
|
/Zephyr-latest/boards/native/common/sdl/ |
D | sdl_events_bottom.c | 7 * "Bottom" of the SDL event handler for the POSIX architecture. 16 static void sdl_handle_window_event(const SDL_Event *event) in sdl_handle_window_event() argument 21 switch (event->window.event) { in sdl_handle_window_event() 24 window = SDL_GetWindowFromID(event->window.windowID); in sdl_handle_window_event() 46 SDL_Event event; in sdl_handle_pending_events() local 48 while (SDL_PollEvent(&event)) { in sdl_handle_pending_events() 49 switch (event.type) { in sdl_handle_pending_events() 51 sdl_handle_window_event(&event); in sdl_handle_pending_events()
|
/Zephyr-latest/subsys/usb/device_next/ |
D | usbd_core.c | 35 const struct udc_event *const event) in usbd_event_carrier() argument 37 return k_msgq_put(&usbd_msgq, event, K_NO_WAIT); in usbd_event_carrier() 41 const struct udc_event *const event) in event_handler_ep_request() argument 46 bi = udc_get_buf_info(event->buf); in event_handler_ep_request() 49 ret = usbd_handle_ctrl_xfer(uds_ctx, event->buf, bi->err); in event_handler_ep_request() 51 ret = usbd_class_handle_xfer(uds_ctx, event->buf, bi->err); in event_handler_ep_request() 56 ret, bi->ep, event->buf); in event_handler_ep_request() 63 struct udc_event *const event) in usbd_class_bcast_event() argument 79 switch (event->type) { in usbd_class_bcast_event() 137 struct udc_event *const event) in usbd_event_handler() argument [all …]
|
/Zephyr-latest/include/zephyr/input/ |
D | input.h | 21 #include <zephyr/dt-bindings/input/input-event-codes.h> 30 * @brief Input event structure. 32 * This structure represents a single input event, for example a key or button 37 /** Device generating the event or NULL. */ 41 /** Event type (see @ref INPUT_EV_CODES). */ 44 * Event code (see @ref INPUT_KEY_CODES, @ref INPUT_BTN_CODES, 48 /** Event value. */ 53 * @brief Report a new input event. 58 * @param dev Device generating the event or NULL. 59 * @param type Event type (see @ref INPUT_EV_CODES). [all …]
|
/Zephyr-latest/subsys/net/lib/ptp/ |
D | state_machine.c | 12 enum ptp_port_event event, in ptp_state_machine() argument 17 if (event == PTP_EVT_INITIALIZE || event == PTP_EVT_POWERUP) { in ptp_state_machine() 24 switch (event) { in ptp_state_machine() 39 switch (event) { in ptp_state_machine() 54 if (event == PTP_EVT_DESIGNATED_ENABLED) { in ptp_state_machine() 61 switch (event) { in ptp_state_machine() 94 switch (event) { in ptp_state_machine() 119 switch (event) { in ptp_state_machine() 140 switch (event) { in ptp_state_machine() 166 switch (event) { in ptp_state_machine() [all …]
|
/Zephyr-latest/include/zephyr/xen/public/ |
D | event_channel.h | 6 * Event channels between domains. 20 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 35 * `incontents 150 evtchn Event Channels 37 * Event channels are the basic primitive provided by Xen for event 38 * notifications. An event is the Xen equivalent of a hardware 39 * interrupt. They essentially store one bit of information, the event 43 * indicating when an event arrives (setting the bit). Further 45 * guests must check the value of the bit after re-enabling event 48 * Event notifications can be masked by setting a flag; this is 52 * Event channels are represented by the evtchn_* fields in [all …]
|