MCPcopy Create free account
hub / github.com/LibertyOS-Development/kernel / fh_del

Function fh_del

src/sys/proc.rs:317–322  ·  view source on GitHub ↗

Delete file handle

(handle: usize)

Source from the content-addressed store, hash-verified

315
316// Delete file handle
317pub fn fh_del(handle: usize)
318{
319 let mut tab = PROCTAB.write();
320 let proc = &mut tab[id()];
321 proc.data.filehandle[handle] = None;
322}
323
324
325// Create a new file handle

Callers

nothing calls this directly

Calls 2

idFunction · 0.85
writeMethod · 0.45

Tested by

no test coverage detected