Ping.


From: EXT Bill Fischofer [mailto:[email protected]]
Sent: Wednesday, March 02, 2016 1:59 PM
To: Savolainen, Petri (Nokia - FI/Espoo) <[email protected]>
Cc: LNG ODP Mailman List <[email protected]>
Subject: Re: [lng-odp] [API-NEXT PATCH 1/2] api: sched: add schedule group info 
struct

For this series:

Reviewed-and-tested-by: Bill Fischofer 
<[email protected]<mailto:[email protected]>>

On Wed, Mar 2, 2016 at 4:36 AM, Petri Savolainen 
<[email protected]<mailto:[email protected]>> wrote:
Added info struct and call to enable request of schedule
group name among all other (potential new) parameters.
Currently, there are only two parameters: name and thrmask.
Thread mask call can be left as is, since it's suitable for
fast path usage.

Signed-off-by: Petri Savolainen 
<[email protected]<mailto:[email protected]>>
---
 include/odp/api/spec/schedule.h | 26 ++++++++++++++++++++++++++
 1 file changed, 26 insertions(+)

diff --git a/include/odp/api/spec/schedule.h b/include/odp/api/spec/schedule.h
index 4ae681d..cd1325a 100644
--- a/include/odp/api/spec/schedule.h
+++ b/include/odp/api/spec/schedule.h
@@ -300,6 +300,32 @@ int odp_schedule_group_thrmask(odp_schedule_group_t group,
                               odp_thrmask_t *thrmask);

 /**
+ * Schedule group information
+ */
+typedef struct odp_schedule_group_info_t {
+       const char    *name;   /**< Schedule group name */
+       odp_thrmask_t thrmask; /**< Thread mask of the schedule group */
+} odp_schedule_group_info_t;
+
+/**
+ * Retrieve information about a schedule group
+ *
+ * Fills in schedule group information structure with current values.
+ * The call is not synchronized with calls modifying the schedule group. So,
+ * the application should ensure that it does not simultaneously modify and
+ * retrieve information about the same group with this call. The call is not
+ * intended for fast path use. The info structure is written only on success.
+ *
+ * @param      group   Schedule group handle
+ * @param[out] info    Pointer to schedule group info struct for output
+ *
+ * @retval  0 On success
+ * @retval <0 On failure
+ */
+int odp_schedule_group_info(odp_schedule_group_t group,
+                           odp_schedule_group_info_t *info);
+
+/**
  * Acquire ordered context lock
  *
  * This call is valid only when holding an ordered synchronization context.
--
2.7.2

_______________________________________________
lng-odp mailing list
[email protected]<mailto:[email protected]>
https://lists.linaro.org/mailman/listinfo/lng-odp

_______________________________________________
lng-odp mailing list
[email protected]
https://lists.linaro.org/mailman/listinfo/lng-odp

Reply via email to