MCPcopy Create free account
hub / github.com/Singular/Singular / unlock_file

Function unlock_file

kernel/oswrapper/vspace.cc:307–311  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

305}
306
307void unlock_file(int fd, size_t offset, size_t len) {
308 struct flock lock_info;
309 init_flock_struct(lock_info, offset, len, false);
310 fcntl(fd, F_SETLKW, &lock_info);
311}
312
313void lock_metapage() {
314 lock_file(vmem.fd, 0);

Callers 5

unlockMethod · 0.85
unlock_metapageFunction · 0.85
unlock_processFunction · 0.85
unlockMethod · 0.85
unlockMethod · 0.85

Calls 1

init_flock_structFunction · 0.85

Tested by

no test coverage detected