dir.c
来自「Linux内核源代码 为压缩文件 是<<Linux内核>>」· C语言 代码 · 共 35 行
C
35 行
/* -*- linux-c -*- --------------------------------------------------------- * * * linux/fs/autofs/dir.c * * Copyright 1997-1998 Transmeta Corporation -- All Rights Reserved * * This file is part of the Linux kernel and is made available under * the terms of the GNU General Public License, version 2, or at your * option, any later version, incorporated herein by reference. * * ------------------------------------------------------------------------- */#include "autofs_i.h"/* * No entries except for "." and "..", both of which are handled by the VFS * layer. So all children are negative and dcache-based versions of operations * are OK. */static struct dentry *autofs_dir_lookup(struct inode *dir,struct dentry *dentry){ d_add(dentry, NULL); return NULL;}struct file_operations autofs_dir_operations = { read: generic_read_dir, readdir: dcache_readdir,};struct inode_operations autofs_dir_inode_operations = { lookup: autofs_dir_lookup,};
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?