source: svn/trunk/newcon3bcm2_21bu/toolchain/mips-linux-uclibc/include/linux/devfs_fs_kernel.h

Last change on this file was 2, checked in by jglee, 11 years ago

first commit

  • Property svn:executable set to *
File size: 1.5 KB
Line 
1#ifndef _LINUX_DEVFS_FS_KERNEL_H
2#define _LINUX_DEVFS_FS_KERNEL_H
3
4#include <linux/fs.h>
5#include <linux/types.h>
6
7#include <asm/semaphore.h>
8
9#define DEVFS_SUPER_MAGIC                0x1373
10
11#ifdef CONFIG_DEVFS_FS
12extern int devfs_mk_bdev(dev_t dev, umode_t mode, const char *fmt, ...)
13    __attribute__ ((format(printf, 3, 4)));
14extern int devfs_mk_cdev(dev_t dev, umode_t mode, const char *fmt, ...)
15    __attribute__ ((format(printf, 3, 4)));
16extern int devfs_mk_symlink(const char *name, const char *link);
17extern int devfs_mk_dir(const char *fmt, ...)
18    __attribute__ ((format(printf, 1, 2)));
19extern void devfs_remove(const char *fmt, ...)
20    __attribute__ ((format(printf, 1, 2)));
21extern int devfs_register_tape(const char *name);
22extern void devfs_unregister_tape(int num);
23extern void mount_devfs_fs(void);
24#else                           /*  CONFIG_DEVFS_FS  */
25static inline int devfs_mk_bdev(dev_t dev, umode_t mode, const char *fmt, ...)
26{
27        return 0;
28}
29static inline int devfs_mk_cdev(dev_t dev, umode_t mode, const char *fmt, ...)
30{
31        return 0;
32}
33static inline int devfs_mk_symlink(const char *name, const char *link)
34{
35        return 0;
36}
37static inline int devfs_mk_dir(const char *fmt, ...)
38{
39        return 0;
40}
41static inline void devfs_remove(const char *fmt, ...)
42{
43}
44static inline int devfs_register_tape(const char *name)
45{
46        return -1;
47}
48static inline void devfs_unregister_tape(int num)
49{
50}
51static inline void mount_devfs_fs(void)
52{
53        return;
54}
55#endif                          /*  CONFIG_DEVFS_FS  */
56#endif                          /*  _LINUX_DEVFS_FS_KERNEL_H  */
Note: See TracBrowser for help on using the repository browser.