diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2015-12-10 09:31:02 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2016-01-08 08:30:55 +0100 |
commit | 8a35fddf572578eea4846aa440d3caba31f3cc37 (patch) | |
tree | f82987667b56c3ea4403161f4187a9d1f8deb7bb /include/driver.h | |
parent | 3cff8948ff5d2d4dc834bdc955684b73571713bd (diff) | |
download | barebox-8a35fddf572578eea4846aa440d3caba31f3cc37.tar.gz barebox-8a35fddf572578eea4846aa440d3caba31f3cc37.tar.xz |
devfs: Add symlink support
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include/driver.h')
-rw-r--r-- | include/driver.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/driver.h b/include/driver.h index 046dd9079d..31c673452f 100644 --- a/include/driver.h +++ b/include/driver.h @@ -450,13 +450,18 @@ struct cdev { int open; struct mtd_info *mtd; u8 dos_partition_type; + struct cdev *link; + struct list_head link_entry, links; }; int devfs_create(struct cdev *); +int devfs_create_link(struct cdev *, const char *name); int devfs_remove(struct cdev *); int cdev_find_free_index(const char *); struct cdev *device_find_partition(struct device_d *dev, const char *name); struct cdev *cdev_by_name(const char *filename); +struct cdev *lcdev_by_name(const char *filename); +struct cdev *cdev_readlink(struct cdev *cdev); struct cdev *cdev_by_device_node(struct device_node *node); struct cdev *cdev_open(const char *name, unsigned long flags); int cdev_do_open(struct cdev *, unsigned long flags); |