File_operations

pchero on March 23rd, 2008

struct file_operations {    struct module *owner;    // llseek 메소드는 파일에서 현재의 read/write의 위치를 옮기며, 새로운 위치가 (양수)값으로 리턴된다. 에러는 음수값으로 반환된다.    loff_ (*llseek) (struct file *, loff_t, int);    // read 메소드는 디바이스에서 데이터를 가져오기 위해서 사용한다. 여기에 NULL 값을 사용하면 read 시스템 콜은 -EINVAL(“잘못된 매개 변수”)값을 돌려 주며 실패한다. 음수값이 아닌 […]

Continue reading about file_operations 구조체 원형