diff options
| author | Patrick Mochel <mochel@osdl.org> | 2003-01-09 04:41:35 -0600 |
|---|---|---|
| committer | Patrick Mochel <mochel@osdl.org> | 2003-01-09 04:41:35 -0600 |
| commit | 82cd7fff8d7411756775909f089d8b44f54018b9 (patch) | |
| tree | fbd8eb65c084f97e755158866cd1727c7c418b03 /include | |
| parent | 71074f8cd54cdeae46f26b8e5928fcea4380d1b3 (diff) | |
sysfs: remove count and off parameters from sysfs_ops methods.
The previous sysfs change implies that the show() and store() methods in
struct sysfs_ops are called only once, during the first read() or write().
This means that off is always 0, and count should always be PAGE_SIZE, to
fill or clear the entire buffer in one shot.
Therefore, those parameters can be removed from all attribute read/write
methods.
This changeset removes them from the definition and fixes sysfs to deal
with that appropriately.
Diffstat (limited to 'include')
| -rw-r--r-- | include/linux/sysfs.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/sysfs.h b/include/linux/sysfs.h index 29c3eb8d2c9e..b3cc047255b8 100644 --- a/include/linux/sysfs.h +++ b/include/linux/sysfs.h @@ -17,8 +17,8 @@ struct attribute { }; struct sysfs_ops { - ssize_t (*show)(struct kobject *, struct attribute *,char *, size_t, loff_t); - ssize_t (*store)(struct kobject *,struct attribute *,const char *, size_t, loff_t); + ssize_t (*show)(struct kobject *, struct attribute *,char *); + ssize_t (*store)(struct kobject *,struct attribute *,const char *); }; extern int |
