I'm developing a kernel module. I'm trying to develop my own unlink function in order to apply some filters in the kernel. However, whenever i try to invoke the function namei(), i get a kernel panic. In my first steps, i'm almost copying the kernel source code of the syscall unlink and the function namei is one of the first functions that are called.
Furthermore, I have tried to find the source code of the function namei, and i've not found it.
Therefore, can I use that function? does anyone know why i always enter in kernel panic?
I'm building a kernel extension module (kext) with Xcode Project.I'm trying to create a backup of all the files that are deleted in the system. My idea is whenever an unlink syscall is called, i could create a new link. The problem is that i don't know how to use the namei function.
is there a .c file where i can find the source code? In my kext, when i call to the namei() function, a kernel panic appears. Therefore, does it mean that i can't use that function?
i also try to find the content of the vnode_t struct and i also do not have success.
If you don't know the answer why you write the first you think. i have written some questions and you have not been helpful with your answers. So please, take a rest and if you want to help, start again reading the forum.
If you don't know what parameters to pass to a function then why do you call it with garbage and expect it to do anything other than crash? Nobody can tell you what you're doing wrong because you haven't told anyone what it is you're actually doing.
This thread has been closed by the system or the community team.
You may vote for any posts you find helpful, or search the Community for additional answers.
namei kernel function
Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.