driver: add note when driver registers

Signed-off-by: Xu Xingliang <xuxingliang@xiaomi.com>
This commit is contained in:
Xu Xingliang
2024-05-01 10:59:52 +08:00
committed by Xiang Xiao
parent 3a4c2cea55
commit 85a7b94a2e
+3
View File
@@ -28,6 +28,7 @@
#include <errno.h>
#include <nuttx/fs/fs.h>
#include <nuttx/sched_note.h>
#include "inode/inode.h"
@@ -65,6 +66,8 @@ int register_driver(FAR const char *path,
FAR struct inode *node;
int ret;
sched_note_mark(NOTE_TAG_DRIVERS, path);
/* Insert a dummy node -- we need to hold the inode semaphore because we
* will have a momentarily bad structure.
*/