简体   繁体   中英

how to create a interrupt service function in c for real time linux operating system?

Scenario : Client is sending a data and the server is receving the data from client via ethernet layer (udp). When the server receives a data from the client on the ip layer (kernel). It interrupts the kernel and kernel as to execute the data by the client, so I want to create a interrupt service function to catch the interrupt from the network service card.

could someone help me how to go about it ?

Like Alnitak above, I question that you really want to bypass the networking services of your operating system(s), which are real-time after all. So, I suggest you follow Basile Starynkevitch's advice and use poll , select or even just recv from a task with adequate scheduling policy and priority.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM