mirror of
https://github.com/systemd/systemd.git
synced 2025-01-12 13:18:14 +03:00
ee1db00d07
Here is the '-h' and a '-d' to dump the whole database: kay@pim:~/src/udev.kay$ ./udev -d P: /block/hdb/hdb1 N: hdb1 S: O: G: P: /class/video4linux/video0 N: video/webcam0 S: camera0 kamera0 O: 500 G: 500 P: /block/hdc N: hdc S: O: G:
22 lines
662 B
C
22 lines
662 B
C
/*
|
|
* udevdb header file
|
|
*/
|
|
#ifndef _UDEVDB_H_
|
|
#define _UDEVDB_H_
|
|
|
|
/* Udevdb initialization flags */
|
|
#define UDEVDB_DEFAULT 0 /* defaults database to use file */
|
|
#define UDEVDB_INTERNAL 1 /* don't store db on disk, use in memory */
|
|
|
|
/* function prototypes */
|
|
extern void udevdb_exit(void);
|
|
extern int udevdb_init(int init_flag);
|
|
extern int udevdb_open_ro(void);
|
|
extern int udevdb_dump(void (*user_record_handler) (char *path, struct udevice *dev));
|
|
|
|
extern int udevdb_add_dev(const char *path, const struct udevice *dev);
|
|
extern int udevdb_get_dev(const char *path, struct udevice *dev);
|
|
extern int udevdb_delete_dev(const char *path);
|
|
|
|
#endif /* _UDEVDB_H_ */
|