Hi Greg, On Wednesday 06 July 2005 10:17, Greg KH wrote: > + * TODO: > + * I think I can get rid of these default_file_ops, but not quite sure... > + */ > +static ssize_t default_read_file(struct file *file, char __user *buf, > + size_t count, loff_t *ppos) > +{ > + return 0; > +} > + > +static ssize_t default_write_file(struct file *file, const char __user *buf, > + size_t count, loff_t *ppos) > +{ > + return count; > +} Yes, you can get rid of both, if you move read_null and write_null from drivers/char/mem.c to fs/libfs.c and export them. But for what do you need a successful dummy read/write? Regards Ingo Oeser
Attachment:
pgpGx9SylLMhR.pgp
Description: PGP signature
- Follow-Ups:
- Re: [PATCH] add securityfs for all LSMs to use
- From: Greg KH <[email protected]>
- Re: [PATCH] add securityfs for all LSMs to use
- References:
- [PATCH] add securityfs for all LSMs to use
- From: Greg KH <[email protected]>
- [PATCH] add securityfs for all LSMs to use
- Prev by Date: Re: [PATCH] add securityfs for all LSMs to use
- Next by Date: Re: [PATCH 2/3 (updated)] openfirmware: add sysfs nodes for open firmware devices
- Previous by thread: [PATCH] add securityfs for all LSMs to use
- Next by thread: Re: [PATCH] add securityfs for all LSMs to use
- Index(es):