xiaoxiang781216 commented on PR #8370: URL: https://github.com/apache/nuttx/pull/8370#issuecomment-1420183766
> Dear @xiaoxiang781216 san > > > > Dear @xiaoxiang781216 san > > > > @SPRESENSE but how to pass the ioctl to usrsock server now? > > > > > > > > > This fix only add a new Socket Type for requests to Daemons that do not use the device's Socket. Therefore, the PASS method to usrsock server will remain the same. > > > > > > Ok, I saw SOCK_CTRL will convert to the real type: https://github.com/apache/nuttx/pull/8370/files#diff-098d0f88e64dc86480d735d351725fce63ff53c8b0d834ca460ba61c2eb9bb13R289-R304 So, what's the benefit to add SOCK_CTRL? > > The benefit of this change is that Daemon can determine not to consume Socket resources for devices that should not consume them.(e.g. One of modem as ALT1250 can use 5 internal socket only.) By adding the type SOCK_CTRL and specifying that type in the Socket for requests such as the ifup command or ifconfig command, Daemon will know not to open the Socket for the device. So Daemon can receive SOCK_CTRL to prevent the device from consuming Socket resources by not opening the Socket for the device. Ok, so the patch tries to reduce the driver consumption, but the nework stack self. Look reasonable, thanks. -- 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]
