2020-01-14 18:41:28 +01:00
|
|
|
#include <kernel/fs/vfs.h>
|
|
|
|
|
|
|
|
int vfs_close(FILE *file)
|
|
|
|
{
|
|
|
|
// Check error
|
|
|
|
if (file == NULL)
|
|
|
|
return (-1);
|
|
|
|
|
|
|
|
//TODO: call close primitive for device !
|
|
|
|
|
|
|
|
// Update internal dentry counter
|
2020-03-28 19:52:59 +01:00
|
|
|
((struct dentry*)file->private)->counter -= 1;
|
2020-01-14 18:41:28 +01:00
|
|
|
return (0);
|
|
|
|
}
|