static int do_devname(ctl_table *table, int write, struct file *filp, void *buffer, size_t *lenp) { int ret; ret = proc_dostring(table, write, filp, buffer, lenp); if (ret == 0 && write) { struct ias_value *val; val = irias_new_string_value(sysctl_devname); if (val) irias_object_change_attribute("Device", "DeviceName", val); } return ret; }
static int do_devname(struct ctl_table *table, int write, void __user *buffer, size_t *lenp, loff_t *ppos) { int ret; ret = proc_dostring(table, write, buffer, lenp, ppos); if (ret == 0 && write) { struct ias_value *val; val = irias_new_string_value(sysctl_devname); if (val) irias_object_change_attribute("Device", "DeviceName", val); } return ret; }