Zephyr Project API 4.4.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
log_link.h File Reference

Header file for the log link interface. More...

Go to the source code of this file.

Data Structures

 Log link configuration passed to the link at initiation time. More...
 Log link API. More...
 Run-time control block for a Log links instance. More...
 Log link instance. More...

Macros

#define LOG_LINK_DEF(_name, _api, _buf_wlen, _ctx)
 Create instance of a log link.

Typedefs

typedef void(* log_link_callback_t) (const struct log_link *link, union log_msg_generic *msg)
 Callback invoked by a link for each received log message.
typedef void(* log_link_dropped_cb_t) (const struct log_link *link, uint32_t dropped)
 Callback invoked by a link to report dropped messages.

Functions

static int log_link_initiate (const struct log_link *link, struct log_link_config *config)
 Initiate log link.
static int log_link_activate (const struct log_link *link)
 Activate log link.
static int log_link_is_active (const struct log_link *link)
 Check if link is activated.
static uint8_t log_link_domains_count (const struct log_link *link)
 Get number of domains in the link.
static uint16_t log_link_sources_count (const struct log_link *link, uint32_t domain_id)
 Get number of sources in the domain.
static int log_link_get_domain_name (const struct log_link *link, uint32_t domain_id, char *buf, size_t *length)
 Get domain name.
static int log_link_get_source_name (const struct log_link *link, uint32_t domain_id, uint16_t source_id, char *buf, size_t *length)
 Get source name.
static int log_link_get_levels (const struct log_link *link, uint32_t domain_id, uint16_t source_id, uint8_t *level, uint8_t *runtime_level)
 Get level settings of the given source.
static int log_link_set_runtime_level (const struct log_link *link, uint32_t domain_id, uint16_t source_id, uint8_t level)
 Set runtime level of the given source.

Detailed Description

Header file for the log link interface.