Home
last modified time | relevance | path

Searched refs:uctx (Results 1 – 5 of 5) sorted by relevance

/trusty/kernel/lib/trusty/include/lib/trusty/
Ductx.h33 struct uctx;
39 int uctx_create(void* priv, struct uctx** ctx);
40 void uctx_destroy(struct uctx* ctx);
41 void* uctx_get_priv(struct uctx* ctx);
42 struct uctx* current_uctx(void);
44 int uctx_handle_install(struct uctx* ctx,
47 int uctx_handle_remove(struct uctx* ctx,
50 int uctx_handle_get(struct uctx* ctx,
/trusty/kernel/lib/trusty/
Ductx.c62 struct uctx { struct
86 struct uctx* uctx; in _uctx_startup() local
88 int err = uctx_create(app, &uctx); in _uctx_startup()
92 trusty_als_set(app, _uctx_slot_id, uctx); in _uctx_startup()
99 struct uctx* uctx; in _uctx_shutdown() local
100 uctx = trusty_als_get(app, _uctx_slot_id); in _uctx_shutdown()
102 if (uctx) in _uctx_shutdown()
103 uctx_destroy(uctx); in _uctx_shutdown()
123 LK_INIT_HOOK(uctx, uctx_init, LK_INIT_LEVEL_APPS - 2);
128 struct uctx* current_uctx(void) { in current_uctx()
[all …]
Dipc_msg.c250 struct uctx* uctx) { in user_msg_write_locked() argument
278 rc = uctx_handle_get(uctx, ids[i], &item->handles[i]); in user_msg_write_locked()
305 struct uctx* uctx) { in msg_write_locked() argument
344 if (uctx) in msg_write_locked()
345 ret = user_msg_write_locked(mq, item, msg, uctx); in msg_write_locked()
532 struct uctx* uctx = current_uctx(); in sys_send_msg() local
540 ret = uctx_handle_get(uctx, handle_id, &chandle); in sys_send_msg()
548 ret = msg_write_locked(chan, &tmp_msg, uctx); in sys_send_msg()
685 static void user_remove_multiple(struct uctx* uctx, in user_remove_multiple() argument
689 uctx_handle_remove(uctx, hids[i], NULL); in user_remove_multiple()
[all …]
Drules.mk41 $(LOCAL_DIR)/uctx.c \
Dipc.c420 struct uctx* ctx = current_uctx(); in sys_port_create()
897 struct uctx* ctx = current_uctx(); in sys_connect()
1051 struct uctx* ctx = current_uctx(); in sys_accept()