module에서 외부 프로그램 실행 되나요?

soo20987의 이미지

usb디바이스가 detect 되면 외부 프로그램을 실행 하고 싶은데요..

usb 모듈 소스에서 detect하소 attach 하는 부분 찾아서 system() 으로 외부 프로그램

실행 하려니 컴파일은 되지만, 모듈 인스톨이 안되는 군용 ㅎㅎ;;;

insmod: error inserting 'ftdi_sio.ko': -1 Unknown symbol in module

모듈 프로그램에서 외부 프로그램 실행하는 방법이 없을까요?

도와 주세용

prether의 이미지

call_usermodehelper()
사용을 생각해보시죠. 단 process context에서만 불릴 수 있습니다.

/***************************************
Being the one is just like being in love.
***************************************/

/***************************************
Being the one is just like being in love.
***************************************/