USRLOC - Usrloc domain structure. More...
#include <stdio.h>#include "../../lib/kcore/statistics.h"#include "../../locking.h"#include "../../str.h"#include "../../lib/srdb1/db.h"#include "../usrloc/usrloc.h"#include "urecord.h"#include "hslot.h"#include "urecord.h"

Go to the source code of this file.
Definition in file modules_k/p_usrloc/udomain.h.
| int db_timer_udomain | ( | udomain_t * | _d | ) |
| _d | cleaned domain |
Definition at line 452 of file modules_k/p_usrloc/udomain.c.
| _d | domain where the record should be deleted | |
| _aor | address of record | |
| _r | deleted record |
Definition at line 684 of file modules_k/p_usrloc/udomain.c.
| void free_udomain | ( | udomain_t * | _d | ) |
| _d | freed domain |
Definition at line 152 of file modules_k/p_usrloc/udomain.c.
| _d | domain to search the record | |
| _aor | address of record | |
| _r | new created record |
Definition at line 645 of file modules_k/p_usrloc/udomain.c.
| _d | domain to insert the new record | |
| _aor | address of the record | |
| _r | new created record |
Definition at line 624 of file modules_k/p_usrloc/udomain.c.
Timer handler for given domain.
| _d | domain | |
| _aor | adress of record, used as hash source for the lock slot |
Definition at line 549 of file modules_k/p_usrloc/udomain.c.
| void lock_ulslot | ( | udomain_t * | _d, | |
| int | i | |||
| ) |
| _d | domain | |
| i | slot number |
Definition at line 589 of file modules_k/p_usrloc/udomain.c.
| _d | domain the record belongs to | |
| _r | deleted record |
Definition at line 505 of file modules_k/p_usrloc/udomain.c.
| _d | domain the record belongs to | |
| _aor | address of record | |
| _r | new created record |
Definition at line 484 of file modules_k/p_usrloc/udomain.c.
| void mem_timer_udomain | ( | udomain_t * | _d | ) |
| _d | domain |
Definition at line 517 of file modules_k/p_usrloc/udomain.c.
References urecord::contacts, lock_ulslot(), mem_delete_urecord(), urecord::next, udomain::size, udomain::table, timer_urecord(), and unlock_ulslot().
Referenced by synchronize_all_udomains().


| _n | is pointer to str representing name of the domain, the string is not copied, it should point to str structure stored in domain list | |
| _s | is hash table size | |
| _d | new created domain |
Definition at line 84 of file modules_k/p_usrloc/udomain.c.
| _d | domain | |
| _aor | address of record, uses as hash source for the lock slot |
Definition at line 570 of file modules_k/p_usrloc/udomain.c.
| void unlock_ulslot | ( | udomain_t * | _d, | |
| int | i | |||
| ) |
| _d | domain | |
| i | slot number |
Definition at line 605 of file modules_k/p_usrloc/udomain.c.
1.7.1