Class: UBLK::DeviceInfo

Inherits:
Data
  • Object
show all
Defined in:
lib/ublk/device_info.rb,
sig/ublk.rbs

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#depthObject (readonly)

Returns the value of attribute depth

Returns:

  • (Object)

    the current value of depth



4
5
6
# File 'lib/ublk/device_info.rb', line 4

def depth
  @depth
end

#flagsObject (readonly)

Returns the value of attribute flags

Returns:

  • (Object)

    the current value of flags



4
5
6
# File 'lib/ublk/device_info.rb', line 4

def flags
  @flags
end

#idObject (readonly)

Returns the value of attribute id

Returns:

  • (Object)

    the current value of id



4
5
6
# File 'lib/ublk/device_info.rb', line 4

def id
  @id
end

#max_io_bytesObject (readonly)

Returns the value of attribute max_io_bytes

Returns:

  • (Object)

    the current value of max_io_bytes



4
5
6
# File 'lib/ublk/device_info.rb', line 4

def max_io_bytes
  @max_io_bytes
end

#owner_gidObject (readonly)

Returns the value of attribute owner_gid

Returns:

  • (Object)

    the current value of owner_gid



4
5
6
# File 'lib/ublk/device_info.rb', line 4

def owner_gid
  @owner_gid
end

#owner_uidObject (readonly)

Returns the value of attribute owner_uid

Returns:

  • (Object)

    the current value of owner_uid



4
5
6
# File 'lib/ublk/device_info.rb', line 4

def owner_uid
  @owner_uid
end

#pidObject (readonly)

Returns the value of attribute pid

Returns:

  • (Object)

    the current value of pid



4
5
6
# File 'lib/ublk/device_info.rb', line 4

def pid
  @pid
end

#queuesObject (readonly)

Returns the value of attribute queues

Returns:

  • (Object)

    the current value of queues



4
5
6
# File 'lib/ublk/device_info.rb', line 4

def queues
  @queues
end

#stateObject (readonly)

Returns the value of attribute state

Returns:

  • (Object)

    the current value of state



4
5
6
# File 'lib/ublk/device_info.rb', line 4

def state
  @state
end

Class Method Details

.from_native(values) ⇒ DeviceInfo

Parameters:

  • values (Array[Integer])

Returns:



10
11
12
# File 'lib/ublk/device_info.rb', line 10

def self.from_native(values)
  new(*values)
end

Instance Method Details

#char_pathString

Returns:

  • (String)


8
# File 'lib/ublk/device_info.rb', line 8

def char_path = "/dev/ublkc#{id}"

#pathString

Returns:

  • (String)


7
# File 'lib/ublk/device_info.rb', line 7

def path = "/dev/ublkb#{id}"