Re: [PATCH] proc: proc_inode pid/fd and sysctl/sysctl_entry are neverused at the same time

From: Alexey Dobriyan
Date: Wed Jan 12 2011 - 05:30:06 EST


On Wed, Jan 12, 2011 at 12:14 PM, Lucian Adrian Grijincu
<lucian.grijincu@xxxxxxxxx> wrote:
> Or at least I could not find a place where both are
> used at the same time.

See proc_evict_inode().

> struct proc_inode {
> - struct pid *pid;
> - int fd;
> - union proc_op op;
> + union {
> + struct {
> + int fd;
> + struct pid *pid;
> + };
> + struct {
> + struct ctl_table_header *sysctl;
> + struct ctl_table *sysctl_entry;
> + };
> + };
> struct proc_dir_entry *pde;
> - struct ctl_table_header *sysctl;
> - struct ctl_table *sysctl_entry;
> + union proc_op op;
> struct inode vfs_inode;
> };
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/