MCPcopy Index your code
hub / github.com/LibertyOS-Development/kernel / fh

Function fh

src/sys/proc.rs:308–313  ·  view source on GitHub ↗

File handle

(handle: usize)

Source from the content-addressed store, hash-verified

306
307// File handle
308pub fn fh(handle: usize) -> Option<Resource>
309{
310 let tab = PROCTAB.read();
311 let proc = &tab[id()];
312 proc.data.filehandle[handle].clone()
313}
314
315
316// Delete file handle

Callers 3

dpFunction · 0.85
rdFunction · 0.85
wrFunction · 0.85

Calls 2

idFunction · 0.85
readMethod · 0.45

Tested by

no test coverage detected