USB Stack Hooking

2011-08-25 Thread Daniel Grech
Hi, I need to write a kernel module that would hook onto some function at a low level in the USB stack in order to have direct access to the raw data that is received from the USB Controller Hardware. Has this ever been done before ? Any ideas as to which function I could hook onto to have access t

Detach USB Device Driver and Attach it to ugen driver at runtime

2011-09-05 Thread Daniel Grech
Hi, I'm using libusb to gain access to raw USB Data from userspace. My problem is that this library only works with devices which are treated as generic devices ("handled by the ugen driver"). I need a mechanism that will allow me to detach any device specific drivers that are attached to a device

Kernel Space Memory Allocation

2011-10-27 Thread Daniel Grech
Hi, I am allocating memory from a device driver in the kernel and passing it on to another driver. In the other driver it is neccessary for me to determine whether the address passed is from user space or kernel space as this driver can also be called from user space. I am currently using the foll

USB FS

2011-11-08 Thread Daniel Grech
Hi, I am trying to write a program that makes use of the USB_FS ioctl calls to achieve it's functionality. Unfortunately I am encountering some difficulties with these ioctl calls and am not exactly sure which call is supposed to do what. Does anyone know of some resource which could help me under

USB Zero length packet

2012-01-13 Thread Daniel Grech
Hi, does anybody know what the procedure for sending a zero length packet through libusb on FreeBSD is ? Thanks in advance, Regards, Daniel ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsub

Re: USB over IP

2012-05-21 Thread Daniel Grech
something similar is being done in the latest versions of qemu. There is a usb redirection module which is in the form of a client/server architecture where USB packets are sent over IP. These two modules communicate with eachother through a protocol developed specifically for the redirection of US

Unsigned Integer Encoding

2012-08-15 Thread Daniel Grech
Hi, I have what is probably a really elementary question but I can't seem to figure it out. In the following snippet of code, why is it that a and b do not have the same value in the end ? : #define uint32_t unsigned int #define uint16_t unsigned short #define uint8_t unsigned char #define uint6