Re: ioctl get_info: Bad address
Brought to you by:
aeb,
bencollins
From: Carl K. <ca...@pe...> - 2011-08-09 16:12:48
|
On Tue, Aug 9, 2011 at 10:32 AM, Clemens Ladisch <cl...@la...> wrote: > Carl Karsten wrote: >> ioctl get_info: Bad address >> >> https://gitorious.org/cfk_misc/fwdiag/blobs/master/async-test.c > > int main(int argc, char *argv[]) > { > struct fw_cdev_get_info get_info; > struct fw_cdev_event_bus_reset bus_reset; > ... > get_info.version = 3; > get_info.rom_length = 0; > get_info.rom = 0; > get_info.bus_reset = (u64)&bus_reset; > get_info.bus_reset_closure = 0; > if (ioctl(fd, FW_CDEV_IOC_GET_INFO, &get_info) == -1) { > perror("ioctl get_info"); > > Which architectures are you using in userspace and in the kernel? > > (veyepar)juser@cnt2:~$ file /sbin/async-test /sbin/async-test: ELF 32-bit LSB executable, Intel 80386, version 1 (GNU/Linux), statically linked, for GNU/Linux 2.6.15, not stripped (veyepar)juser@cnt2:~$ uname -a Linux cnt2 2.6.38-11-generic #47-Ubuntu SMP Fri Jul 15 19:27:09 UTC 2011 x86_64 x86_64 x86_64 GNU/Linux -- Carl K |