int ib_sa_path_rec_get (struct ib_device * device, u8 port_num, struct ib_sa_path_rec * rec, ib_sa_comp_mask comp_mask, int timeout_ms, unsigned int __nocast gfp_mask, void (*callback) int status, struct ib_sa_path_rec *resp, void *context, void * context, struct ib_sa_query ** sa_query);
Send a Path Record Get query to the SA to look up a path. The callback function will be called when the query completes (or fails); status is 0 for a successful response, -EINTR if the query is canceled, -ETIMEDOUT is the query timed out, or -EIO if an error occurred sending the query. The resp parameter of the callback is only valid if status is 0.
If the return value of ib_sa_path_rec_get is negative, it is an error code. Otherwise it is a query ID that can be used to cancel the query.