Class: Nl::Linux::Binder::Notifications::Report
- Inherits:
-
Genl::Message
- Object
- Raw::Message
- Genl::Message
- Nl::Linux::Binder::Notifications::Report
- Defined in:
- nl-linux/generated/nl/linux/binder.rb
Overview
A multicast event sent to userspace subscribers to notify them about binder transaction failures. The generated report provides the full details of the specific transaction that failed. The intention is for programs to monitor these events and react to the failures as needed.
Multicast group: report.
Constant Summary collapse
- TYPE =
1- FIXED_HEADER =
nil- ATTRIBUTE_SET =
AttributeSets::Report
- ATTRIBUTES =
Ractor.make_shareable(%i[error context from_pid from_tid to_pid to_tid is_reply flags code data_size])
Instance Attribute Summary
Attributes included from StructuredPayload
Instance Method Summary collapse
-
#code ⇒ Integer
The application-defined code from the transaction.
-
#context ⇒ String
The binder context where the transaction occurred.
-
#data_size ⇒ Integer
The transaction payload size in bytes.
-
#error ⇒ Integer
The enum binder_driver_return_protocol returned to the sender.
-
#flags ⇒ Integer
The bitmask of enum transaction_flags from the transaction.
-
#from_pid ⇒ Integer
The PID of the sender process.
-
#from_tid ⇒ Integer
The TID of the sender thread.
-
#is_reply ⇒ Integer
When present, indicates the failed transaction is a reply.
-
#to_pid ⇒ Integer
The PID of the recipient process.
-
#to_tid ⇒ Integer
The TID of the recipient thread.
Methods inherited from Genl::Message
Methods inherited from Raw::Message
#append_attribute, decode, #initialize
Methods included from StructuredPayload
Constructor Details
This class inherits a constructor from Nl::Raw::Message
Instance Method Details
#code ⇒ Integer
The application-defined code from the transaction.
271 |
# File 'nl-linux/generated/nl/linux/binder.rb', line 271 def code; attributes[:"code"]&.value; end |
#context ⇒ String
The binder context where the transaction occurred.
234 |
# File 'nl-linux/generated/nl/linux/binder.rb', line 234 def context; attributes[:"context"]&.value; end |
#data_size ⇒ Integer
The transaction payload size in bytes.
276 |
# File 'nl-linux/generated/nl/linux/binder.rb', line 276 def data_size; attributes[:"data_size"]&.value; end |
#error ⇒ Integer
The enum binder_driver_return_protocol returned to the sender.
229 |
# File 'nl-linux/generated/nl/linux/binder.rb', line 229 def error; attributes[:"error"]&.value; end |
#flags ⇒ Integer
The bitmask of enum transaction_flags from the transaction.
266 |
# File 'nl-linux/generated/nl/linux/binder.rb', line 266 def flags; attributes[:"flags"]&.value; end |
#from_pid ⇒ Integer
The PID of the sender process.
239 |
# File 'nl-linux/generated/nl/linux/binder.rb', line 239 def from_pid; attributes[:"from_pid"]&.value; end |
#from_tid ⇒ Integer
The TID of the sender thread.
244 |
# File 'nl-linux/generated/nl/linux/binder.rb', line 244 def from_tid; attributes[:"from_tid"]&.value; end |
#is_reply ⇒ Integer
When present, indicates the failed transaction is a reply.
261 |
# File 'nl-linux/generated/nl/linux/binder.rb', line 261 def is_reply; attributes[:"is_reply"]&.value; end |
#to_pid ⇒ Integer
The PID of the recipient process. This attribute may not be present if the target could not be determined.
250 |
# File 'nl-linux/generated/nl/linux/binder.rb', line 250 def to_pid; attributes[:"to_pid"]&.value; end |
#to_tid ⇒ Integer
The TID of the recipient thread. This attribute may not be present if the target could not be determined.
256 |
# File 'nl-linux/generated/nl/linux/binder.rb', line 256 def to_tid; attributes[:"to_tid"]&.value; end |