To handle a sysfs
read I need to create a show
function which is added to a kobj_attribute
structure. The prototype of the function is defined as:
ssize_t (*show)(struct kobject *kobj, struct kobj_attribute *attr,
char *buf);
Obviously I need to write data to the buf
parameter, but what is the upper limit of the number of bytes which can be written? Is it defined anywhere?