qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH v7 06/12] register: Add block initialise helper


From: Peter Maydell
Subject: Re: [Qemu-devel] [PATCH v7 06/12] register: Add block initialise helper
Date: Thu, 23 Jun 2016 19:02:14 +0100

On 23 June 2016 at 18:29, Alistair Francis <address@hidden> wrote:
> On Thu, Jun 23, 2016 at 5:55 AM, Peter Maydell <address@hidden> wrote:
>> It's not clear to me which of these are input arguments to the
>> function, and which are things that the function initializes
>> (I think 'ri' is purely output?)
>
> The function expects everything to already be initialised, it just
> wires them up.
>
> ri should already be allocated, this function just sets up some pointers to 
> it.
>
> I added a comment in the description saying that ri and data must
> already be allocated. Is that enough?

Does the caller have to initialize the array that ri points to
before it calls this?

thanks
-- PMM



reply via email to

[Prev in Thread] Current Thread [Next in Thread]