Solution for RTP root task to receive Kernel Mode event

Source: Internet
Author: User
These two days have been blocked by this problem.
The VxWorks document does not mention how the root task of RTP of VxWorks receives the event from the kernel mode.
The root Rask here refers to the task automatically generated after RTP spwan.
It is said that some other companies also use this workaround method. Currently, WinDriver is helpless.

First, we need to clarify one concept: RTP can only see the rtp pid, but not the RTP rtp_id.

1. The first step is to obtain the PID, which is actually a member of wind_rtp.

Obj_handle pid = rtphandleidget (rtpptu0id)

2. Pass the PID and rtp_id as parameters to objhandletoobjid to obtain the obj_id.

Obj_id = objhandletoobjid (PID, rtp_id, false)

3. in kernel mode, use the obj_id obtained above as the task ID of the kernel task to send the event

Eventsend (INT) (obj_id, mask)

The above are all pseudoCodeAnd is a solution that is currently known.
This method cannot solve the problem of how other tasks in RTP receive events from the kernel mode.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.