OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [linux/] [linux-2.4/] [fs/] [sysv/] [symlink.c] - Blame information for rev 1765

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1275 phoenix
/*
2
 *  linux/fs/sysv/symlink.c
3
 *
4
 *  Handling of System V filesystem fast symlinks extensions.
5
 *  Aug 2001, Christoph Hellwig (hch@infradead.org)
6
 */
7
 
8
#include <linux/fs.h>
9
 
10
static int sysv_readlink(struct dentry *dentry, char *buffer, int buflen)
11
{
12
        char *s = (char *)dentry->d_inode->u.sysv_i.i_data;
13
        return vfs_readlink(dentry, buffer, buflen, s);
14
}
15
 
16
static int sysv_follow_link(struct dentry *dentry, struct nameidata *nd)
17
{
18
        char *s = (char *)dentry->d_inode->u.sysv_i.i_data;
19
        return vfs_follow_link(nd, s);
20
}
21
 
22
struct inode_operations sysv_fast_symlink_inode_operations = {
23
        readlink:       sysv_readlink,
24
        follow_link:    sysv_follow_link,
25
};

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.