Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changes between Version 10 and Version 11 of FSDesign


Ignore:
Timestamp:
2009-07-23T20:20:05Z (10 years ago)
Author:
Jakub Jermář
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • FSDesign

    v10 v11  
    4242opened files, and in some special cases also VFS triplets (see below).
    4343
     44=== Paths as Arguments ===
     45
    4446If the argument is a file path, VFS uses the ''vfs_lookup_internal()'' function to
    4547translate the path into the so called lookup result represented by the ''vfs_lookup_res_t''
     
    6163node, for which there is the ''vfs_node_t'' type. Thus, a VFS node represents
    6264some file which is referenced by VFS. VFS nodes are the first class entities
    63 in the VFS server, because in most operations, a VFS node must be instantiated.
     65in the VFS server, because for most operations it needs to have the VFS node.
    6466
    6567The VFS server calls the ''vfs_node_get()'' function in order to get a VFS node
     
    9193The example is simplified and does not show all the details (e.g. it omits all synchronization), but it shows the main idea. Note the trailing ''vfs_node_put()'' function which drops a reference to a VFS node. If the last reference is dropped from a node, ''vfs_node_put()'' removes it from the hash table and cleans it up.
    9294
     95=== Handles as Arguments ===