Re: ioctl get_info: Bad address
Brought to you by:
aeb,
bencollins
From: Clemens L. <cl...@la...> - 2011-08-09 15:28:32
|
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? Regards, Clemens |