MCPcopy Create free account
hub / github.com/F-Stack/f-stack / lf_set_end

Function lf_set_end

freebsd/kern/kern_lockf.c:1188–1196  ·  view source on GitHub ↗

* Set the end of an existing active lock, updating dependencies and * adding any newly woken locks to 'granted'. */

Source from the content-addressed store, hash-verified

1186 * adding any newly woken locks to 'granted'.
1187 */
1188static void
1189lf_set_end(struct lockf *state, struct lockf_entry *lock, off_t new_end,
1190 struct lockf_entry_list *granted)
1191{
1192
1193 KASSERT(new_end <= lock->lf_end, ("can't increase lock"));
1194 lock->lf_end = new_end;
1195 lf_update_dependancies(state, lock, FALSE, granted);
1196}
1197
1198/*
1199 * Add a lock to the active list, updating or removing any current

Callers 2

lf_activate_lockFunction · 0.85
lf_splitFunction · 0.85

Calls 1

lf_update_dependanciesFunction · 0.85

Tested by

no test coverage detected