All of lore.kernel.org
 help / color / mirror / Atom feed
From: Mats Petersson <mats.petersson@citrix.com>
To: xen-devel@lists.xen.org
Subject: Re: [PATCH] Add doc-comment to get_domain_by_id
Date: Fri, 18 Jan 2013 13:46:19 +0000	[thread overview]
Message-ID: <50F9522B.1030007@citrix.com> (raw)
In-Reply-To: <9662deb217d7869d35dc.1358516092@localmatsp-T3500>

On 18/01/13 13:34, Mats Petersson wrote:
> # HG changeset patch
> # User Mats Petersson <mats.petersson@citrix.com>
> # Date 1358516011 0
> # Node ID 9662deb217d7869d35dce5587ae8a1b45296b3a0
> # Parent  126ce5f1855ba21ae24fc1c0981e5c05a3245bad
> Add doc-comment to get_domain_by_id
>
> diff --git a/xen/common/domain.c b/xen/common/domain.c
> --- a/xen/common/domain.c
> +++ b/xen/common/domain.c
> @@ -373,7 +373,16 @@
>       free_cpumask_var(cpumask);
>   }
>   
> -
> +/**
> + * This function finds a domain from a domain id. The domain's
> + * reference count is incremented as part of this function.
> + * The caller must call put_domain to un-reference the domain.
> + *
> + * @param dom       Domain ID of the domain to be found.
> + *
> + * @return         On success the pointer to a struct domain.
> + *                 On failure, return NULL.
> + */
>   struct domain *get_domain_by_id(domid_t dom)
>   {
>       struct domain *d;
>
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@lists.xen.org
> http://lists.xen.org/xen-devel
>
>
Sorry for the badly formatted patch - will submit a V2 with "better" 
formatting & signed off... "hg email" is a bit different to "git 
send-email", I just learned... ;)

--
Mats

  reply	other threads:[~2013-01-18 13:46 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-01-18 13:34 [PATCH] Add doc-comment to get_domain_by_id Mats Petersson
2013-01-18 13:46 ` Mats Petersson [this message]
2013-01-18 14:02 ` Ian Campbell
2013-01-18 14:08   ` Mats Petersson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=50F9522B.1030007@citrix.com \
    --to=mats.petersson@citrix.com \
    --cc=xen-devel@lists.xen.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.