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

Function fh_update

src/sys/proc.rs:346–351  ·  view source on GitHub ↗

Update file handle

(handle: usize, file: Resource)

Source from the content-addressed store, hash-verified

344
345// Update file handle
346pub fn fh_update(handle: usize, file: Resource)
347{
348 let mut tab = PROCTAB.write();
349 let proc = &mut tab[id()];
350 proc.data.filehandle[handle] = Some(file);
351}
352
353
354// ID

Callers 3

dpFunction · 0.85
rdFunction · 0.85
wrFunction · 0.85

Calls 2

idFunction · 0.85
writeMethod · 0.45

Tested by

no test coverage detected