1
0
Fork 0
mirror of https://github.com/yaakov-h/scream-driver.git synced 2024-11-22 09:24:49 +00:00
This commit is contained in:
Yaakov 2024-08-11 18:04:07 +10:00
parent bb8faf56b6
commit 32600e6dcb

View file

@ -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++)