커널 영역에서 사용자 함수를 호출할 수 있는 방법이 없을까요???
글쓴이: thewarparty / 작성시간: 토, 2011/04/16 - 2:04오전
주기 태스트를 위해서 커널 영역에서 사용자 함수를 호출을 해야 합니다.
하지만 시그널을 사용하였을 때 좋지 않은 결과가 나와서
시그널을 제외한 커널 영역에서 사용자 함수를 호출할 수 있는 방법을 찾고 있는데요...
어떻게 해야 할지 모르겠습니다.
많은 조언 부탁드립니다.
Forums:
커널에서 사용자 api 를 바로 호출할 수 있는
커널에서 사용자 api 를 바로 호출할 수 있는 방법은 없습니다.
대신 시그널 등을 이용해서 user app 에서 특정 api 를 호출하라는 식으로 작성하시거나
디바이스 드라이버에서 /proc 에 파일을 공개하여 user app 에서 감시하다가 값 바뀌면 api 호출해 주거나
char device driver 하나 만들어서 read(), ioctl() 등을 사용해서 통신하는 방법등이 있을 것 같습니다.
========================
조직 : E.L.D(Embedded Linux Developer/Designer)
블로그 : poplinux@tistory.com
카페 : cafe.naver.com/poplinux
임베디드 리눅스 관련 프리렌서 지향
이런 건?
kernel에서 usermode의 application을 호출하는 API에 대한 설명입니다.
http://www.ibm.com/developerworks/linux/library/l-user-space-apps/index.html
Summary: The Linux® system call interface permits user-space applications to invoke functionality in the kernel, but what about invoking user-space applications from the kernel? Explore the usermode-helper API, and learn how to invoke user-space applications and manipulate their output.
댓글 달기