Is it possible to write more than one character (say like a whole string to the driver sysfs interface from the user application) e.g I have input class subsystem driver , whose get_command sysfs I have defined as one of the attribute and can see in the /sys/class/input/my_driver/ Can I send a string of command - "09288011" pattern to it via user application.Generally we do echo X > get_command at the command bash level but how can we write a pattern to the sysfs?
is there any special name for this?
Syfs creation is done by this :
static DEVICE_ATTR(my_sysfs, 0666, my_driver_show, my_driver_store);
both store and save are like this :
static ssize_t my_driver_XX(struct device *dev,
struct device_attribute *attr,
const char *buff, size_t count)