How can I create a buffer in linux kernel without malloc() function (or calloc()) and clean buffer without free() function?
How can I create a buffer in linux kernel without malloc() function (or calloc()
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You cannot use standard c library functions like
malloc()orcalloc()inside the kernel, The code you write in kernel links to the functionality provided by the kernel itself.You can use kmalloc() & then free it with kfree().