Motr  M0
cookie.h File Reference
#include "lib/types.h"
#include "xcode/xcode.h"
Include dependency graph for cookie.h:

Go to the source code of this file.

Data Structures

struct  m0_cookie
 

Macros

#define __MOTR_LIB_COOKIE_H__
 
#define m0_cookie_of(cookie, type, field)
 

Functions

struct m0_cookie M0_XCA_DOMAIN (be|rpc)
 
M0_INTERNAL int m0_cookie_global_init (void)
 
M0_INTERNAL void m0_cookie_global_fini (void)
 
M0_INTERNAL void m0_cookie_new (uint64_t *gen)
 
M0_INTERNAL void m0_cookie_init (struct m0_cookie *cookie, const uint64_t *obj)
 
M0_INTERNAL int m0_cookie_dereference (const struct m0_cookie *cookie, uint64_t **addr)
 
M0_INTERNAL bool m0_addr_is_sane (const uint64_t *addr)
 
M0_INTERNAL bool m0_addr_is_sane_and_aligned (const uint64_t *addr)
 
M0_INTERNAL bool m0_cookie_is_null (const struct m0_cookie *cookie)
 
M0_INTERNAL bool m0_cookie_is_eq (const struct m0_cookie *cookie1, const struct m0_cookie *cookie2)
 

Variables

uint64_t co_addr
 
uint64_t co_generation
 
M0_EXTERN const struct m0_cookie M0_COOKIE_NULL
 

Macro Definition Documentation

◆ __MOTR_LIB_COOKIE_H__

#define __MOTR_LIB_COOKIE_H__

Definition at line 26 of file cookie.h.

Variable Documentation

◆ co_addr

uint64_t co_addr

Definition at line 138 of file cookie.h.

◆ co_generation

uint64_t co_generation

Definition at line 139 of file cookie.h.

◆ M0_COOKIE_NULL

M0_EXTERN const struct m0_cookie M0_COOKIE_NULL

Definition at line 133 of file cookie.h.