WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

Re: [Xen-devel] USB virt 2.6 split driver patch series

To: harry <harry@xxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
Subject: Re: [Xen-devel] USB virt 2.6 split driver patch series
From: NAHieu <nahieu@xxxxxxxxx>
Date: Tue, 22 Nov 2005 11:00:23 +0900
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Tue, 22 Nov 2005 02:00:21 +0000
Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=DvZnO9r24Y7ntBxHhcZI7QwtLTPDw61YJJw+Q/VijYqOr6OMcqupIZC4XWQd+lqQnmlNCa/Ak64UoxcAQPhVgmEQi4UPgaDQdA3pl6piFaTBm6CuD41cIZsK4IH4WAMKklMVNnXi/TBn53mkktIuDYPsBQW8rfCuj9azYXeHbpk=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <5d7aca950511211759i63ed353al8f95ea411bbd49ff@xxxxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <1132579104.31295.110.camel@xxxxxxxxxxxxxxxxxxxxx> <20051121134940.GA25045@xxxxxxxxx> <1132581661.31295.134.camel@xxxxxxxxxxxxxxxxxxxxx> <5d7aca950511210641n23d79fduc2e462c3dcd07810@xxxxxxxxxxxxxx> <1132586050.31295.145.camel@xxxxxxxxxxxxxxxxxxxxx> <5d7aca950511210727i741148efl71f025577680d994@xxxxxxxxxxxxxx> <1132587554.31295.154.camel@xxxxxxxxxxxxxxxxxxxxx> <5d7aca950511210902j5002bbfdxe52b1a32517d6c8b@xxxxxxxxxxxxxx> <1132593451.31295.171.camel@xxxxxxxxxxxxxxxxxxxxx> <5d7aca950511211759i63ed353al8f95ea411bbd49ff@xxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
On 11/22/05, NAHieu <nahieu@xxxxxxxxx> wrote:
> I had a look at xenidc code, and found some code like this:
>
> --
> static void xenidc_endpoint_destroy_1(xenidc_callback * callback)
> {
>         trace();
>
>         {
>                 xenidc_endpoint_callback *endpoint_callback =
>                     container_of(callback, xenidc_endpoint_callback, 
> callback);
>
>                 endpoint_callback->destroyed = 1;
>
>                 xenidc_work_wake_up();
>         }
> }
> --
>
> Why name it *destroy_1? it is a common practice to name a local
> function with _ or __ as prefix. So for example
> xenidc_endpoint_destroy_1() should be named
> _xenidc_endpoint_destroy_1() or __xenidc_endpoint_destroy_1()
>

Oops, typo. I meant _xenidc_endpoint_destroy_1() should be named
_xenidc_endpoint_destroy() or __xenidc_endpoint_destroy()

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

<Prev in Thread] Current Thread [Next in Thread>