Re: Memory trample when using /dev/mem

From: Richard Weinberger
Date: Sat Oct 11 2014 - 05:04:36 EST


On Sat, Oct 11, 2014 at 10:51 AM, Hu Keping <hukeping@xxxxxxxxxx> wrote:
> As there are many drivers using /dev/mem and we can not
> make sure that the different task will not trample on
> each others memory.Shall we add some printk to help locating the problem
> when error happened?

Actually no driver should use /dev/mem.
Please have a look at UIO.

--
Thanks,
//richard
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/