Skip to content

Use of owner_context and peer_context in fi_peer_rx_entry #8646

Closed Answered by aingerson
sunkuamzn asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @sunkuamzn The owner_context and peer_context can be used however you want. The owner_context is set by the owner of the srx and can only be used by the owner and the peer_context can only be used by the peer (the one calling into the srx to get a msg). The reason shm uses both is because it can be both an owner and a peer. It uses the owner_context to point to the head rx_entry (this is only for FI_MULTI_RECV). And it uses the peer_context to point to the incoming cmd when posting an unexpected message.

Replies: 7 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by shijin-aws
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

sunkuamzn
Mar 13, 2023
Collaborator Author

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants