org.freedesktop.UDisks2.Block.ZRAM

org.freedesktop.UDisks2.Block.ZRAM — ZRAM block device

Methods

Refresh         ();
Activate        (IN  i     priority,
                 IN  a{sv} options);
ActivateLabeled (IN  i     priority,
                 IN  s     label,
                 IN  a{sv} options);
Deactivate      (IN  a{sv} options);

Properties

disksize          readable   t
max_comp_streams  readable   t
comp_algorithm    readable   s
active            readable   b
num_reads         readable   t
num_writes        readable   t
invalid_io        readable   t
zero_pages        readable   t
orig_data_size    readable   t
compr_data_size   readable   t
mem_used_total    readable   t

Description

One of zram devices created by manager.

Since 2.3.0

Method Details

The Refresh() method

Refresh ();

Used to refresh properties changed over time.

Since 2.3.0


The Activate() method

Activate (IN  i     priority,
          IN  a{sv} options);

Enables zram device for paging and swapping.

No additional options are currently defined.

IN i priority:

Priority of swap device.

IN a{sv} options:

Additional options.

Since 2.3.0


The ActivateLabeled() method

ActivateLabeled (IN  i     priority,
                 IN  s     label,
                 IN  a{sv} options);

Enables zram device for paging and swapping.

No additional options are currently defined.

IN i priority:

Priority of swap device.

IN s label:

A label for the swap device.

IN a{sv} options:

Additional options.

Since 2.3.0


The Deactivate() method

Deactivate (IN  a{sv} options);

Disables zram device for paging and swapping.

No additional options are currently defined.

IN a{sv} options:

Additional options.

Since 2.3.0

Property Details

The "disksize" property

disksize  readable   t

Since 2.3.0


The "max_comp_streams" property

max_comp_streams  readable   t

Since 2.3.0


The "comp_algorithm" property

comp_algorithm  readable   s

Since 2.3.0


The "active" property

active  readable   b

Since 2.3.0


The "num_reads" property

num_reads  readable   t

Since 2.3.0


The "num_writes" property

num_writes  readable   t

Since 2.3.0


The "invalid_io" property

invalid_io  readable   t

Since 2.3.0


The "zero_pages" property

zero_pages  readable   t

Since 2.3.0


The "orig_data_size" property

orig_data_size  readable   t

Since 2.3.0


The "compr_data_size" property

compr_data_size  readable   t

Since 2.3.0


The "mem_used_total" property

mem_used_total  readable   t

Since 2.3.0