Class: UBLK::DeviceInfo
- Inherits:
-
Data
- Object
- Data
- UBLK::DeviceInfo
- Defined in:
- lib/ublk/device_info.rb,
sig/ublk.rbs
Instance Attribute Summary collapse
-
#depth ⇒ Object
readonly
Returns the value of attribute depth.
-
#flags ⇒ Object
readonly
Returns the value of attribute flags.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#max_io_bytes ⇒ Object
readonly
Returns the value of attribute max_io_bytes.
-
#owner_gid ⇒ Object
readonly
Returns the value of attribute owner_gid.
-
#owner_uid ⇒ Object
readonly
Returns the value of attribute owner_uid.
-
#pid ⇒ Object
readonly
Returns the value of attribute pid.
-
#queues ⇒ Object
readonly
Returns the value of attribute queues.
-
#state ⇒ Object
readonly
Returns the value of attribute state.
Class Method Summary collapse
Instance Method Summary collapse
Instance Attribute Details
#depth ⇒ Object (readonly)
Returns the value of attribute depth
4 5 6 |
# File 'lib/ublk/device_info.rb', line 4 def depth @depth end |
#flags ⇒ Object (readonly)
Returns the value of attribute flags
4 5 6 |
# File 'lib/ublk/device_info.rb', line 4 def flags @flags end |
#id ⇒ Object (readonly)
Returns the value of attribute id
4 5 6 |
# File 'lib/ublk/device_info.rb', line 4 def id @id end |
#max_io_bytes ⇒ Object (readonly)
Returns the value of attribute max_io_bytes
4 5 6 |
# File 'lib/ublk/device_info.rb', line 4 def max_io_bytes @max_io_bytes end |
#owner_gid ⇒ Object (readonly)
Returns the value of attribute owner_gid
4 5 6 |
# File 'lib/ublk/device_info.rb', line 4 def owner_gid @owner_gid end |
#owner_uid ⇒ Object (readonly)
Returns the value of attribute owner_uid
4 5 6 |
# File 'lib/ublk/device_info.rb', line 4 def owner_uid @owner_uid end |
#pid ⇒ Object (readonly)
Returns the value of attribute pid
4 5 6 |
# File 'lib/ublk/device_info.rb', line 4 def pid @pid end |
#queues ⇒ Object (readonly)
Returns the value of attribute queues
4 5 6 |
# File 'lib/ublk/device_info.rb', line 4 def queues @queues end |
#state ⇒ Object (readonly)
Returns the value of attribute state
4 5 6 |
# File 'lib/ublk/device_info.rb', line 4 def state @state end |
Class Method Details
.from_native(values) ⇒ DeviceInfo
10 11 12 |
# File 'lib/ublk/device_info.rb', line 10 def self.from_native(values) new(*values) end |
Instance Method Details
#char_path ⇒ String
8 |
# File 'lib/ublk/device_info.rb', line 8 def char_path = "/dev/ublkc#{id}" |
#path ⇒ String
7 |
# File 'lib/ublk/device_info.rb', line 7 def path = "/dev/ublkb#{id}" |