zouboan commented on PR #1228:
URL: https://github.com/apache/nuttx-apps/pull/1228#issuecomment-1458347536
Hello:
I'm very interested in NuttX's native uORB, but there's some question
puzzled me. when uORB register a customer sensor by `ioctl` of usensor:
https://github.com/apache/nuttx-apps/blob/master/system/uorb/uORB/uORB.c#L85
usensor will call `sensor_custom_register` to register a new sensor, and the
`file_operations` of new sensor is given by `lower->driver.ops =
&g_usensor_ops;`
https://github.com/apache/nuttx/blob/master/drivers/sensors/usensor.c#L113-L115
what puzzled me is that the `g_usensor_ops` is actually `NULL`, and there's
no assignment for `g_usensor_ops` In usensor.c or `lower->ops` in sensor.c. so,
how can the new sensor's file_operations working?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]