#api #api


r.gokool@...
 

Hello, I am new to Zephyr. I have a need to write code that runs on both RTOS and linux. It is structured as an event loop that can monitor sockets, local queues and timers for Linux. When looking at the APIs in the RTOS I noticed that there is no common poll API. I see k_poll() can poll kernel objects while zsock_poll() can poll sockets. Is there a way to monitor sockets and kernel objects using the same event loop?
If not I am curious to understand why the API deviates from Linux. Is there an RTOS specific benefit to splitting the poll api this way?

Input and suggestions requested. Thanks.

Join users@lists.zephyrproject.org to automatically receive all group messages.