Low level controller for the Hubo 2 and Hubo 2+ platforms designed by Daniel M. Lofaro. The system is based on the IPC called ACH by Neil Dantam and Mike Stilman.
File descriptor is treated as count; this will produce undefined behavior.
I'm actually not even sure what this function is supposed to do. Should it read one CAN frame with a timeout? If so, I don't think there is any need to repeatedly select() as the kernel cannot receive a partial CAN frame, so you won't block on read() with half the message.
I think poll() is a little nicer than select(), but they both do the same thing (poll() is from BSD, select() is from SysV).
File descriptor is treated as count; this will produce undefined behavior.
I'm actually not even sure what this function is supposed to do. Should it read one CAN frame with a timeout? If so, I don't think there is any need to repeatedly select() as the kernel cannot receive a partial CAN frame, so you won't block on read() with half the message.
I think poll() is a little nicer than select(), but they both do the same thing (poll() is from BSD, select() is from SysV).