Re: [PATCH 03/14] resource: add walk_system_ram_res_rev()

2017-09-07 Thread AKASHI Takahiro
On Thu, Aug 31, 2017 at 08:04:51AM +0530, Pratyush Anand wrote: > > > On Thursday 24 August 2017 01:48 PM, AKASHI Takahiro wrote: > >This function, being a variant of walk_system_ram_res() introduced in > >commit 8c86e70acead ("resource: provide new functions to walk through > >resources"), walks

Re: [PATCH 03/14] resource: add walk_system_ram_res_rev()

2017-08-30 Thread Pratyush Anand
On Thursday 24 August 2017 01:48 PM, AKASHI Takahiro wrote: This function, being a variant of walk_system_ram_res() introduced in commit 8c86e70acead ("resource: provide new functions to walk through resources"), walks through a list of all the resources of System RAM in reversed order, i.e., f

Re: [PATCH 03/14] resource: add walk_system_ram_res_rev()

2017-08-24 Thread AKASHI Takahiro
On Thu, Aug 24, 2017 at 10:06:28AM +0100, Ard Biesheuvel wrote: > On 24 August 2017 at 09:18, AKASHI Takahiro > wrote: > > + /* create a list */ > > + rams = vmalloc(sizeof(struct resource) * count); > > + if (!rams) > > + return ret; > > + > > + res.start =

Re: [PATCH 03/14] resource: add walk_system_ram_res_rev()

2017-08-24 Thread Ard Biesheuvel
On 24 August 2017 at 09:18, AKASHI Takahiro wrote: > This function, being a variant of walk_system_ram_res() introduced in > commit 8c86e70acead ("resource: provide new functions to walk through > resources"), walks through a list of all the resources of System RAM > in reversed order, i.e., from

[PATCH 03/14] resource: add walk_system_ram_res_rev()

2017-08-24 Thread AKASHI Takahiro
This function, being a variant of walk_system_ram_res() introduced in commit 8c86e70acead ("resource: provide new functions to walk through resources"), walks through a list of all the resources of System RAM in reversed order, i.e., from higher to lower. It will be used in kexec_file implementati