driver: add note when driver registers
Signed-off-by: Xu Xingliang <xuxingliang@xiaomi.com>
This commit is contained in:
parent
3a4c2cea55
commit
85a7b94a2e
@ -28,6 +28,7 @@
|
|||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
|
|
||||||
#include <nuttx/fs/fs.h>
|
#include <nuttx/fs/fs.h>
|
||||||
|
#include <nuttx/sched_note.h>
|
||||||
|
|
||||||
#include "inode/inode.h"
|
#include "inode/inode.h"
|
||||||
|
|
||||||
@ -65,6 +66,8 @@ int register_driver(FAR const char *path,
|
|||||||
FAR struct inode *node;
|
FAR struct inode *node;
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
|
sched_note_mark(NOTE_TAG_DRIVERS, path);
|
||||||
|
|
||||||
/* Insert a dummy node -- we need to hold the inode semaphore because we
|
/* Insert a dummy node -- we need to hold the inode semaphore because we
|
||||||
* will have a momentarily bad structure.
|
* will have a momentarily bad structure.
|
||||||
*/
|
*/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user