E
E
egorggegor2020-12-27 11:47:17
linux
egorggegor, 2020-12-27 11:47:17

Why could there be an error?

Hello everyone, I am writing a kernel module, using the kill_pid function, but the following error occurs:

error: implicit declaration of function ‘kill_pid’; did you mean ‘si_pid’? [-Werror=implicit-function-declaration]
   kill_pid(task_pid(current_pr), SIGCONT, 1);


Those who know, tell me what to do, I looked that this function is located in include/linux/sched/signal.h

Answer the question

In order to leave comments, you need to log in

1 answer(s)
H
hint000, 2020-12-27
@egorggegor

Add to code
#include <linux/sched/signal.h>

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question