qemu-devel
[Top][All Lists]
Advanced

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

[Qemu-devel] Re: [PATCH 1/7] qbus: add functions to walk both devices an


From: Paolo Bonzini
Subject: [Qemu-devel] Re: [PATCH 1/7] qbus: add functions to walk both devices and busses
Date: Wed, 17 Nov 2010 12:57:53 +0100
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.12) Gecko/20101103 Fedora/1.0-0.33.b2pre.fc14 Lightning/1.0b3pre Mnenhy/0.8.3 Thunderbird/3.1.6

On 11/17/2010 05:50 AM, Isaku Yamahata wrote:
+/* Returns 0 to walk children,>  0 to terminate walk,<  0 to skip walk. */

Shouldn't this be the other way round according to the code (< 0 to terminate, > 0 to skip children)?

+/* Returns > 0 if either devfn or busfn terminate walk, 0 otherwise. */

This should be "returns != 0". It can return a value > 0 if the toplevel callback asks to skip the children, < 0 if any callback (including the toplevel) asks to terminate the walk, 0 otherwise.

Paolo



reply via email to

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