]>
git.ipfire.org Git - thirdparty/systemd.git/blob - udevdb.h
7 /* Udevdb initialization flags */
8 #define UDEVDB_DEFAULT 0 /* defaults database to use file */
9 #define UDEVDB_INTERNAL 1 /* don't store db on disk, use in memory */
11 /* function prototypes */
12 extern void udevdb_exit(void);
13 extern int udevdb_init(int init_flag
);
14 extern int udevdb_open_ro(void);
15 extern int udevdb_call_foreach(int (*user_record_handler
) (const char *path
, struct udevice
*dev
));
17 extern int udevdb_add_dev(struct udevice
*dev
);
18 extern int udevdb_get_dev(const char *path
, struct udevice
*dev
);
19 extern int udevdb_delete_dev(const char *path
);
20 extern int udevdb_get_dev_byname(const char *name
, char *path
, struct udevice
*dev
);
22 #endif /* _UDEVDB_H_ */