The Design and Implementation of the FreeBSD Operating System, Second Edition
Now available: The Design and Implementation of the FreeBSD Operating System (Second Edition)


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]

FreeBSD/Linux Kernel Cross Reference
sys/fs/autofs4/symlink.c

Version: -  FREEBSD  -  FREEBSD-13-STABLE  -  FREEBSD-13-0  -  FREEBSD-12-STABLE  -  FREEBSD-12-0  -  FREEBSD-11-STABLE  -  FREEBSD-11-0  -  FREEBSD-10-STABLE  -  FREEBSD-10-0  -  FREEBSD-9-STABLE  -  FREEBSD-9-0  -  FREEBSD-8-STABLE  -  FREEBSD-8-0  -  FREEBSD-7-STABLE  -  FREEBSD-7-0  -  FREEBSD-6-STABLE  -  FREEBSD-6-0  -  FREEBSD-5-STABLE  -  FREEBSD-5-0  -  FREEBSD-4-STABLE  -  FREEBSD-3-STABLE  -  FREEBSD22  -  l41  -  OPENBSD  -  linux-2.6  -  MK84  -  PLAN9  -  xnu-8792 
SearchContext: -  none  -  3  -  10 

    1 /* -*- c -*- --------------------------------------------------------------- *
    2  *
    3  * linux/fs/autofs/symlink.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 static int autofs4_readlink(struct dentry *dentry, char *buffer, int buflen)
   16 {
   17         struct autofs_info *ino = autofs4_dentry_ino(dentry);
   18 
   19         return vfs_readlink(dentry, buffer, buflen, ino->u.symlink);
   20 }
   21 
   22 static int autofs4_follow_link(struct dentry *dentry, struct nameidata *nd)
   23 {
   24         struct autofs_info *ino = autofs4_dentry_ino(dentry);
   25 
   26         return vfs_follow_link(nd, ino->u.symlink);
   27 }
   28 
   29 struct inode_operations autofs4_symlink_inode_operations = {
   30         readlink:       autofs4_readlink,
   31         follow_link:    autofs4_follow_link
   32 };

Cache object: 5c965b6b9c6762440055c3cc5e9d6d45


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]


This page is part of the FreeBSD/Linux Linux Kernel Cross-Reference, and was automatically generated using a modified version of the LXR engine.