mirror of
https://github.com/ipxe/ipxe
synced 2026-02-14 02:31:26 +03:00
[process] Pass containing object pointer to process step() methods
Give the step() method a pointer to the containing object, rather than a pointer to the process. This is consistent with the operation of interface methods, and allows a single function to serve as both an interface method and a process step() method. Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
@@ -866,10 +866,7 @@ static void ib_step ( struct process *process __unused ) {
|
||||
}
|
||||
|
||||
/** Infiniband event queue process */
|
||||
struct process ib_process __permanent_process = {
|
||||
.list = LIST_HEAD_INIT ( ib_process.list ),
|
||||
.step = ib_step,
|
||||
};
|
||||
PERMANENT_PROCESS ( ib_process, ib_step );
|
||||
|
||||
/***************************************************************************
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user