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=BpPLE89msZB2vd3ovpwKVLa0sdOQ8CqvoXbxg2K39BE=; b=CcGVzm7CcsoOXRFmgxcbsQH1QyOBiJ4+XTlxeMJfXomja+dtmKQGvXGbN4ld+6dtDz sDiZffzIzdzIegttDDXJ/iuSJGcyzBdykJnS/UvLPTw2at1e4InVYRDDGnk23q9vq91f AYHa0HMR+Ap6MO2hChaXdxkw5JrPHlVC+p1+M= Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=rgSaRy/pLncydl2jlvDQQQxoIA+oFBY60nE+uRzXqlL+FsWT/sT0BgvjkjrzZEOQeC ufEsj/CXdX58HlndBvDW5JSTIvl2XfFzmO2gG/cpvNbROx8RF7nyDprN07kIS75JX4ae DQyRAj6ARagEhVJWFIgrrTBPKkkeaGP4HCpuI= Hi Greg, maybe if you could describe a bit your mechanism, you could have a right answer and some leads for a example why do you need the "type" of a VNODE, - do you receive a userspace file event? you 're only describing a small window, On Thu, Jul 24, 2008 at 9:41 AM, Greg <greg@kinostudios.com> wrote:
On Jul 24, 2008, at 1:16 AM, Terry Lambert wrote:
The command is "showallstacks". It won't exist unless you load the "kgmacros" package into gdb
Ah, thank you, and I apologize for not remembering that one. I've been going down a TODO list for my project and this one brought me back to the kernel side of it, something that I hadn't touched in a while...
The function is not provided for that purpose; the original purpose of the function being provided was to allow a mount point relookup and verification by vnode pointer for network file system clients to support mount -u. It is also internally used to obtain a vnode pointer that is held persistently for a long time when implementing shadow directories for support extended attributes on file systems that do not support them natively.
In general, if you search the mailing list archives, you are going to find a large number of posts explaining why kernel level file I/O is an incredibly bad idea. Most of the related posts will tell you how to better do what it is you are trying to do.
All I'm using it for is to determine whether a given path represents a directory or not, after which I immediately dispose of the vnode_t. This code runs infrequently as well, so hopefully this shouldn't be a "bad" use of the vnode API?
- Greg _______________________________________________ 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
-- -mmw _______________________________________________ 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