From patchwork Wed Jun 26 13:59:16 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hal Rosenstock X-Patchwork-Id: 2784801 X-Patchwork-Delegate: hal@mellanox.com Return-Path: X-Original-To: patchwork-linux-rdma@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 999C79F3A0 for ; Wed, 26 Jun 2013 13:59:27 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 3FEA4204F2 for ; Wed, 26 Jun 2013 13:59:26 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 874C6204EF for ; Wed, 26 Jun 2013 13:59:24 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751691Ab3FZN7X (ORCPT ); Wed, 26 Jun 2013 09:59:23 -0400 Received: from mail-ea0-f175.google.com ([209.85.215.175]:42933 "EHLO mail-ea0-f175.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751645Ab3FZN7W (ORCPT ); Wed, 26 Jun 2013 09:59:22 -0400 Received: by mail-ea0-f175.google.com with SMTP id z7so7449284eaf.20 for ; Wed, 26 Jun 2013 06:59:21 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:cc:subject :content-type:content-transfer-encoding:x-gm-message-state; bh=yACKT6FoSD9nRgJt6JqPFx1PoOqfpJ0swXFMBsu5WqQ=; b=dENJ0dSk76nURzGK7ngLzx5Zjc8kfGiEz+KBtzGgxThcAbDH2K8JK9JTsWAbzPdxR3 eZ7JXpJxN0w3DhfnXyomcv1KyoImblD10vJJTV2RHzYGOOuqIvhFAjWQPlmb7hkn9qBm y+nHL4SGhl+oFF7GFY5K6E10LB6ivVenjboIeGHWgn9NsKEf9leiALaW7+GvfI+yTj81 vLKQiuRzaJu/s5TnNAsiIhwZO0LocAfMRfjxp7gTKeXu4NaYeK0JjAcDETGQ9s8GLuq/ FHJXasxl7RfnDBK09JpRrd6AIlCoqzhWVQPViiHJiTIsD059ucAZHriAZvlvLv5IjDz3 x1CA== X-Received: by 10.15.83.69 with SMTP id b45mr4135773eez.150.1372255161216; Wed, 26 Jun 2013 06:59:21 -0700 (PDT) Received: from [192.168.1.102] (c-71-234-225-85.hsd1.ct.comcast.net. [71.234.225.85]) by mx.google.com with ESMTPSA id b7sm43128100eef.16.2013.06.26.06.59.18 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 26 Jun 2013 06:59:20 -0700 (PDT) Message-ID: <51CAF3B4.7090400@dev.mellanox.co.il> Date: Wed, 26 Jun 2013 09:59:16 -0400 From: Hal Rosenstock User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:9.0) Gecko/20111222 Thunderbird/9.0.1 MIME-Version: 1.0 To: "linux-rdma (linux-rdma@vger.kernel.org)" CC: Alex Netes Subject: [PATCH TRIVIAL opensm] complib/cl_event_wheel.h: Some cosmetic fixes X-Gm-Message-State: ALoCoQl7AoV6A3dvN7rr4T9K5UZy/DYRApWrShddmH1Qk+JYfoPsk9a10tT7R4kYyrmmSh6ccC46 Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org X-Spam-Status: No, score=-8.2 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Alex Netes Fix indentation in cl_event_wheel.h Signed-off-by: Alex Netes Signed-off-by: Hal Rosenstock --- include/complib/cl_event_wheel.h | 76 +++++++++++++++++++------------------- 1 files changed, 38 insertions(+), 38 deletions(-) diff --git a/include/complib/cl_event_wheel.h b/include/complib/cl_event_wheel.h index ac02242..4883353 100644 --- a/include/complib/cl_event_wheel.h +++ b/include/complib/cl_event_wheel.h @@ -35,7 +35,7 @@ /* * Abstract: - * Declaration of event wheel abstraction. + * Declaration of event wheel abstraction. */ #ifndef _CL_EVENT_WHEEL_H_ @@ -62,11 +62,11 @@ BEGIN_C_DECLS * * DESCRIPTION * The Event_Wheel provides a facility for registering delayed events -* and getting called once they timeout. +* and getting called once they timeout. * * The Event_Wheel functions operate on a cl_event_wheel_t structure -* which should be treated as opaque and should be manipulated -* only through the provided functions. +* which should be treated as opaque and should be manipulated +* only through the provided functions. * * SEE ALSO * Structures: @@ -85,8 +85,8 @@ BEGIN_C_DECLS * * DESCRIPTION * This typedef defines the prototype for client functions invoked -* by the Event_Wheel. The Event_Wheel calls the corresponding -* client function when the specific item has aged. +* by the Event_Wheel. The Event_Wheel calls the corresponding +* client function when the specific item has aged. * * SYNOPSIS */ @@ -95,12 +95,12 @@ typedef uint64_t IN uint32_t num_regs, IN void *context); /* * PARAMETERS -* key -* [in] The key used for registering the item in the call to -* cl_event_wheel_reg +* key +* [in] The key used for registering the item in the call to +* cl_event_wheel_reg. * -* num_regs -* [in] The number of times this event was registered (pushed in time). +* num_regs +* [in] The number of times this event was registered (pushed in time). * * context * [in] Client specific context specified in a call to @@ -113,8 +113,8 @@ typedef uint64_t * * NOTES * This typedef provides a function prototype reference for -* the function provided by Event_Wheel clients as a parameter -* to the cl_event_wheel_reg function. +* the function provided by Event_Wheel clients as a parameter +* to the cl_event_wheel_reg function. * * SEE ALSO * Event_Wheel, cl_event_wheel_reg @@ -130,7 +130,7 @@ typedef uint64_t * The Event_Wheel is thread safe. * * The cl_event_wheel_t structure should be treated as opaque and should -* be manipulated only through the provided functions. +* be manipulated only through the provided functions. * * SYNOPSIS */ @@ -148,16 +148,16 @@ typedef struct _cl_event_wheel { * lock * Spinlock to guard internal structures. * -* p_external_lock -* Reference to external spinlock to guard internal structures -* if the event wheel is part of a larger object protected by its own lock +* p_external_lock +* Reference to external spinlock to guard internal structures +* if the event wheel is part of a larger object protected by its own lock * * events_map * A Map holding all registered event items by their key. * -* closing -* A flag indicating the event wheel is closing. This means that -* callbacks that are called when closing == TRUE should just be ignored. +* closing +* A flag indicating the event wheel is closing. This means that +* callbacks that are called when closing == TRUE should just be ignored. * * events_wheel * A list of the events sorted by expiration time. @@ -193,23 +193,23 @@ typedef struct _cl_event_wheel_reg_info { } cl_event_wheel_reg_info_t; /* * FIELDS -* map_item -* The map item of this event +* map_item +* The map item of this event * -* list_item -* The sorted by aging time list item +* list_item +* The sorted by aging time list item * -* key -* The key by which one can find the event +* key +* The key by which one can find the event * * pfn_aged_callback * The clients Event-Aged callback * -* aging_time -* The delta time [msec] for which the event should age. +* aging_time +* The delta time [msec] for which the event should age. * -* num_regs -* The number of times the same event (key) was registered +* num_regs +* The number of times the same event (key) was registered * * context * Client's context for event-aged callback. @@ -285,12 +285,12 @@ cl_event_wheel_init_ex(IN cl_event_wheel_t * const p_event_wheel, /* * PARAMETERS -* p_event_wheel -* [in] Pointer to a Event_Wheel. +* p_event_wheel +* [in] Pointer to a Event_Wheel. * -* p_external_lock -* [in] Reference to external spinlock to guard internal structures -* if the event wheel is part of a larger object protected by its own lock +* p_external_lock +* [in] Reference to external spinlock to guard internal structures +* if the event wheel is part of a larger object protected by its own lock * * RETURN VALUE * CL_SUCCESS if the operation is successful. @@ -375,8 +375,8 @@ cl_event_wheel_reg(IN cl_event_wheel_t * const p_event_wheel, * key * [in] The specifc Key by which events are registered. * -* aging_time_usec -* [in] The absolute time this event should age in usec +* aging_time_usec +* [in] The absolute time this event should age in usec * * pfn_callback * [in] Event Aging callback. The Event_Wheel calls this @@ -417,7 +417,7 @@ cl_event_wheel_unreg(IN cl_event_wheel_t * const p_event_wheel, * This function does not return a value. * * NOTES -* After the event has aged it is automatically removed from +* After the event has aged it is automatically removed from * the event wheel. So it should only be invoked when the need arises * to remove existing events before they age. *