Home
last modified time | relevance | path

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

/linux-6.1.9/tools/hv/
Dhv_kvp_daemon.c119 static struct kvp_file_state kvp_file_info[KVP_POOL_COUNT]; variable
126 if (fcntl(kvp_file_info[pool].fd, F_SETLKW, &fl) == -1) { in kvp_acquire_lock()
138 if (fcntl(kvp_file_info[pool].fd, F_SETLK, &fl) == -1) { in kvp_release_lock()
155 filep = fopen(kvp_file_info[pool].fname, "we"); in kvp_update_file()
163 fwrite(kvp_file_info[pool].records, sizeof(struct kvp_record), in kvp_update_file()
164 kvp_file_info[pool].num_records, filep); in kvp_update_file()
179 struct kvp_record *record = kvp_file_info[pool].records; in kvp_update_mem_state()
181 int num_blocks = kvp_file_info[pool].num_blocks; in kvp_update_mem_state()
186 filep = fopen(kvp_file_info[pool].fname, "re"); in kvp_update_mem_state()
224 kvp_file_info[pool].num_blocks = num_blocks; in kvp_update_mem_state()
[all …]