1 /* -*- mode: c; c-basic-offset: 8; indent-tabs-mode: nil; -*-
2 * vim:expandtab:shiftwidth=8:tabstop=8:
4 * This file is part of Lustre, http://www.lustre.org
5 * This file is not subject to copyright protection.
8 #define DEBUG_SUBSYSTEM S_PORTALS
9 #include <portals/lib-p30.h>
11 int lib_api_ni_status (nal_t *apinal, ptl_sr_index_t sr_idx,
12 ptl_sr_value_t *status)
18 int lib_api_ni_dist (nal_t *apinal, ptl_process_id_t *pid, unsigned long *dist)
20 lib_nal_t *nal = apinal->nal_data;
22 if (nal->libnal_ni.ni_loopback &&
23 pid->nid == nal->libnal_ni.ni_pid.nid) {
28 return (nal->libnal_dist(nal, pid->nid, dist));