Hi!
> It doesn't seem reliable:
>
> open("/dev/null", O_WRONLY|O_CREAT, 0644) = 3
> write(3, NULL, 1) = 1
> close(3) = 0
>
> I'm seeing this on RHEL6.7 kernel, I haven't tried latest upstream yet.
Ah, you are right, the memory is not touched in the write_null()
function at all.
drivers/char/mem.c:
static ssize_t write_null(struct file *file, const char __user *buf,
size_t count, loff_t *ppos)
{
return count;
}
--
Cyril Hrubis
[email protected]
------------------------------------------------------------------------------
Monitor Your Dynamic Infrastructure at Any Scale With Datadog!
Get real-time metrics from all of your servers, apps and tools
in one place.
SourceForge users - Click here to start your Free Trial of Datadog now!
http://pubads.g.doubleclick.net/gampad/clk?id=241902991&iu=/4140
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list