proc: fix PG_locked reporting in /proc/kpageflags
[linux-2.6-block.git] / include / net / wext.h
CommitLineData
295f4a1f
JB
1#ifndef __NET_WEXT_H
2#define __NET_WEXT_H
3
4/*
5 * wireless extensions interface to the core code
6 */
7
881d966b
EB
8struct net;
9
295f4a1f 10#ifdef CONFIG_WIRELESS_EXT
881d966b
EB
11extern int wext_proc_init(struct net *net);
12extern void wext_proc_exit(struct net *net);
13extern int wext_handle_ioctl(struct net *net, struct ifreq *ifr, unsigned int cmd,
295f4a1f 14 void __user *arg);
87de87d5
DM
15extern int compat_wext_handle_ioctl(struct net *net, unsigned int cmd,
16 unsigned long arg);
295f4a1f 17#else
881d966b 18static inline int wext_proc_init(struct net *net)
295f4a1f
JB
19{
20 return 0;
21}
881d966b
EB
22static inline void wext_proc_exit(struct net *net)
23{
24 return;
25}
26static inline int wext_handle_ioctl(struct net *net, struct ifreq *ifr, unsigned int cmd,
295f4a1f
JB
27 void __user *arg)
28{
29 return -EINVAL;
30}
87de87d5
DM
31static inline int compat_wext_handle_ioctl(struct net *net, unsigned int cmd,
32 unsigned long arg)
33{
34 return -EINVAL;
35}
295f4a1f
JB
36#endif
37
38#endif /* __NET_WEXT_H */