标签: linux-kernel operating-system filesystems
在用户空间中 FILE* fd1 = fopen("./log/log1.txt","r"); syscall(338, fd1);
FILE* fd1 = fopen("./log/log1.txt","r"); syscall(338, fd1);
我尝试了 SYSCALL_DEFINE1(get_class, struct file *, fd) 但是没用! 如何在内核系统中为fd1添加标签?
SYSCALL_DEFINE1(get_class, struct file *, fd)
fd1