search for: br_ioctl_deviceless

Displaying 3 results from an estimated 3 matches for "br_ioctl_deviceless".

2007 Apr 18
1
[Bridge] Re: Re: a problem about brctl
...t;> >> brctl delif br0 eth0.3 >> >> At lastest operation,I delif eth0.3 from br0 several times,and the system will crack down, and the following infomation will display at console: >># brctl delif br0 eth0.3 >>zhsdebug: main() line 60.... >><4>zhs_debug:br_ioctl_deviceless_stub() line 314 >><4>br_ioctl_deviceless() start,arg0=0x00000000,arg1=0... >><4>zhs_debug:br_ioctl_deviceless_stub() line 316 >><4>zhs_debug:br_ioctl_deviceless_stub() line 314 >><4>br_ioctl_deviceless() start,arg0=0x7fff7d68,arg1=32... >>&lt...
2007 Apr 18
1
[Bridge] [PATCH 2.4] bridge - eliminate br_ioctl_mutex
...include <linux/kernel.h> #include <linux/if_bridge.h> #include <linux/inetdevice.h> +#include <linux/rtnetlink.h> #include <asm/uaccess.h> #include "br_private.h" @@ -230,11 +231,8 @@ return -EOPNOTSUPP; } -static DECLARE_MUTEX(ioctl_mutex); - int br_ioctl_deviceless_stub(unsigned long arg) { - int err; unsigned long i[3]; if (!capable(CAP_NET_ADMIN)) @@ -243,11 +241,8 @@ if (copy_from_user(i, (void *)arg, 3*sizeof(unsigned long))) return -EFAULT; - down(&ioctl_mutex); - err = br_ioctl_deviceless(i[0], i[1], i[2]); - up(&ioctl_mutex); - -...
2007 Apr 18
0
[Bridge] [PATCH] (4/11) bridge - ioctl cleanup and consolidation
...+ br_stp_set_path_cost(p, args[2]); spin_unlock_bh(&br->lock); return ret; } case BRCTL_GET_FDB_ENTRIES: - return br_fdb_get_entries(br, (void *)arg0, arg1, arg2); + return br_fdb_get_entries(br, (void *)args[1], args[2], args[3]); } return -EOPNOTSUPP; } -static int br_ioctl_deviceless(unsigned int cmd, - unsigned long arg0, - unsigned long arg1) + +int br_ioctl_deviceless_stub(unsigned long uarg) { - switch (cmd) - { + unsigned long args[3]; + + if (copy_from_user(args, (void *)uarg, sizeof(args))) + return -EFAULT; + + switch (args[0]) { case BRCTL_GET_VER...