Changeset f57f8ea in mainline for uspace/srv/vfs/vfs.h


Ignore:
Timestamp:
2008-01-02T20:25:24Z (16 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
9413c0d
Parents:
215e375
Message:

Rename unlink_futex to namespace_futex and introduce a new futex for serializing
concurrent access to a VFS node's contents by multiple clients.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/vfs/vfs.h

    r215e375 rf57f8ea  
    135135        unsigned refcnt;        /**< Usage counter. */
    136136        link_t nh_link;         /**< Node hash-table link. */
     137
     138        /** Holding this futex prevents modifications of the node's contents. */
     139        atomic_t contents_futex;
    137140} vfs_node_t;
    138141
     
    170173extern link_t plb_head;         /**< List of active PLB entries. */
    171174
    172 extern atomic_t unlink_futex;   /**< VFS_{CREATE|OPEN|UNLINK} serialization. */
     175/** Holding this futex prevents extern changes in file system namespace. */
     176atomic_t namespace_futex;
    173177
    174178extern int vfs_grab_phone(int);
Note: See TracChangeset for help on using the changeset viewer.