Class: UserfaultFD::Fault
- Inherits:
-
Object
- Object
- UserfaultFD::Fault
- Defined in:
- lib/userfaultfd.rb,
sig/userfaultfd.rbs,
ext/userfaultfd/userfaultfd.c
Overview
A page-fault event. Resolution methods wake the faulting thread by default.
Instance Attribute Summary collapse
-
#address ⇒ Integer
readonly
Returns the value of attribute address.
-
#flags ⇒ Array[:write | :wp | :minor]
readonly
Returns the value of attribute flags.
-
#thread_id ⇒ Integer?
readonly
Returns the value of attribute thread_id.
Instance Method Summary collapse
- #continue(*args) ⇒ Integer
- #copy(*args) ⇒ Integer
- #minor? ⇒ Boolean
- #move(*args) ⇒ Integer
- #poison(*args) ⇒ Integer
- #wake ⇒ nil
- #wp? ⇒ Boolean
- #write? ⇒ Boolean
- #zero(*args) ⇒ Integer
Instance Attribute Details
#address ⇒ Integer (readonly)
Returns the value of attribute address.
52 53 54 |
# File 'sig/userfaultfd.rbs', line 52 def address @address end |
#flags ⇒ Array[:write | :wp | :minor] (readonly)
Returns the value of attribute flags.
53 54 55 |
# File 'sig/userfaultfd.rbs', line 53 def flags @flags end |
#thread_id ⇒ Integer? (readonly)
Returns the value of attribute thread_id.
54 55 56 |
# File 'sig/userfaultfd.rbs', line 54 def thread_id @thread_id end |
Instance Method Details
#continue(*args) ⇒ Integer
1263 |
# File 'ext/userfaultfd/userfaultfd.c', line 1263
def continue: (?wake: bool) -> Integer
|
#copy(*args) ⇒ Integer
1174 |
# File 'ext/userfaultfd/userfaultfd.c', line 1174
def copy: (String, ?wake: bool) -> Integer
|
#minor? ⇒ Boolean
54 |
# File 'lib/userfaultfd.rb', line 54 def minor? = flags.include?(:minor) |
#move(*args) ⇒ Integer
1321 |
# File 'ext/userfaultfd/userfaultfd.c', line 1321
def move: (Region source, ?offset: Integer, ?wake: bool) -> Integer
|
#poison(*args) ⇒ Integer
1293 |
# File 'ext/userfaultfd/userfaultfd.c', line 1293
def poison: (?wake: bool) -> Integer
|
#wake ⇒ nil
1245 |
# File 'ext/userfaultfd/userfaultfd.c', line 1245
def wake: () -> nil
|
#wp? ⇒ Boolean
53 |
# File 'lib/userfaultfd.rb', line 53 def wp? = flags.include?(:wp) |
#write? ⇒ Boolean
52 |
# File 'lib/userfaultfd.rb', line 52 def write? = flags.include?(:write) |
#zero(*args) ⇒ Integer
1219 |
# File 'ext/userfaultfd/userfaultfd.c', line 1219
def zero: (?wake: bool) -> Integer
|