libfs: separating closing a file descriptor from releasing a reference to the file itself

This commit is contained in:
2026-04-01 18:55:47 +01:00
parent 3a9539adbc
commit f6993553cd
2 changed files with 25 additions and 7 deletions
+1
View File
@@ -42,6 +42,7 @@ extern struct fs_file *fs_context_open_file(
extern struct fs_file *fs_context_get_file(
struct fs_context *ctx,
unsigned long id);
extern void fs_context_unref_file(struct fs_context *ctx, struct fs_file *f);
extern void fs_context_close_file(struct fs_context *ctx, struct fs_file *f);
extern enum fs_status fs_context_resolve_path(