>> Edit article
이름
제목
패스워드
리눅스 디바이스 드라이버중에 scull_open함수를 구현한얘는 얘밖에 없는데 scull_open 으로 넘어간 인자들은 어떻게이해를 해야 하죠? (struct inode *inode, struct file *filp) inode 와 filp 는 어디서 어떻게 갖고오는건가요? 그리고 아래와 같은 문법을 어떻게 이해를 해야 하죠? llseek: scull_llseek, 이게뭐죠????쩝쩝.. struct file_operations scull_fops = { llseek: scull_llseek, read: scull_read, write: scull_write, ioctl: scull_ioctl, open: scull_open, release: scull_release, }; int scull_open(struct inode *inode, struct file *filp)
Copyleft
1999-2026 by
JSBoard Open Project
Theme Designed by
IDOO
All right reserved