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

Re: [Xen-devel] [PATCH v3 07/15] argo: implement the register op



 >>> On 10.01.19 at 12:24, <royger@xxxxxxxxx> wrote:
> On Mon, Jan 7, 2019 at 8:44 AM Christopher Clark 
> <christopher.w.clark@xxxxxxxxx> wrote:
>> +static long
>> +register_ring(struct domain *currd,
> 
> If this is indeed the current domain (as the name suggests), why do
> you need to pass it around? Or else just name the parameter d.

When all (or at least most) callers already latch the pointer into a
local variable, handing it through is often cheaper than re-obtaining
it as current->domain. ASSERT(currd == current->domain) might be
worthwhile in such cases, though.

Jan



_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/mailman/listinfo/xen-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.