fd table 3과 fd table 4의 f_pos 를 확인해 보려고 다음과 같은 syscall function을 만들어 보았습니다.
asmlinkage void show_fpos(void)
{
printk("f_pos of fd=3: %lld\n", current->files->fdt->fd[3]->f_pos);
}
해당 source 를 linux-2.6.25.10/init/do_mounts.c 에서 작성하였구요
top directory 인 linux-2.6.25.10 에서 make 하니깐 아래와 같은 오류 메세지가 나타났습니다.
error: dereferencing pointer to incomplete type
dereferencing 이라는 단어 때문에 *(current->files->fdt->fd[3]->f_pos) 도 해 보았는데 같은 오류만 나타납니다.
그래서 선생님들께 여쭤봅니다..