~apw/module-init-tools/debian-merge-3.16

« back to all changes in this revision

Viewing changes to util.h

* New upstream release.
  + modprobe -o is not supported anymore.
  + Added support for modules.devname for the benefit of udev.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * utility functions for insmod/rmmod/depmod/modprobe.
 
3
 *
 
4
 * These functions include generic support for undercore conversion,
 
5
 * endian conversion for common BE<->LE translation, etc.
 
6
 */
 
7
 
1
8
#ifndef _UTIL_H
2
9
#define _UTIL_H
3
10
 
10
17
        const char *str[0];
11
18
};
12
19
 
 
20
/* Read one logical line from a configuration file, and handle continuation */
13
21
char *getline_wrapped(FILE *file, unsigned int *linenum);
14
22
 
 
23
 
15
24
void filename2modname(char *modname, const char *filename);
16
25
char *underscores(char *string);
17
26
char *my_basename(const char *path);