lib: fs: implement file cleanup using disconnect and detach events

This commit is contained in:
2026-03-24 20:25:13 +00:00
parent dade9fa81f
commit 329829c0e9
4 changed files with 102 additions and 12 deletions

View File

@@ -9,6 +9,9 @@
#include <fs/inode.h>
struct fs_file {
/* reference count includes the file descriptor, and any vm-objects
* attached to the file */
unsigned int f_ref;
/* id of the open file, equal to the koid of the port being used to
* access the file */
unsigned long f_id;