Cleaned up, finished? w15 slides

This commit is contained in:
Zhengyi Chen 2024-01-31 17:10:53 +00:00
parent b8904cd213
commit 904216dc58
23 changed files with 110 additions and 1751 deletions

View file

@ -263,6 +263,8 @@ static int my_shmem_fops_release(struct inode *inode, struct file *filp)
return 0;
}
// static int my_shmem_fops_ioctl(struct file *filp, uint cmd, ulong arg);
// static int my_shmem_fops_fsync(
// struct file *filp, loff_t bgn_off, loff_t end_off, int datasync)
// {
@ -274,6 +276,8 @@ static const struct file_operations my_shmem_fops = {
.owner = THIS_MODULE,
.open = my_shmem_fops_open,
.mmap = my_shmem_fops_mmap,
// .unlocked_ioctl = my_shmem_fops_ioctl,
// .compat_ioctl = compat_ptr_ioctl,
.release = my_shmem_fops_release,
};