diff options
| author | Christoph Hellwig <hch@lst.de> | 2003-01-14 20:56:22 -0800 |
|---|---|---|
| committer | Christoph Hellwig <hch@lst.de> | 2003-01-14 20:56:22 -0800 |
| commit | 298d8a0447c3d1ca65d929702ddb86b32b6e34b4 (patch) | |
| tree | a4812dfa32f7120f9394c793b91570a389873133 /include/linux/devfs_fs_kernel.h | |
| parent | b30d9e8b2f59df1e40fa1dd93df12aea13543b69 (diff) | |
[PATCH] umode_t changes from Adam's mini-devfs
The use of umode_t instead of devfs-specific char vs block #defines
in Adam's mini-devfs patch makes sense independant of whether his patch
should get merged. While reviewing his changes I also notices that
most of the number allocation functionality in devfs has no business
beeing exported. In addition I cleaned up devfs_alloc_devnum/
devfs_dealloc_devnum a bit.
Diffstat (limited to 'include/linux/devfs_fs_kernel.h')
| -rw-r--r-- | include/linux/devfs_fs_kernel.h | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/include/linux/devfs_fs_kernel.h b/include/linux/devfs_fs_kernel.h index 491dc297b930..97100e343a37 100644 --- a/include/linux/devfs_fs_kernel.h +++ b/include/linux/devfs_fs_kernel.h @@ -21,9 +21,6 @@ #define DEVFS_FL_DEFAULT DEVFS_FL_NONE -#define DEVFS_SPECIAL_CHR 0 -#define DEVFS_SPECIAL_BLK 1 - typedef struct devfs_entry * devfs_handle_t; #ifdef CONFIG_DEVFS_FS @@ -58,10 +55,6 @@ extern int devfs_set_file_size (devfs_handle_t de, unsigned long size); extern int devfs_only (void); extern int devfs_register_tape (devfs_handle_t de); extern void devfs_unregister_tape(int num); -extern int devfs_alloc_major (char type); -extern void devfs_dealloc_major (char type, int major); -extern dev_t devfs_alloc_devnum (char type); -extern void devfs_dealloc_devnum (char type, dev_t devnum); extern int devfs_alloc_unique_number (struct unique_numspace *space); extern void devfs_dealloc_unique_number (struct unique_numspace *space, int number); @@ -129,41 +122,18 @@ static inline int devfs_register_tape (devfs_handle_t de) static inline void devfs_unregister_tape(int num) { } -static inline int devfs_alloc_major (char type) -{ - return -1; -} - -static inline void devfs_dealloc_major (char type, int major) -{ - return; -} - -static inline dev_t devfs_alloc_devnum (char type) -{ - return 0; -} - -static inline void devfs_dealloc_devnum (char type, dev_t devnum) -{ - return; -} - static inline int devfs_alloc_unique_number (struct unique_numspace *space) { return -1; } - static inline void devfs_dealloc_unique_number (struct unique_numspace *space, int number) { return; } - static inline void mount_devfs_fs (void) { return; } #endif /* CONFIG_DEVFS_FS */ - #endif /* _LINUX_DEVFS_FS_KERNEL_H */ |
