next up previous contents index
Next: 7.5.1 lookup: Look up Up: 7 OSKit File System Previous: 7.4.6 getfs: Get the

7.5 oskit_dir: Directory Interface

 

The oskit_dir COM interface defines an interface for operating on a directory. The interface does not imply any per-open state; per-open methods are defined by the oskit_openfile COM interface.

The oskit_dir COM interface inherits from the oskit_file COM interface, and has the following additional methods:

lookup
Lookup a file in this directory.
create
Create a regular file in this directory.
link
Link a file into this directory.
unlink
Unlink a file from this directory.
rename
Rename a file from this directory.
mkdir
Create a directory in this directory.
rmdir
Remove a directory from this directory.
getdirentries
Read entries from this directory.
mknod
Create a special file in this directory.
symlink
Create a symlink in this directory.
reparent
Create a virtual directory from this directory.

Additionally, an oskit_dir object may export a oskit_absio COM interface; this may be determined by querying the object.

All name parameters to directory methods must be a single component, ie an entry in one of the specified directories. With the exception of rename, name parameters always refer to entries in the target directory itself.





University of Utah Flux Research Group