Checking if a file exists from the kernel
Checking if a file exists from the kernel
- Subject: Checking if a file exists from the kernel
- From: David Rose <email@hidden>
- Date: Wed, 5 Dec 2007 10:41:30 -0800 (PST)
Hi,
I would like to know if it is possible to check if a file exists from a kernel
extension. The reason I am interested in doing this is because I am
creating a device in the /dev directory. Under Tiger this works fine, but in
Leopard my device name is truncated at the / using the
devfs_make_node function.
Calling devfs_make_node with the path "direct/file" results in the
node "/dev/direc/file" being created on Leopard and "/dev/direct/file"
on Tiger. I would then like to check for the existence of /dev/direct so
that I know If I have to code for a work around in my driver.
The open or stat call does not seem to be available to my kernel extension.
Thanks,
David Rose
____________________________________________________________________________________
Be a better friend, newshound, and
know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-kernel mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden