Motr  M0
data_buf Struct Reference

#include <file_internal.h>

Collaboration diagram for data_buf:
Collaboration graph

Data Fields

uint64_t db_magic
 
struct m0_buf db_buf
 
struct m0_buf db_auxbuf
 
struct page * db_page
 
enum page_attr db_flags
 
struct target_ioreqdb_tioreq
 
struct m0_key_val db_maj_ele
 
uint64_t db_crc
 
uint32_t db_key
 

Detailed Description

Represents a simple data buffer wrapper object. The embedded db_buf::b_addr points to a kernel page.

Represents a simple data buffer wrapper object. The embedded db_buf::b_addr points to a 4K block of memory.

Definition at line 1450 of file file_internal.h.

Field Documentation

◆ db_auxbuf

struct m0_buf db_auxbuf

Auxiliary buffer used in case of read-modify-write IO. Used when page pointed to by ::db_buf::b_addr is partially spanned by incoming rmw request.

Definition at line 1462 of file file_internal.h.

◆ db_buf

struct m0_buf db_buf

Inline buffer pointing to a kernel page.

Inline buffer pointing to a kernel page or user memory,(or both).

Definition at line 1455 of file file_internal.h.

◆ db_crc

uint64_t db_crc

Holds the CRC value associated with the page in parity-verify mode.

Definition at line 209 of file pg.h.

◆ db_flags

enum page_attr db_flags

Miscellaneous flags. Can be used later for caching options.

Definition at line 1470 of file file_internal.h.

◆ db_key

uint32_t db_key

Key associated with the buffer to be used for replicated layout.

Definition at line 214 of file pg.h.

◆ db_magic

uint64_t db_magic

Holds M0_T1FS_DTBUF_MAGIC.

Definition at line 1452 of file file_internal.h.

◆ db_maj_ele

struct m0_key_val db_maj_ele

Represents index and value of majority element in case of a replicated layout. The value of key is unit number in a parity group.

Definition at line 204 of file pg.h.

◆ db_page

struct page* db_page

Definition at line 1464 of file file_internal.h.

◆ db_tioreq

struct target_ioreq * db_tioreq

Link to target-io-request to which the buffer will be mapped, in case it is part of input IO request.

Definition at line 1476 of file file_internal.h.


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