[RFC v7 10/21] um: nommu: memory handling
Johannes Berg
johannes at sipsolutions.net
Wed Oct 7 11:47:33 EDT 2020
On Tue, 2020-10-06 at 18:44 +0900, Hajime Tazaki wrote:
>
> * These operations must be provided by a host library or by the application
> * itself.
> *
> + * @mem_alloc - allocate memory
> + * @mem_free - free memory
> + *
Actual kernel-doc would be nicer.
> + empty_zero_page = memblock_alloc(PAGE_SIZE, PAGE_SIZE);
> + memset((void *)empty_zero_page, 0, PAGE_SIZE);
> +
> + {
> + unsigned long zones_size[MAX_NR_ZONES] = {0, };
Hmm, what's with the extra scope?
johannes
More information about the linux-um
mailing list