Motr  M0
rm_fops.h File Reference
#include "lib/buf.h"
#include "lib/buf_xc.h"
#include "lib/cookie.h"
#include "lib/cookie_xc.h"
#include "fop/fom_generic.h"
#include "fop/fom_generic_xc.h"
#include "fop/fop.h"
#include "xcode/xcode_attr.h"
Include dependency graph for rm_fops.h:

Go to the source code of this file.

Data Structures

struct  m0_rm_fop_owner
 
struct  m0_rm_fop_loan
 
struct  m0_rm_fop_credit
 
struct  m0_rm_fop_req
 
struct  m0_rm_fop_borrow
 
struct  m0_rm_fop_borrow_rep
 
struct  m0_rm_fop_revoke
 
struct  m0_rm_fop_revoke_rep
 
struct  m0_rm_fop_cancel
 

Macros

#define __MOTR_RM_FOPS_H__
 

Functions

struct m0_rm_fop_owner M0_XCA_DOMAIN (rpc)
 
M0_INTERNAL int m0_rm_fop_init (void)
 
M0_INTERNAL void m0_rm_fop_fini (void)
 

Variables

struct m0_cookie ow_cookie
 
struct m0_buf ow_resource
 
struct m0_cookie lo_cookie
 
struct m0_buf cr_opaque
 
struct m0_rm_fop_owner rrq_owner
 
struct m0_rm_fop_credit rrq_credit
 
uint64_t rrq_policy
 
uint64_t rrq_flags
 
struct m0_fid rrq_orig_owner
 
m0_time_t rrq_orig_time
 
uint64_t rrq_orig_seq
 
struct m0_rm_fop_req bo_base
 
struct m0_rm_fop_owner bo_creditor
 
struct m0_uint128 bo_group_id
 
int32_t br_rc
 
struct m0_rm_fop_loan br_loan
 
struct m0_rm_fop_credit br_credit
 
struct m0_buf br_lvb
 
struct m0_cookie br_creditor_cookie
 
struct m0_rm_fop_req fr_base
 
struct m0_rm_fop_loan fr_loan
 
int32_t rr_rc
 
struct m0_cookie rr_debtor_cookie
 
struct m0_rm_fop_loan fc_loan
 
struct m0_cookie fc_creditor_cookie
 
struct m0_fop_type m0_rm_fop_borrow_fopt
 
struct m0_fop_type m0_rm_fop_borrow_rep_fopt
 
struct m0_fop_type m0_rm_fop_revoke_fopt
 
struct m0_fop_type m0_rm_fop_revoke_rep_fopt
 
struct m0_fop_type m0_rm_fop_cancel_fopt
 
struct m0_fop_type m0_fop_generic_reply_fopt
 

Macro Definition Documentation

◆ __MOTR_RM_FOPS_H__

#define __MOTR_RM_FOPS_H__

Definition at line 26 of file rm_fops.h.

Variable Documentation

◆ bo_base

struct m0_rm_fop_req bo_base

Definition at line 602 of file rm_fops.h.

◆ bo_creditor

struct m0_rm_fop_owner bo_creditor

Definition at line 603 of file rm_fops.h.

◆ bo_group_id

struct m0_uint128 bo_group_id

Definition at line 604 of file rm_fops.h.

◆ br_credit

struct m0_rm_fop_credit br_credit

Definition at line 604 of file rm_fops.h.

◆ br_creditor_cookie

struct m0_cookie br_creditor_cookie

Whenever a borrow request is made with creditor cookie NULL, A new owner is created on creditor side and this creditor is assigned a new cookie. Next time borrower wants to make a new request for resource, this cookie will be used.

Definition at line 612 of file rm_fops.h.

◆ br_loan

struct m0_rm_fop_loan br_loan

Definition at line 603 of file rm_fops.h.

◆ br_lvb

struct m0_buf br_lvb

Definition at line 605 of file rm_fops.h.

◆ br_rc

int32_t br_rc

Definition at line 602 of file rm_fops.h.

◆ cr_opaque

struct m0_buf cr_opaque

Definition at line 602 of file rm_fops.h.

◆ fc_creditor_cookie

struct m0_cookie fc_creditor_cookie

Definition at line 603 of file rm_fops.h.

◆ fc_loan

struct m0_rm_fop_loan fc_loan

Definition at line 602 of file rm_fops.h.

◆ fr_base

struct m0_rm_fop_req fr_base

Definition at line 602 of file rm_fops.h.

◆ fr_loan

struct m0_rm_fop_loan fr_loan

Definition at line 603 of file rm_fops.h.

◆ lo_cookie

struct m0_cookie lo_cookie

Definition at line 602 of file rm_fops.h.

◆ ow_cookie

struct m0_cookie ow_cookie

Definition at line 602 of file rm_fops.h.

◆ ow_resource

struct m0_buf ow_resource

Definition at line 603 of file rm_fops.h.

◆ rr_debtor_cookie

struct m0_cookie rr_debtor_cookie

Debtor sends its own cookie. This is useful for the creditor to identify the debtor. It's necessary to identify the debtor when a loan has been given to many debtors belonging to the same group.

Definition at line 609 of file rm_fops.h.

◆ rr_rc

int32_t rr_rc

Definition at line 602 of file rm_fops.h.

◆ rrq_credit

struct m0_rm_fop_credit rrq_credit

Definition at line 604 of file rm_fops.h.

◆ rrq_flags

uint64_t rrq_flags

Definition at line 606 of file rm_fops.h.

◆ rrq_orig_owner

struct m0_fid rrq_orig_owner

Definition at line 610 of file rm_fops.h.

◆ rrq_orig_seq

uint64_t rrq_orig_seq

Definition at line 612 of file rm_fops.h.

◆ rrq_orig_time

m0_time_t rrq_orig_time

Definition at line 611 of file rm_fops.h.

◆ rrq_owner

struct m0_rm_fop_owner rrq_owner

Definition at line 603 of file rm_fops.h.

◆ rrq_policy

uint64_t rrq_policy

Definition at line 605 of file rm_fops.h.