|
|
< Previous PageNext Page > |
In Mac OS X, the vnode structure provides the internal representation of a file or directory (folder). There is a unique vnode allocated for each active file or folder, including the root.
Within a file system, operations on specific files and directories are implemented via vnodes and VOP (vnode operation) calls. VOP calls are used for operations on individual files or directories (such as open, close, read, or write). Examples include VOP_OPEN
to open a file and VOP_READ
to read file contents.
In contrast, file-system–wide operations are implemented using VFS calls. VFS calls are primarily used for operations on entire file systems; examples include VFS_MOUNT
and VFS_UNMOUNT
to mount or unmount a file system, respectively. File-system writers need to provide stubs for each of these sets of calls.
< Previous PageNext Page > |
Last updated: 2006-11-07
|
Get information on Apple products.
Visit the Apple Store online or at retail locations. 1-800-MY-APPLE Copyright © 2007 Apple Inc. All rights reserved. | Terms of use | Privacy Notice |