lkml.org 
[lkml]   [2006]   [Apr]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [Lhms-devel] [PATCH] register hot-added memory to iomem resource
> +/* add this memory to iomem resource */
> +static void register_memory_resource(u64 start, u64 size)
> +{
> + struct resource *res;
> +
> + res = kzalloc(sizeof(struct resource), GFP_KERNEL);
> + BUG_ON(!res);
> +
> + res->name = "System RAM";
> + res->start = start;
> + res->end = start + size - 1;
> + res->flags = IORESOURCE_MEM;
> + if (request_resource(&iomem_resource, res) < 0) {
> + printk("System RAM resource %llx - %llx cannot be added\n",
> + (unsigned long long)res->start, (unsigned long long)res->end);
> + kfree(res);
> + }
> +}

This is more of a question than a comment. Is this code saying that all memory we are
adding is available for IO? And is it really true that on all platforms any memory we add
can be used that way?
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2006-04-27 18:13    [W:0.079 / U:0.080 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site