proc.c (2d8ad8719591fa803b0d589ed057fa46f49b7155) proc.c (496ad9aa8ef448058e36ca7a787c61f2e63f0f54)
1/*
2 * /proc/bus/pnp interface for Plug and Play devices
3 *
4 * Written by David Hinds, dahinds@users.sourceforge.net
5 * Modified by Thomas Hood
6 *
7 * The .../devices and .../<node> and .../boot/<node> files are
8 * utilized by the lspnp and setpnp utilities, supplied with the

--- 230 unchanged lines hidden (view full) ---

239static int pnpbios_proc_open(struct inode *inode, struct file *file)
240{
241 return single_open(file, pnpbios_proc_show, PDE(inode)->data);
242}
243
244static ssize_t pnpbios_proc_write(struct file *file, const char __user *buf,
245 size_t count, loff_t *pos)
246{
1/*
2 * /proc/bus/pnp interface for Plug and Play devices
3 *
4 * Written by David Hinds, dahinds@users.sourceforge.net
5 * Modified by Thomas Hood
6 *
7 * The .../devices and .../<node> and .../boot/<node> files are
8 * utilized by the lspnp and setpnp utilities, supplied with the

--- 230 unchanged lines hidden (view full) ---

239static int pnpbios_proc_open(struct inode *inode, struct file *file)
240{
241 return single_open(file, pnpbios_proc_show, PDE(inode)->data);
242}
243
244static ssize_t pnpbios_proc_write(struct file *file, const char __user *buf,
245 size_t count, loff_t *pos)
246{
247 void *data = PDE(file->f_path.dentry->d_inode)->data;
247 void *data = PDE(file_inode(file))->data;
248 struct pnp_bios_node *node;
249 int boot = (long)data >> 8;
250 u8 nodenum = (long)data;
251 int ret = count;
252
253 node = kzalloc(node_info.max_node_size, GFP_KERNEL);
254 if (!node)
255 return -ENOMEM;

--- 96 unchanged lines hidden ---
248 struct pnp_bios_node *node;
249 int boot = (long)data >> 8;
250 u8 nodenum = (long)data;
251 int ret = count;
252
253 node = kzalloc(node_info.max_node_size, GFP_KERNEL);
254 if (!node)
255 return -ENOMEM;

--- 96 unchanged lines hidden ---