Changeset 7fff5eab in mainline for uspace/srv/vfs/vfs_lookup.c


Ignore:
Timestamp:
2008-01-08T20:38:59Z (17 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
67f63c4
Parents:
752ccee
Message:

Management of the cached VFS node size.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/vfs/vfs_lookup.c

    r752ccee r7fff5eab  
    5757 * @param len           Number of path characters pointed by path.
    5858 * @param result        Empty node structure where the result will be stored.
     59 * @param size          Storage where the size of the node will be stored. Can
     60 *                      be NULL.
    5961 * @param altroot       If non-empty, will be used instead of rootfs as the root
    6062 *                      of the whole VFS tree.
     
    6365 */
    6466int vfs_lookup_internal(char *path, size_t len, vfs_triplet_t *result,
    65     vfs_pair_t *altroot)
     67    size_t *size, vfs_pair_t *altroot)
    6668{
    6769        vfs_pair_t *root;
     
    166168                result->dev_handle = (int) IPC_GET_ARG2(answer);
    167169                result->index = (int) IPC_GET_ARG3(answer);
     170                if (size)
     171                        *size = (size_t) IPC_GET_ARG4(answer);
    168172        }
    169173
Note: See TracChangeset for help on using the changeset viewer.