Re: RFC: banning device driver reserved resources from /dev/mem

From: Arjan van de Ven
Date: Mon Oct 06 2008 - 01:26:22 EST


On Mon, 6 Oct 2008 07:23:37 +0200
Ingo Molnar <mingo@xxxxxxx> wrote:
>
> > +int iomem_is_reserved(u64 addr)
> > +{
> > + struct resource *p = &iomem_resource;

...

> > + */
> > + if (p->start >= addr + size)
> > + continue;
>
> do we want to skip all resources that are not IORESOURCE_MEM? Same
> holds for iomem_map_sanity_check(), introduced in tip/core/resources:

if we have non-IORESOURCE_MEM resources in the iomem_resource tree....
then we have bigger problems.

--
Arjan van de Ven Intel Open Source Technology Centre
For development, discussion and tips for power savings,
visit http://www.lesswatts.org
--
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/