Skip to content

Commit

Permalink
Second attempt of assignment 8
Browse files Browse the repository at this point in the history
  • Loading branch information
yinwenjie committed Jan 17, 2025
1 parent 85ecef8 commit 208d819
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions aesd-char-driver/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
#include <linux/types.h>
#include <linux/cdev.h>
#include <linux/fs.h> // file_operations
#include <linux/slab.h>
#include "aesdchar.h"
int aesd_major = 0; // use dynamic major
int aesd_minor = 0;
Expand Down Expand Up @@ -53,6 +54,7 @@ int aesd_release(struct inode *inode, struct file *filp)
ssize_t aesd_read(struct file *filp, char __user *buf, size_t count,
loff_t *f_pos)
{
ssize_t retval = 0;
struct aesd_dev *dev = filp->private_data;
size_t entry_offset;
struct aesd_buffer_entry *entry;
Expand Down

0 comments on commit 208d819

Please sign in to comment.