mirror of
https://github.com/yaakov-h/scream-driver.git
synced 2024-11-22 09:24:49 +00:00
style
This commit is contained in:
parent
bb8faf56b6
commit
32600e6dcb
1 changed files with 3 additions and 6 deletions
9
scream.c
9
scream.c
|
@ -36,20 +36,17 @@ static void __exit scream_module_exit(void) {
|
||||||
printk(KERN_INFO "[scream] done.\n");
|
printk(KERN_INFO "[scream] done.\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
static int scream_device_open(struct inode *inode, struct file *file)
|
static int scream_device_open(struct inode *inode, struct file *file) {
|
||||||
{
|
|
||||||
printk(KERN_INFO "[scream] Device open\n");
|
printk(KERN_INFO "[scream] Device open\n");
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int scream_device_release(struct inode *inode, struct file *file)
|
static int scream_device_release(struct inode *inode, struct file *file) {
|
||||||
{
|
|
||||||
printk(KERN_INFO "[scream] Device close\n");
|
printk(KERN_INFO "[scream] Device close\n");
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static ssize_t scream_device_read(struct file *file, char __user *buf, size_t count, loff_t *offset)
|
static ssize_t scream_device_read(struct file *file, char __user *buf, size_t count, loff_t *offset) {
|
||||||
{
|
|
||||||
uint8_t rand;
|
uint8_t rand;
|
||||||
|
|
||||||
for (size_t i = 0; i < count; i++)
|
for (size_t i = 0; i < count; i++)
|
||||||
|
|
Loading…
Reference in a new issue