In order not to rely on cordless tools, I want to get essays directly from the device using ioctl, in C this will not be a problem, but in Ruby it is completely different.
The problem is this: struct from wireless.h, which is used as ioctl login / response:
struct iw_point
{
void __user *pointer;
__u16 length;
__u16 flags;
};
The portion of the pointer must be a valid address of the memory region, followed by a length in bytes, followed by a flag field. I tried with an Array # pack array and a bit-struct gem, but haven't found a solution yet.
Is there a way around this memory pointer issue?
source
share