|
Ubus
OpenWrt system message/RPC bus.
|
Go to the source code of this file.
Data Structures | |
| struct | ubus_pending_data |
Functions | |
| static void | req_data_cb (struct ubus_request *req, int type, struct blob_attr *data) |
| static void | __ubus_process_req_data (struct ubus_request *req) |
| int __hidden | __ubus_start_request (struct ubus_context *ctx, struct ubus_request *req, struct blob_attr *msg, int cmd, uint32_t peer) |
| int __hidden | ubus_start_request (struct ubus_context *ctx, struct ubus_request *req, struct blob_attr *msg, int cmd, uint32_t peer) |
| void | ubus_abort_request (struct ubus_context *ctx, struct ubus_request *req) |
| void | ubus_complete_request_async (struct ubus_context *ctx, struct ubus_request *req) |
| static void | ubus_req_complete_cb (struct ubus_request *req) |
| static void | ubus_set_req_status (struct ubus_request *req, int ret) |
| static void | ubus_sync_req_cb (struct ubus_request *req, int ret) |
| static int64_t | get_time_msec (void) |
| int | ubus_complete_request (struct ubus_context *ctx, struct ubus_request *req, int req_timeout) |
| void | ubus_complete_deferred_request (struct ubus_context *ctx, struct ubus_request_data *req, int ret) |
| static void | ubus_put_data (struct blob_buf *buf, struct blob_attr *msg) |
| int | ubus_send_reply (struct ubus_context *ctx, struct ubus_request_data *req, struct blob_attr *msg) |
| int | ubus_invoke_async_fd (struct ubus_context *ctx, uint32_t obj, const char *method, struct blob_attr *msg, struct ubus_request *req, int fd) |
| int | ubus_invoke_fd (struct ubus_context *ctx, uint32_t obj, const char *method, struct blob_attr *msg, ubus_data_handler_t cb, void *priv, int timeout, int fd) |
| static void | ubus_notify_complete_cb (struct ubus_request *req, int ret) |
| static void | ubus_notify_data_cb (struct ubus_request *req, int type, struct blob_attr *msg) |
| static int | __ubus_notify_async (struct ubus_context *ctx, struct ubus_object *obj, const char *type, struct blob_attr *msg, struct ubus_notify_request *req, bool reply) |
| int | ubus_notify_async (struct ubus_context *ctx, struct ubus_object *obj, const char *type, struct blob_attr *msg, struct ubus_notify_request *req) |
| int | ubus_notify (struct ubus_context *ctx, struct ubus_object *obj, const char *type, struct blob_attr *msg, int timeout) |
| static bool | ubus_get_status (struct ubus_msghdr_buf *buf, int *ret) |
| static int | ubus_process_req_status (struct ubus_request *req, struct ubus_msghdr_buf *buf) |
| static void | ubus_process_req_data (struct ubus_request *req, struct ubus_msghdr_buf *buf) |
| static int | ubus_find_notify_id (struct ubus_notify_request *n, uint32_t objid) |
| static struct ubus_request * | ubus_find_request (struct ubus_context *ctx, uint32_t seq, uint32_t peer, int *id) |
| static void | ubus_process_notify_status (struct ubus_request *req, int id, struct ubus_msghdr_buf *buf) |
| void __hidden | ubus_process_req_msg (struct ubus_context *ctx, struct ubus_msghdr_buf *buf, int fd) |
| int | __ubus_monitor (struct ubus_context *ctx, const char *type) |
| int __ubus_monitor | ( | struct ubus_context * | ctx, |
| const char * | type | ||
| ) |
Definition at line 495 of file libubus-req.c.

|
static |
Definition at line 277 of file libubus-req.c.


|
static |
Definition at line 41 of file libubus-req.c.


| int __hidden __ubus_start_request | ( | struct ubus_context * | ctx, |
| struct ubus_request * | req, | ||
| struct blob_attr * | msg, | ||
| int | cmd, | ||
| uint32_t | peer | ||
| ) |
Definition at line 53 of file libubus-req.c.


|
static |
|
static |
Definition at line 24 of file libubus-req.c.


| void ubus_abort_request | ( | struct ubus_context * | ctx, |
| struct ubus_request * | req | ||
| ) |
Definition at line 80 of file libubus-req.c.


| void ubus_complete_deferred_request | ( | struct ubus_context * | ctx, |
| struct ubus_request_data * | req, | ||
| int | ret | ||
| ) |
Definition at line 189 of file libubus-req.c.


| int ubus_complete_request | ( | struct ubus_context * | ctx, |
| struct ubus_request * | req, | ||
| int | req_timeout | ||
| ) |
Definition at line 140 of file libubus-req.c.


| void ubus_complete_request_async | ( | struct ubus_context * | ctx, |
| struct ubus_request * | req | ||
| ) |
|
static |
|
static |
Definition at line 398 of file libubus-req.c.


|
static |
Definition at line 329 of file libubus-req.c.


| int ubus_invoke_async_fd | ( | struct ubus_context * | ctx, |
| uint32_t | obj, | ||
| const char * | method, | ||
| struct blob_attr * | msg, | ||
| struct ubus_request * | req, | ||
| int | fd | ||
| ) |
Definition at line 220 of file libubus-req.c.


| int ubus_invoke_fd | ( | struct ubus_context * | ctx, |
| uint32_t | obj, | ||
| const char * | method, | ||
| struct blob_attr * | msg, | ||
| ubus_data_handler_t | cb, | ||
| void * | priv, | ||
| int | timeout, | ||
| int | fd | ||
| ) |
Definition at line 236 of file libubus-req.c.


| int ubus_notify | ( | struct ubus_context * | ctx, |
| struct ubus_object * | obj, | ||
| const char * | type, | ||
| struct blob_attr * | msg, | ||
| int | timeout | ||
| ) |
Definition at line 311 of file libubus-req.c.


| int ubus_notify_async | ( | struct ubus_context * | ctx, |
| struct ubus_object * | obj, | ||
| const char * | type, | ||
| struct blob_attr * | msg, | ||
| struct ubus_notify_request * | req | ||
| ) |
|
static |
|
static |
|
static |
Definition at line 424 of file libubus-req.c.


|
static |
Definition at line 353 of file libubus-req.c.


| void __hidden ubus_process_req_msg | ( | struct ubus_context * | ctx, |
| struct ubus_msghdr_buf * | buf, | ||
| int | fd | ||
| ) |
Definition at line 462 of file libubus-req.c.


|
static |
Definition at line 341 of file libubus-req.c.


|
static |
|
static |
| int ubus_send_reply | ( | struct ubus_context * | ctx, |
| struct ubus_request_data * | req, | ||
| struct blob_attr * | msg | ||
| ) |
Definition at line 205 of file libubus-req.c.


|
static |
Definition at line 111 of file libubus-req.c.


| int __hidden ubus_start_request | ( | struct ubus_context * | ctx, |
| struct ubus_request * | req, | ||
| struct blob_attr * | msg, | ||
| int | cmd, | ||
| uint32_t | peer | ||
| ) |
Definition at line 69 of file libubus-req.c.


|
static |