xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
From: Mats Petersson <mats.petersson@citrix.com>
To: xen-devel@lists.xen.org
Cc: Mats Petersson <mats.petersson@citrix.com>
Subject: [PATCH V3] Add documentation comment to get_domain_by_id
Date: Fri, 18 Jan 2013 14:38:31 +0000	[thread overview]
Message-ID: <1358519911-22781-1-git-send-email-mats.petersson@citrix.com> (raw)

Fixed removing blank line problem from moving comment around... 

Signed-off-by: Mats Petersson <mats.petersson@citrix.com>
---
 xen/include/xen/sched.h |   10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/xen/include/xen/sched.h b/xen/include/xen/sched.h
index 90a6537..9208c99 100644
--- a/xen/include/xen/sched.h
+++ b/xen/include/xen/sched.h
@@ -509,6 +509,16 @@ static inline struct domain *rcu_lock_current_domain(void)
     return /*rcu_lock_domain*/(current->domain);
 }
 
+/*
+ * 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.
+ *
+ * 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);
 void domain_destroy(struct domain *d);
 int domain_kill(struct domain *d);
-- 
1.7.9.5

                 reply	other threads:[~2013-01-18 14:38 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=1358519911-22781-1-git-send-email-mats.petersson@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).