~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~ [ freetext search ] ~ [ file search ] ~

Linux Cross Reference
Linux/fs/autofs/dir.c

Version: ~ [ 2.4.0 ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 /* -*- linux-c -*- --------------------------------------------------------- *
  2  *
  3  * linux/fs/autofs/dir.c
  4  *
  5  *  Copyright 1997-1998 Transmeta Corporation -- All Rights Reserved
  6  *
  7  * This file is part of the Linux kernel and is made available under
  8  * the terms of the GNU General Public License, version 2, or at your
  9  * option, any later version, incorporated herein by reference.
 10  *
 11  * ------------------------------------------------------------------------- */
 12 
 13 #include "autofs_i.h"
 14 
 15 /*
 16  * No entries except for "." and "..", both of which are handled by the VFS
 17  * layer. So all children are negative and dcache-based versions of operations
 18  * are OK.
 19  */
 20 static struct dentry *autofs_dir_lookup(struct inode *dir,struct dentry *dentry)
 21 {
 22         d_add(dentry, NULL);
 23         return NULL;
 24 }
 25 
 26 struct file_operations autofs_dir_operations = {
 27         read:           generic_read_dir,
 28         readdir:        dcache_readdir,
 29 };
 30 
 31 struct inode_operations autofs_dir_inode_operations = {
 32         lookup:         autofs_dir_lookup,
 33 };
 34 
 35 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~ [ freetext search ] ~ [ file search ] ~

This page was automatically generated by the LXR engine.
Visit the LXR main site for more information.