Append to buffer in proc_fs file - kernel module programming
How to append in a file of type proc_fs. When my application calls the write function of proc file, it over-writes previous contents. I have tried O_APPEND, although it is working with normal file but not with the proc_fs file.
|
You can't.
procfs is there to interface with kernel tables, and parameters. These cannot be extended as it would corrupt the kernel, so you can't do that. It is a property of procfs (and sysfs, and devfs for that matter). |
Quote:
|
All times are GMT -5. The time now is 02:27 PM. |