diff options
author | kay.sievers@vrfy.org <kay.sievers@vrfy.org> | 2005-02-09 04:37:32 +0100 |
---|---|---|
committer | Greg KH <gregkh@suse.de> | 2005-04-26 23:27:32 -0700 |
commit | c1ab046124ebef3c82950b91ccfd1678d9f7fe5b (patch) | |
tree | 1b160f9cba6681028f8993ca723300611172b133 /udev_add.c | |
parent | bce52be81ec679bf080bb11f292c899d9fde084e (diff) |
[PATCH] provide temporary device node for callouts to access the device
%N will create a temporary node for a callout a be sustituted with the
name of the node.
Diffstat (limited to 'udev_add.c')
-rw-r--r-- | udev_add.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/udev_add.c b/udev_add.c index 24a20bba9b..a495902ab2 100644 --- a/udev_add.c +++ b/udev_add.c @@ -67,7 +67,7 @@ error: return -1; } -static int make_node(struct udevice *udev, char *file, int major, int minor, unsigned int mode, uid_t uid, gid_t gid) +int udev_make_node(struct udevice *udev, const char *file, int major, int minor, mode_t mode, uid_t uid, gid_t gid) { struct stat stats; int retval = 0; @@ -183,7 +183,7 @@ static int create_node(struct udevice *udev) if (!udev->test_run) { info("creating device node '%s'", filename); - if (make_node(udev, filename, udev->major, udev->minor, udev->mode, uid, gid) != 0) + if (udev_make_node(udev, filename, udev->major, udev->minor, udev->mode, uid, gid) != 0) goto error; } else { info("creating device node '%s', major = '%d', minor = '%d', " @@ -198,7 +198,7 @@ static int create_node(struct udevice *udev) for (i = 1; i <= udev->partitions; i++) { strfieldcpy(partitionname, filename); strintcat(partitionname, i); - make_node(udev, partitionname, udev->major, udev->minor + i, udev->mode, uid, gid); + udev_make_node(udev, partitionname, udev->major, udev->minor + i, udev->mode, uid, gid); } } } |