1 /* -*- mode: c; c-basic-offset: 8; indent-tabs-mode: nil; -*-
2 * vim:expandtab:shiftwidth=8:tabstop=8:
6 * Process identification routines
7 * Copyright (C) 2001-2003 Cluster File Systems, Inc.
9 * This file is part of Lustre, http://www.lustre.org
11 * Lustre is free software; you can redistribute it and/or
12 * modify it under the terms of version 2 of the GNU General Public
13 * License as published by the Free Software Foundation.
15 * Lustre is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU General Public License for more details.
20 * You should have received a copy of the GNU General Public License
21 * along with Lustre; if not, write to the Free Software
22 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
25 /* This should be removed. The NAL should have the PID information */
26 #define DEBUG_SUBSYSTEM S_PORTALS
28 #if defined (__KERNEL__)
29 extern int getpid(void);
34 #include <portals/lib-p30.h>
37 lib_api_get_id(nal_t *apinal, ptl_process_id_t *pid)
39 lib_nal_t *nal = apinal->nal_data;
41 *pid = nal->libnal_ni.ni_pid;