Skip to contentSkip to conversation

Add documentation comment to get_domain_by_id

PATCH Superseded Mats Petersson 1 participant 2 messages Jan 18, 2013

v2 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 Add documentation comment to get_domain_by_id

Here's a second go at this...

--
Mats

#1 lore raw

PATCH 1/1 Add documentation comment to get_domain_by_id

---
 xen/common/domain.c     |    1 -
 xen/include/xen/sched.h |   10 ++++++++++
 2 files changed, 10 insertions(+), 1 deletion(-)
xen/common/domain.c +0 -1
index 07f62b3..56d95ce 100644
@@ -373,7 +373,6 @@ void domain_update_node_affinity(struct domain *d)
     free_cpumask_var(cpumask);
 }
 
-
 struct domain *get_domain_by_id(domid_t dom)
 {
     struct domain *d;
xen/include/xen/sched.h +10 -0
index 90a6537..9208c99 100644
@@ -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);
Signature · 1 line
1.7.9.5