[Cbe-oss-dev] [PATCH] axonram: 1st version
Maxim Shchetynin
maxim at de.ibm.com
Thu Feb 15 09:21:52 EST 2007
> > +struct axon_ram_bank {
> > + char chrdev_name[DEVICE_NAME_SIZE];
> > + char blkdev_name[DEVICE_NAME_SIZE];
> > + rwlock_t lock;
> > + phys_addr_t phys_addr;
> > + void __iomem *addr;
> > + size_t size;
> > + struct gendisk *disk;
> > + struct miscdevice misc;
> > + struct file_operations fops;
>
> We shouldn't need per-instance file operations and miscdevice One global
> is enough, like most drivers do.
I need both. I need one miscdevice per device because their minors are
stored here and I need minors in axon_ram_remove(). And I need one
file_operation per device because this is the only easier way to get
pointer to struct axon_ram_bank in axon_ram_open() for character device.
Mit freundlichen Grüßen / met vriendelijke groeten / avec regards
Maxim V. Shchetynin
IBM Deutschland Entwicklung GmbH
Linux für Cell BE
Schönaicher Straße 220
71032 Böblingen, Deutschland
Fahr nur so schnell wie dein Schutzengel fliegen kann!
More information about the cbe-oss-dev
mailing list