Accessing the mode of a directory with its vnode and other questions
Accessing the mode of a directory with its vnode and other questions
- Subject: Accessing the mode of a directory with its vnode and other questions
- From: "John D." <email@hidden>
- Date: Fri, 21 Mar 2008 08:42:38 +0100
Hi,
I'm new on the list, hopefully I'll contribute and help around as much as I can. That said, I have a few issues with some code I'm working on.... ;(
I would like to know how to access the mode of a file system object (in this case, a directory) with only its vnode.
I don't have access out of the box to any vfs context nor extra data besides the vnode alone.
I believe I can retrieve an usable vfs context using vfs_context_current(), and then use vfs_getattr() but I can't figure out how exactly they should be used. I tried looking for FreeBSD specific documentation and reading the source a couple times, but looks like I might be missing some macro to initialize the ctx or attr variables.
Also, is there any function or macro to verify if a memory address is contained within the user-land stack address space?
Any cryptographic (specifically, hashing) functionality already implemented on kernel-land? (ie. if I wanted to calculate a SHA-256 of some in-kernel data).
Many thanks in advance!
cheers,
-- John.
_______________________________________________
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