Searched refs:pool (Results 1 – 2 of 2) sorted by relevance
/tools/hv/ |
D | hv_kvp_daemon.c | 122 static void kvp_acquire_lock(int pool) in kvp_acquire_lock() argument 127 if (fcntl(kvp_file_info[pool].fd, F_SETLKW, &fl) == -1) { in kvp_acquire_lock() 128 syslog(LOG_ERR, "Failed to acquire the lock pool: %d; error: %d %s", pool, in kvp_acquire_lock() 134 static void kvp_release_lock(int pool) in kvp_release_lock() argument 139 if (fcntl(kvp_file_info[pool].fd, F_SETLK, &fl) == -1) { in kvp_release_lock() 140 syslog(LOG_ERR, "Failed to release the lock pool: %d; error: %d %s", pool, in kvp_release_lock() 146 static void kvp_update_file(int pool) in kvp_update_file() argument 155 kvp_acquire_lock(pool); in kvp_update_file() 157 filep = fopen(kvp_file_info[pool].fname, "we"); in kvp_update_file() 159 syslog(LOG_ERR, "Failed to open file, pool: %d; error: %d %s", pool, in kvp_update_file() [all …]
|
/tools/usb/usbip/libsrc/ |
D | names.c | 160 struct pool { struct 161 struct pool *next; argument 165 static struct pool *pool_head; argument 169 struct pool *p; in my_malloc() 171 p = calloc(1, sizeof(struct pool)); in my_malloc() 189 struct pool *pool; in names_free() local 194 for (pool = pool_head; pool != NULL; ) { in names_free() 195 struct pool *tmp; in names_free() 197 if (pool->mem) in names_free() 198 free(pool->mem); in names_free() [all …]
|