summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorPatrick Mochel <mochel@osdl.org>2002-07-30 05:43:45 -0700
committerPatrick Mochel <mochel@osdl.org>2002-07-30 05:43:45 -0700
commita9ae3e34951d8f719190ce50c991b3ec815c7d0d (patch)
tree782d3ffbc9f99a746e7dad5612571b8df417403f /include/linux
parent6e0b96cecb3c4c7cb05407258e721c6c8d17c659 (diff)
device symlinks: just pass name, not struct driver_file_entry to driverfs_create_symlink
symlinks now only use the name field of the struct driver_file_entry, so instead of allocating a new one each time we want to create one, this changes the API to only accept the name (since the driverfs core will never use the other fields either) This also guarantees that we won't leak the memory for the entry when the device goes away: Since the other entries aren't dynamically allocated, and driverfs doesn't free them, we would have to free them ourselves. It's not really necessary, so this is another win for us.
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/driverfs_fs.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/include/linux/driverfs_fs.h b/include/linux/driverfs_fs.h
index 64783095cc9a..758dc23f09f6 100644
--- a/include/linux/driverfs_fs.h
+++ b/include/linux/driverfs_fs.h
@@ -54,8 +54,7 @@ driverfs_create_file(struct driver_file_entry * entry,
extern int
driverfs_create_symlink(struct driver_dir_entry * parent,
- struct driver_file_entry * entry,
- char * target);
+ char * name, char * target);
extern void
driverfs_remove_file(struct driver_dir_entry *, const char * name);