/* SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB */ /* * Copyright (c) 2016 Mellanox Technologies Ltd. All rights reserved. * Copyright (c) 2015 System Fabric Works, Inc. All rights reserved.
*/
/* * data structure to describe a 'task' which is a short * function that returns 0 as long as it needs to be * called again.
*/ struct rxe_task { struct work_struct work; int state;
spinlock_t lock; struct rxe_qp *qp; int (*func)(struct rxe_qp *qp); int ret; long num_sched; long num_done;
};
int rxe_alloc_wq(void);
void rxe_destroy_wq(void);
/* * init rxe_task structure * qp => parameter to pass to func * func => function to call until it returns != 0
*/ int rxe_init_task(struct rxe_task *task, struct rxe_qp *qp, int (*func)(struct rxe_qp *));
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.