Motr  M0
m0_layout Struct Reference

#include <layout.h>

Collaboration diagram for m0_layout:
Collaboration graph

Data Fields

uint64_t l_id
 
struct m0_layout_typel_type
 
struct m0_layout_domainl_dom
 
struct m0_ref l_ref
 
uint32_t l_user_count
 
struct m0_mutex l_lock
 
const struct m0_layout_opsl_ops
 
uint64_t l_magic
 
struct m0_tlink l_list_linkage
 
struct m0_pool_versionl_pver
 

Detailed Description

In-memory representation of a layout.

Definition at line 223 of file layout.h.

Field Documentation

◆ l_dom

struct m0_layout_domain* l_dom

Layout domain this layout object is part of.

Definition at line 231 of file layout.h.

◆ l_id

uint64_t l_id

Layout id.

Definition at line 225 of file layout.h.

◆ l_list_linkage

struct m0_tlink l_list_linkage

Linkage used for maintaining list of the layout objects stored in the m0_layout_domain object.

Definition at line 256 of file layout.h.

◆ l_lock

struct m0_mutex l_lock

Lock to protect a m0_layout instance, including all its direct and indirect members.

Definition at line 247 of file layout.h.

◆ l_magic

uint64_t l_magic

Magic number set while m0_layout object is initialised.

Definition at line 251 of file layout.h.

◆ l_ops

const struct m0_layout_ops* l_ops

Layout operations vector.

Definition at line 249 of file layout.h.

◆ l_pver

struct m0_pool_version* l_pver

A link to the in-memory copy of the pool version associated with this layout.

Definition at line 261 of file layout.h.

◆ l_ref

struct m0_ref l_ref

Reference counter for caching a layout.

Definition at line 234 of file layout.h.

◆ l_type

struct m0_layout_type* l_type

Layout type.

Definition at line 228 of file layout.h.

◆ l_user_count

uint32_t l_user_count

Layout user count, indicating how many users this layout has. For example files, other composite layouts using this layout. A layout can not be deleted from the layout DB as long as its user count is non-zero.

Definition at line 242 of file layout.h.


The documentation for this struct was generated from the following file: