From patchwork Tue Feb 3 14:53:15 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ola Liljedahl X-Patchwork-Id: 44240 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wi0-f197.google.com (mail-wi0-f197.google.com [209.85.212.197]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id C2C952034D for ; Tue, 3 Feb 2015 14:55:03 +0000 (UTC) Received: by mail-wi0-f197.google.com with SMTP id n3sf26121598wiv.0 for ; Tue, 03 Feb 2015 06:55:03 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:from:to:date:message-id:in-reply-to :references:subject:precedence:list-id:list-unsubscribe:list-archive :list-post:list-help:list-subscribe:mime-version:content-type :content-transfer-encoding:errors-to:sender:x-original-sender :x-original-authentication-results:mailing-list; bh=ePtqu0aKHMY75MupqU2eCJe/01Z0UubQvaw7CQHnNM0=; b=NCZu4xwos7xUsWnrbvJ+05RcWOJydZ7CkCTXIh+GyMbhEODqBgHSyAiwg2j7R2zWmt FYE605nYI5CciRDx2ukvNowOgRsbDTHR5C0Eloun4k2QX8qXEYzsfa8tuDCmlegGKVrC IPZVrYhqlrLJ1QrtkljExZu9FO9bw8U6A+X8tTgMGljvlNCx2TN8v9qNBgLIBNNcWLhA FAV4gLm5p5SHB9LXYL+kyEBkluV/ZdFrFKgjzdnZ7wNZFpXJgwBn8xhfD/kdp/9xxivh NuO8DZoVM32wd7a0OOcqrbQ/0otbJvy4aFNq2a3Eaz3ZUjRlrKr5iWNfODZSvQ7BQTaW jk4w== X-Gm-Message-State: ALoCoQnqKS7Nla6fpg9d1AY5FEHxUNsWo22CElrqJ3XvFV5+r4FIVC8TV6vVAIhNyiiTcqzePzp3 X-Received: by 10.180.80.7 with SMTP id n7mr2029955wix.0.1422975303100; Tue, 03 Feb 2015 06:55:03 -0800 (PST) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.43.66 with SMTP id u2ls809640lal.32.gmail; Tue, 03 Feb 2015 06:55:02 -0800 (PST) X-Received: by 10.112.160.193 with SMTP id xm1mr24958161lbb.5.1422975302929; Tue, 03 Feb 2015 06:55:02 -0800 (PST) Received: from mail-la0-f46.google.com (mail-la0-f46.google.com. [209.85.215.46]) by mx.google.com with ESMTPS id z8si19352098lbo.69.2015.02.03.06.55.02 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 03 Feb 2015 06:55:02 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.46 as permitted sender) client-ip=209.85.215.46; Received: by mail-la0-f46.google.com with SMTP id s18so52635738lam.5 for ; Tue, 03 Feb 2015 06:55:02 -0800 (PST) X-Received: by 10.152.228.161 with SMTP id sj1mr4018158lac.74.1422975302777; Tue, 03 Feb 2015 06:55:02 -0800 (PST) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.35.133 with SMTP id h5csp1988308lbj; Tue, 3 Feb 2015 06:55:02 -0800 (PST) X-Received: by 10.224.152.2 with SMTP id e2mr54726864qaw.23.1422975301173; Tue, 03 Feb 2015 06:55:01 -0800 (PST) Received: from ip-10-35-177-41.ec2.internal (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTPS id j10si29084917qga.33.2015.02.03.06.54.59 (version=TLSv1 cipher=RC4-SHA bits=128/128); Tue, 03 Feb 2015 06:55:01 -0800 (PST) Received-SPF: none (google.com: lng-odp-bounces@lists.linaro.org does not designate permitted sender hosts) client-ip=54.225.227.206; Received: from localhost ([127.0.0.1] helo=ip-10-35-177-41.ec2.internal) by ip-10-35-177-41.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1YIesU-0001kd-4T; Tue, 03 Feb 2015 14:54:58 +0000 Received: from mail-la0-f53.google.com ([209.85.215.53]) by ip-10-35-177-41.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1YIerJ-0001YX-D4 for lng-odp@lists.linaro.org; Tue, 03 Feb 2015 14:53:45 +0000 Received: by mail-la0-f53.google.com with SMTP id gq15so52477887lab.12 for ; Tue, 03 Feb 2015 06:53:39 -0800 (PST) X-Received: by 10.112.148.73 with SMTP id tq9mr24735237lbb.37.1422975219522; Tue, 03 Feb 2015 06:53:39 -0800 (PST) Received: from localhost.localdomain (78-82-118-111.tn.glocalnet.net. [78.82.118.111]) by mx.google.com with ESMTPSA id jf3sm5082572lbc.44.2015.02.03.06.53.38 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 03 Feb 2015 06:53:39 -0800 (PST) From: Ola Liljedahl To: lng-odp@lists.linaro.org Date: Tue, 3 Feb 2015 15:53:15 +0100 Message-Id: <1422975201-3364-13-git-send-email-ola.liljedahl@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1422975201-3364-1-git-send-email-ola.liljedahl@linaro.org> References: <1422975201-3364-1-git-send-email-ola.liljedahl@linaro.org> X-Topics: patch Subject: [lng-odp] [PATCHv4 12/18] api: odp_queue.h: updated return descriptions X-BeenThere: lng-odp@lists.linaro.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: , List-Help: , List-Subscribe: , MIME-Version: 1.0 Errors-To: lng-odp-bounces@lists.linaro.org Sender: lng-odp-bounces@lists.linaro.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: ola.liljedahl@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.46 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 Updated doxygen descriptions, particularly the @return/@retval descriptions. No change of implementation necessary. Signed-off-by: Ola Liljedahl --- (This document/code contribution attached is provided under the terms of agreement LES-LTM-21309) include/odp/api/queue.h | 29 ++++++++++++++++++----------- 1 file changed, 18 insertions(+), 11 deletions(-) diff --git a/include/odp/api/queue.h b/include/odp/api/queue.h index 377a7da..b06522c 100644 --- a/include/odp/api/queue.h +++ b/include/odp/api/queue.h @@ -158,7 +158,8 @@ typedef struct odp_queue_param_t { * @param type Queue type * @param param Queue parameters. Uses defaults if NULL. * - * @return Queue handle or ODP_QUEUE_INVALID + * @return Queue handle + * @retval ODP_QUEUE_INVALID on failure */ odp_queue_t odp_queue_create(const char *name, odp_queue_type_t type, odp_queue_param_t *param); @@ -173,7 +174,8 @@ odp_queue_t odp_queue_create(const char *name, odp_queue_type_t type, * * @param queue Queue handle * - * @return 0 if successful + * @retval 0 on success + * @retval <0 on failure */ int odp_queue_destroy(odp_queue_t queue); @@ -182,7 +184,8 @@ int odp_queue_destroy(odp_queue_t queue); * * @param name Queue name * - * @return Queue handle or ODP_QUEUE_INVALID + * @return Queue handle + * @retval ODP_QUEUE_INVALID on failure */ odp_queue_t odp_queue_lookup(const char *name); @@ -196,7 +199,8 @@ odp_queue_t odp_queue_lookup(const char *name); * @param queue Queue handle * @param context Address to the queue context * - * @return 0 if successful + * @retval 0 on success + * @retval <0 on failure */ int odp_queue_set_context(odp_queue_t queue, void *context); @@ -205,8 +209,8 @@ int odp_queue_set_context(odp_queue_t queue, void *context); * * @param queue Queue handle * - * @return If successful, a pointer to the queue context, - * NULL for failure. + * @return pointer to the queue context + * @retval NULL on failure */ void *odp_queue_get_context(odp_queue_t queue); @@ -216,7 +220,8 @@ void *odp_queue_get_context(odp_queue_t queue); * @param queue Queue handle * @param ev Event handle * - * @return 0 if succesful + * @retval 0 on success + * @retval <0 on failure (e.g. queue full) */ int odp_queue_enq(odp_queue_t queue, odp_event_t ev); @@ -240,7 +245,8 @@ int odp_queue_enq_multi(odp_queue_t queue, const odp_event_t events[], int num); * * @param queue Queue handle * - * @return Event handle, or ODP_EVENT_INVALID + * @return Event handle + * @retval ODP_EVENT_INVALID on failure (e.g. queue empty) */ odp_event_t odp_queue_deq(odp_queue_t queue); @@ -251,10 +257,11 @@ odp_event_t odp_queue_deq(odp_queue_t queue); * ODP_QUEUE_TYPE_SCHED type queues (use odp_schedule() instead). * * @param queue Queue handle - * @param events Event handle array for output - * @param num Maximum number of event handles + * @param[out] events Array of event handles for output + * @param num Maximum number of events to dequeue - * @return Number of events written (0 ... num) + * @return Number of events actually dequeued (0 ... num) + * @retval <0 on failure */ int odp_queue_deq_multi(odp_queue_t queue, odp_event_t events[], int num);