inode.c (9a64e8e0ace51b309fdcff4b4754b3649250382a) | inode.c (00cd8dd3bf95f2cc8435b4cac01d9995635c6d0b) |
---|---|
1/* inode.c: /proc/openprom handling routines 2 * 3 * Copyright (C) 1996-1999 Jakub Jelinek (jakub@redhat.com) 4 * Copyright (C) 1998 Eddie C. Dost (ecd@skynet.be) 5 */ 6 7#include <linux/module.h> 8#include <linux/types.h> --- 156 unchanged lines hidden (view full) --- 165static int openpromfs_readdir(struct file *, void *, filldir_t); 166 167static const struct file_operations openprom_operations = { 168 .read = generic_read_dir, 169 .readdir = openpromfs_readdir, 170 .llseek = generic_file_llseek, 171}; 172 | 1/* inode.c: /proc/openprom handling routines 2 * 3 * Copyright (C) 1996-1999 Jakub Jelinek (jakub@redhat.com) 4 * Copyright (C) 1998 Eddie C. Dost (ecd@skynet.be) 5 */ 6 7#include <linux/module.h> 8#include <linux/types.h> --- 156 unchanged lines hidden (view full) --- 165static int openpromfs_readdir(struct file *, void *, filldir_t); 166 167static const struct file_operations openprom_operations = { 168 .read = generic_read_dir, 169 .readdir = openpromfs_readdir, 170 .llseek = generic_file_llseek, 171}; 172 |
173static struct dentry *openpromfs_lookup(struct inode *, struct dentry *, struct nameidata *); | 173static struct dentry *openpromfs_lookup(struct inode *, struct dentry *, unsigned int); |
174 175static const struct inode_operations openprom_inode_operations = { 176 .lookup = openpromfs_lookup, 177}; 178 | 174 175static const struct inode_operations openprom_inode_operations = { 176 .lookup = openpromfs_lookup, 177}; 178 |
179static struct dentry *openpromfs_lookup(struct inode *dir, struct dentry *dentry, struct nameidata *nd) | 179static struct dentry *openpromfs_lookup(struct inode *dir, struct dentry *dentry, unsigned int flags) |
180{ 181 struct op_inode_info *ent_oi, *oi = OP_I(dir); 182 struct device_node *dp, *child; 183 struct property *prop; 184 enum op_inode_type ent_type; 185 union op_inode_data ent_data; 186 const char *name; 187 struct inode *inode; --- 284 unchanged lines hidden --- | 180{ 181 struct op_inode_info *ent_oi, *oi = OP_I(dir); 182 struct device_node *dp, *child; 183 struct property *prop; 184 enum op_inode_type ent_type; 185 union op_inode_data ent_data; 186 const char *name; 187 struct inode *inode; --- 284 unchanged lines hidden --- |