rdma - Issue in SA query Infiniband -
what parameter context passed function ib_sa_path_rec_get ib_sa?
it common asynchronous functions in kernel accept callback function , context pointer. once handling complete, callback function called passing context pointer 1 of parameters. allows caller identify specific invocation callback being called.
in case of ib_sa_path_rec_get
, can see example 1 of calls functions in ipoib module. call passes callback function path_rec_completion
, context of type struct ipoib_path *
. once sa query handling complete, callback function called, , uses context parameter identify ipoib_path
struct function being called.
Comments
Post a Comment