namei kernel function

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?


Thanks in advance

Mac Mini Mac Book, Mac OS X (10.5.4)

Posted on Jun 26, 2009 5:44 AM

Reply
7 replies

Jun 29, 2009 12:57 AM in response to RanjeetJones

http://www.opensource.apple.com/source/xnu/xnu-792.13.8/bsd/sys/namei.h

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.

Thanks in advance!

Message was edited by: eval

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.