Re: Checking if a file exists from the kernel
site_archiver@lists.apple.com Delivered-To: darwin-kernel@lists.apple.com Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=INOORC19bNm0YxVS7EkpY3oudGzq50PYUnEQWdCGbeU=; b=pJXOVo1jhwnmDFoZGymmh6Il3B7Mk8yDARpuii7A+VVJ4zhwghbwKwjjN+3NhbxsnIyLKNolv9cI1v8NiqHn0n2WL1NMCAtAhZTjeuhZkLltcSw/qqynJdBLmS54SHGHicELEOgh7u2NKSQXf3Bq776daXlnuRoSeUMfisOtdVE= Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=XZOM27hbWZ0h6cariSyqOadlH8BlYKEccipGNLbLAVJLGGGTC2sIp3PZPxoyO5CETTZRvTNbmGHX+JEWeTFpBcKiTlu84Y7UJow7fODTq8nHorQQVyISOohnTNTUsramjsa5he3Lu9lF60yZKGMYzs44DKeBD5C2uOUzrIEY2vM= nm -pg /mach_kernel | grep VNOP Cheers! -mmw On Dec 5, 2007 10:41 AM, David Rose <david.rose43@yahoo.com> wrote:
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 (Darwin-kernel@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-kernel/openspecies%40gmail.com
This email sent to openspecies@gmail.com
-- echo zapydapntpd.rxltw@nzx | tr a-z@. p-za-o.@ _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-kernel mailing list (Darwin-kernel@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-kernel/site_archiver%40lists.a... This email sent to site_archiver@lists.apple.com
participants (1)
-
mm w