커널모듈에서 /proc/pid/stat 파일에 접근하는 방법은?

soulframe의 이미지

현재 테스트용 /proc관련 모듈을 작성을 했습니다.(insmod로 모듈 로딩함)

해당 모듈에서 /proc/pid/stat 파일에 접근을 해야하는데 접근할 수 있는 방법이 무엇이 있을까요?

꼭 파일로만 접근하는건 아닌 것 같은데 혹시나 아시는 분 답변 부탁드립니다. 감사합니다.

open() 시스템콜을 쓰면 아래와 같이 나옵니다.

[root@local test]# insmod proc.o
<span>proc.o: unresolved symbol open
proc.o: unresolved symbol read</span>
proc.o: 
Hint: You are trying to load a module without a GPL compatible license
      and it has unresolved symbols.  The module may be trying to access
      GPLONLY symbols but the problem is more likely to be a coding or
      user error.  Contact the module supplier for assistance, only they
      can help you.

그리고 fopen같은 것은 관련 헤더파일이 include되지 않아서 못쓰고 있구요...