Up to [cvs.NetBSD.org] / src / sys / miscfs / kernfs
Request diff between arbitrary revisions
Default branch: MAIN
Current tag: chap-midi-base
Revision 1.27 / (download) - annotate - [select for diffs], Tue Mar 14 20:47:52 2006 UTC (18 years ago) by bouyer
Branch: MAIN
CVS Tags: yamt-pdpolicy-base5,
yamt-pdpolicy-base4,
yamt-pdpolicy-base3,
simonb-timecounters-base,
peter-altq-base,
peter-altq,
gdamore-uart-base,
elad-kernelauth-base,
chap-midi-nbase,
chap-midi-base,
chap-midi
Branch point for: gdamore-uart
Changes since 1.26: +6 -1
lines
Diff to previous 1.26 (colored)
Allow optionnal /kern regular files to have custom read methods, the same way writes are handled: Add KERNFS_XREAD and KERNFS_FILEOP_WRITE files operations definitions to kfsfileop, a xread function pointer to kernfs_fileop, rename kernfs_read to kernfs_default_xread and add a kernfs_read calling kernfs_try_fileop(KERNFS_FILEOP_READ). Proposed on tech-kern on Feb 18 2006.