mirror of
https://github.com/apache/nuttx.git
synced 2026-08-01 20:28:58 +00:00
driver: add note when driver registers
Signed-off-by: Xu Xingliang <xuxingliang@xiaomi.com>
This commit is contained in:
parent
3a4c2cea55
commit
85a7b94a2e
1 changed files with 3 additions and 0 deletions
|
|
@ -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.
|
||||
*/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue