[완료]kernel 에서 application 종료 방법.

mayaabba의 이미지

device driver 내부에서

사용자 영역 어플을 종료할 수 있는 함수가 있나요?

그러니까 call_usermodehelper 와 반대되는 함수요.

혹시 아시는분 도움 부탁드립니다.

mithrandir의 이미지

force_sig 란게 있네요.

/*
 * Force a signal that the process can't ignore: if necessary
 * we unblock the signal and change any SIG_IGN to SIG_DFL.
 *
 * Note: If we unblock the signal, we always reset it to SIG_DFL,
 * since we do not want to have a signal handler that was blocked
 * be invoked when user space had explicitly blocked it.
 *
 * We don't want to have recursive SIGSEGV's etc, for example,
 * that is why we also clear SIGNAL_UNKILLABLE.
 */
int
force_sig_info(int sig, struct siginfo *info, struct task_struct *t)

언제나 삽질 - http://tisphie.net/typo/
프로그래밍 언어 개발 - http://langdev.net

언제나 삽질 - http://tisphie.net/typo/
프로그래밍 언어 개발 - http://langdev.net

mayaabba의 이미지

아..어제 하루 종일 이내용 찾고 있었는데 이런 함수가 있는 줄은 몰랐네요..

근데 어디서 찾으신 건지... 커널소스에서 찾으신 건가요?

mithrandir의 이미지

네.

언제나 삽질 - http://tisphie.net/typo/
프로그래밍 언어 개발 - http://langdev.net

언제나 삽질 - http://tisphie.net/typo/
프로그래밍 언어 개발 - http://langdev.net