Lines Matching refs:hset
190 int tipc_hset_init(struct tipc_hset* hset) { in tipc_hset_init() argument
193 assert(!IS_ERR(hset) && hset); in tipc_hset_init()
195 hset->handle = INVALID_IPC_HANDLE; in tipc_hset_init()
201 hset->handle = (handle_t)rc; in tipc_hset_init()
209 struct tipc_hset* hset; in tipc_hset_create() local
211 hset = malloc(sizeof(struct tipc_hset)); in tipc_hset_create()
212 if (!hset) in tipc_hset_create()
215 int rc = tipc_hset_init(hset); in tipc_hset_create()
217 free(hset); in tipc_hset_create()
221 return hset; in tipc_hset_create()
227 int tipc_hset_add_entry(struct tipc_hset* hset, in tipc_hset_add_entry() argument
237 if (IS_ERR(hset) || !hset || !evt_handler) in tipc_hset_add_entry()
243 return handle_set_ctrl(hset->handle, HSET_ADD, &uevt); in tipc_hset_add_entry()
249 int tipc_hset_mod_entry(struct tipc_hset* hset, in tipc_hset_mod_entry() argument
259 if (IS_ERR(hset) || !hset || !evt_handler) in tipc_hset_mod_entry()
265 return handle_set_ctrl(hset->handle, HSET_MOD, &uevt); in tipc_hset_mod_entry()
271 int tipc_hset_remove_entry(struct tipc_hset* hset, handle_t h) { in tipc_hset_remove_entry() argument
278 if (IS_ERR(hset) || !hset) in tipc_hset_remove_entry()
282 return handle_set_ctrl(hset->handle, HSET_DEL, &uevt); in tipc_hset_remove_entry()
285 int tipc_handle_event(struct tipc_hset* hset, uint32_t timeout) { in tipc_handle_event() argument
289 if (IS_ERR(hset) || !hset) in tipc_handle_event()
293 rc = wait(hset->handle, &evt, timeout); in tipc_handle_event()
306 int tipc_run_event_loop(struct tipc_hset* hset) { in tipc_run_event_loop() argument
310 rc = tipc_handle_event(hset, INFINITE_TIME); in tipc_run_event_loop()