wangxiaoxin1 commented on code in PR #14332:
URL: https://github.com/apache/nuttx/pull/14332#discussion_r1802242675


##########
include/net/if.h:
##########
@@ -208,6 +208,12 @@ enum can_ioctl_state_e
   CAN_STATE_BUSY             /* The can/lin bus is busy */
 };
 
+struct can_ioctl_state_s
+{
+  uintptr_t priv;             /* This is private data. */

Review Comment:
   Because the car's autosar stipulates that there are two modes of sleep and 
wake-up, internal/noraml, so a flag bit needs to be added to distinguish 
internal/noraml. The reason why priv is selected here is also for convenience 
and can be used for other uses later. Increase practicality



-- 
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: commits-unsubscr...@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to