Motr  M0
Resource Manager Networking

Functions

M0_INTERNAL int m0_rm_net_locate (struct m0_rm_credit *credit, struct m0_rm_remote *other)
 
M0_INTERNAL void m0_rm_remote_owner_set (struct m0_rm_remote *rem, uint64_t id)
 

Detailed Description

Function Documentation

◆ m0_rm_net_locate()

M0_INTERNAL int m0_rm_net_locate ( struct m0_rm_credit credit,
struct m0_rm_remote other 
)

Constructs a remote owner associated with "credit".

After this function returns, "other" is in the process of locating the remote service and remote owner, as described in the comment on m0_rm_remote.

Definition at line 3487 of file rm.c.

Here is the call graph for this function:

◆ m0_rm_remote_owner_set()

M0_INTERNAL void m0_rm_remote_owner_set ( struct m0_rm_remote rem,
uint64_t  id 
)
Todo:
Assigns a service to a given remote.
Precondition
rem->rem_state < REM_SERVICE_LOCATED
Postcondition
rem->rem_state == REM_SERVICE_LOCATED

M0_INTERNAL void m0_rm_remote_service_set(struct m0_rm_remote *rem, struct m0_service_id *sid); Assigns an owner id to a given remote.

Precondition
rem->rem_state < REM_OWNER_LOCATED
Postcondition
rem->rem_state == REM_OWNER_LOCATED