home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / lxapi32.zip / Include / Linux / kmod.h < prev    next >
C/C++ Source or Header  |  2002-04-26  |  2KB  |  55 lines

  1. /* $Id: kmod.h,v 1.2 2002/04/26 23:09:09 smilcke Exp $ */
  2.  
  3. #ifndef __LINUX_KMOD_H__
  4. #define __LINUX_KMOD_H__
  5.  
  6. /*
  7.  *    include/linux/kmod.h
  8.  *
  9.  *      This program is free software; you can redistribute it and/or modify
  10.  *      it under the terms of the GNU General Public License as published by
  11.  *      the Free Software Foundation; either version 2 of the License, or
  12.  *      (at your option) any later version.
  13.  *
  14.  *      This program is distributed in the hope that it will be useful,
  15.  *      but WITHOUT ANY WARRANTY; without even the implied warranty of
  16.  *      MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  17.  *      GNU General Public License for more details.
  18.  *
  19.  *      You should have received a copy of the GNU General Public License
  20.  *      along with this program; if not, write to the Free Software
  21.  *      Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  22.  */
  23.  
  24. //#include <linux/config.h>
  25. #include <linux/errno.h>
  26.  
  27. #ifdef CONFIG_KMOD
  28. #if (defined(TARGET_OS2) && !defined(NOOS2LXAPI))
  29. extern int (*request_module)(const char *name);
  30. #else
  31. extern int request_module(const char *name);
  32. #endif // TARGET_OS2
  33. #ifdef TARGET_OS2
  34. #ifndef NOOS2LXAPI
  35. extern int (*release_module)(const char *name);
  36. #else
  37. extern int release_module(const char *name);
  38. #endif // NOOS2LXAPI
  39. #endif // TARGET_OS2
  40. #else
  41. static __inline__ int request_module(const char * name) { return -ENOSYS; }
  42. #ifdef TARGET_OS2
  43. static __inline__ int release_module(const char * name) { return -ENOSYS; }
  44. #endif // TARGET_OS2
  45. #endif // NOOS2LXAPI
  46.  
  47. extern int exec_usermodehelper(char *program_path, char *argv[], char *envp[]);
  48. extern int call_usermodehelper(char *path, char *argv[], char *envp[]);
  49.  
  50. #ifdef CONFIG_HOTPLUG
  51. extern char hotplug_path [];
  52. #endif
  53.  
  54. #endif /* __LINUX_KMOD_H__ */
  55.