Функция чтения.
ssize_t scull_read ( struct file *file, char __user *buf, size_t count, loff_t *pos)
{
char *data = kmalloc ( 5, GFP_USER);
copy_to_user ( buf, data, 5 );
kfree ( data );
}
Функция чтения.
ssize_t scull_read ( struct file *file, char __user *buf, size_t count, loff_t *pos)
{
char *data = kmalloc ( 5, GFP_USER);
copy_to_user ( buf, data, 5 );
kfree ( data );
}