[openib-general] [PATCH][SDP][14/33] Fix comment style in sdp_kvec.c
Tom Duffy
Tom.Duffy at Sun.COM
Thu Feb 17 14:10:53 PST 2005
Signed-off-by: Tom Duffy <tduffy at sun.com>
--- drivers/infiniband/ulp/sdp-orig/sdp_kvec.c 2005-02-10 18:42:56.228029000 -0800
+++ drivers/infiniband/ulp/sdp/sdp_kvec.c 2005-02-17 10:58:33.716019000 -0800
@@ -1,35 +1,46 @@
/*
- This software is available to you under a choice of one of two
- licenses. You may choose to be licensed under the terms of the GNU
- General Public License (GPL) Version 2, available at
- <http://www.fsf.org/copyleft/gpl.html>, or the OpenIB.org BSD
- license, available in the LICENSE.TXT file accompanying this
- software. These details are also available at
- <http://openib.org/license.html>.
-
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
- NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
- BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
- ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
- CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
- SOFTWARE.
-
- Copyright (c) 2005 Topspin Communications. All rights reserved.
-
- $Id: sdp_kvec.c 159 2004-05-14 00:16:54Z libor $
-*/
+ * Copyright (c) 2005 Topspin Communications. All rights reserved.
+ *
+ * This software is available to you under a choice of one of two
+ * licenses. You may choose to be licensed under the terms of the GNU
+ * General Public License (GPL) Version 2, available from the file
+ * COPYING in the main directory of this source tree, or the
+ * OpenIB.org BSD license below:
+ *
+ * Redistribution and use in source and binary forms, with or
+ * without modification, are permitted provided that the following
+ * conditions are met:
+ *
+ * - Redistributions of source code must retain the above
+ * copyright notice, this list of conditions and the following
+ * disclaimer.
+ *
+ * - Redistributions in binary form must reproduce the above
+ * copyright notice, this list of conditions and the following
+ * disclaimer in the documentation and/or other materials
+ * provided with the distribution.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+ * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+ * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+ * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
+ * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
+ * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ *
+ * $Id$
+ */
#include "sdp_main.h"
-/* ------------------------------------------------------------------- */
-/* */
-/* static kvec internal functions */
-/* */
-/* ------------------------------------------------------------------- */
-/* ========================================================================= */
-/*.._sdp_iocb_q_cancel_lookup_func -- lookup function for cancelation */
+/*
+ * static kvec internal functions
+ */
+
+/*
+ * _sdp_iocb_q_cancel_lookup_func - lookup function for cancelation
+ */
static int _sdp_iocb_q_cancel_lookup_func(struct sdpc_desc *element, void *arg)
{
SDP_CHECK_NULL(element, -EINVAL);
@@ -37,20 +48,17 @@ static int _sdp_iocb_q_cancel_lookup_fun
return ((SDP_DESC_TYPE_IOCB == element->type) ? 0 : -ERANGE);
} /* _sdp_iocb_q_cancel_lookup_func */
-/* ------------------------------------------------------------------- */
-/* */
-/* Public write functions */
-/* */
-/* ------------------------------------------------------------------- */
-
-/* ------------------------------------------------------------------- */
-/* */
-/* Cancel operations */
-/* */
-/* ------------------------------------------------------------------- */
+/*
+ * Public write functions
+ */
+
+/*
+ * Cancel operations
+ */
-/* ========================================================================= */
-/*.._sdp_iocb_q_cancel_read_pending -- cancel all pending read AIOs */
+/*
+ * _sdp_iocb_q_cancel_read_pending - cancel all pending read AIOs
+ */
static int _sdp_iocb_q_cancel_read_pending(struct sdp_opt *conn, ssize_t error)
{
SDP_CHECK_NULL(conn, -EINVAL);
@@ -59,8 +67,9 @@ static int _sdp_iocb_q_cancel_read_pendi
error);
} /* _sdp_iocb_q_cancel_read_pending */
-/* ========================================================================= */
-/*.._sdp_iocb_q_cancel_read_source -- cancel all pending read AIOs */
+/*
+ * _sdp_iocb_q_cancel_read_source - cancel all pending read AIOs
+ */
static int _sdp_iocb_q_cancel_read_source(struct sdp_opt *conn, ssize_t error)
{
struct sdpc_iocb *iocb;
@@ -82,8 +91,9 @@ static int _sdp_iocb_q_cancel_read_sourc
return 0;
} /* _sdp_iocb_q_cancel_read_source */
-/* ========================================================================= */
-/*.._sdp_iocb_q_cancel_read_snk -- cancel all pending read AIOs */
+/*
+ * _sdp_iocb_q_cancel_read_snk - cancel all pending read AIOs
+ */
static int _sdp_iocb_q_cancel_read_snk(struct sdp_opt *conn, ssize_t error)
{
SDP_CHECK_NULL(conn, -EINVAL);
@@ -91,8 +101,9 @@ static int _sdp_iocb_q_cancel_read_snk(s
return sdp_iocb_q_cancel(&conn->r_snk, SDP_IOCB_F_ALL, error);
} /* _sdp_iocb_q_cancel_read_snk */
-/* ========================================================================= */
-/*.._sdp_iocb_q_cancel_write_pending -- cancel all pending read AIOs */
+/*
+ * _sdp_iocb_q_cancel_write_pending - cancel all pending read AIOs
+ */
static int _sdp_iocb_q_cancel_write_pending(struct sdp_opt *conn, ssize_t error)
{
struct sdpc_iocb *iocb;
@@ -116,8 +127,9 @@ static int _sdp_iocb_q_cancel_write_pend
return 0;
} /* _sdp_iocb_q_cancel_write_pending */
-/* ========================================================================= */
-/*.._sdp_iocb_q_cancel_write_source -- cancel all pending source AIOs */
+/*
+ * _sdp_iocb_q_cancel_write_source - cancel all pending source AIOs
+ */
static int _sdp_iocb_q_cancel_write_source(struct sdp_opt *conn, ssize_t error)
{
SDP_CHECK_NULL(conn, -EINVAL);
@@ -125,8 +137,9 @@ static int _sdp_iocb_q_cancel_write_sour
return sdp_iocb_q_cancel(&conn->w_src, SDP_IOCB_F_ALL, error);
} /* _sdp_iocb_q_cancel_write_source */
-/* ========================================================================= */
-/*.._sdp_iocb_q_cancel_write_snk -- cancel all pending sink AIOs */
+/*
+ * _sdp_iocb_q_cancel_write_snk - cancel all pending sink AIOs
+ */
static int _sdp_iocb_q_cancel_write_snk(struct sdp_opt *conn, ssize_t error)
{
struct sdpc_iocb *iocb;
@@ -148,8 +161,9 @@ static int _sdp_iocb_q_cancel_write_snk(
return 0;
} /* _sdp_iocb_q_cancel_write_snk */
-/* ========================================================================= */
-/*..sdp_iocb_q_cancel_all_read -- cancel all outstanding read AIOs */
+/*
+ * sdp_iocb_q_cancel_all_read - cancel all outstanding read AIOs
+ */
int sdp_iocb_q_cancel_all_read(struct sdp_opt *conn, ssize_t error)
{
int result;
@@ -168,8 +182,9 @@ int sdp_iocb_q_cancel_all_read(struct sd
return 0;
} /* sdp_iocb_q_cancel_all_read */
-/* ========================================================================= */
-/*..sdp_iocb_q_cancel_all_write -- cancel all outstanding write AIOs */
+/*
+ * sdp_iocb_q_cancel_all_write - cancel all outstanding write AIOs
+ */
int sdp_iocb_q_cancel_all_write(struct sdp_opt *conn, ssize_t error)
{
int result;
@@ -188,8 +203,9 @@ int sdp_iocb_q_cancel_all_write(struct s
return 0;
} /* sdp_iocb_q_cancel_all_write */
-/* ========================================================================= */
-/*..sdp_iocb_q_cancel_all -- cancel all outstanding AIOs */
+/*
+ * sdp_iocb_q_cancel_all - cancel all outstanding AIOs
+ */
int sdp_iocb_q_cancel_all(struct sdp_opt *conn, ssize_t error)
{
int result;
More information about the general
mailing list