d_lookup man page on Scientific

Man page or keyword search:  
man Server   26626 pages
apropos Keyword Search (all sections)
Output format
Scientific logo
[printable version]

D_LOOKUP(9)			 The Linux VFS			   D_LOOKUP(9)

NAME
       d_lookup - search for a dentry

SYNOPSIS
       struct dentry * d_lookup(struct dentry * parent, struct qstr * name);

ARGUMENTS
       parent
	   parent dentry

       name
	   qstr of name we wish to find

DESCRIPTION
       Searches the children of the parent dentry for the name in question. If
       the dentry is found its reference count is incremented and the dentry
       is returned. The caller must use dput to free the entry when it has
       finished using it.  NULL is returned on failure.

       __d_lookup is dcache_lock free. The hash list is protected using RCU.
       Memory barriers are used while updating and doing lockless traversal.
       To avoid races with d_move while rename is happening, d_lock is used.

       Overflows in memcmp, while d_move, are avoided by keeping the length
       and name pointer in one structure pointed by d_qstr.

       rcu_read_lock and rcu_read_unlock are used to disable preemption while
       lookup is going on.

       The dentry unused LRU is not updated even if lookup finds the required
       dentry in there. It is updated in places such as prune_dcache,
       shrink_dcache_sb, select_parent and __dget_locked. This laziness saves
       lookup from dcache_lock acquisition.

       d_lookup is protected against the concurrent renames in some unrelated
       directory using the seqlockt_t rename_lock.

COPYRIGHT
Kernel Hackers Manual 2.6.	 November 2013			   D_LOOKUP(9)
[top]

List of man pages available for Scientific

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net