Class: Nl::Linux::Binder::Notifications::Report

Inherits:
Genl::Message show all
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

#attributes, #fixed_header

Instance Method Summary collapse

Methods inherited from Genl::Message

decode

Methods inherited from Raw::Message

#append_attribute, decode, #initialize

Methods included from StructuredPayload

#encode, #initialize

Constructor Details

This class inherits a constructor from Nl::Raw::Message

Instance Method Details

#code ⇒ Integer

The application-defined code from the transaction.

Returns:

  • (Integer)

See Also:



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.

Returns:

  • (String)

See Also:



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.

Returns:

  • (Integer)

See Also:



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.

Returns:

  • (Integer)

See Also:



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.

Returns:

  • (Integer)

See Also:



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.

Returns:

  • (Integer)

See Also:



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.

Returns:

  • (Integer)

See Also:



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.

Returns:

  • (Integer)

See Also:



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.

Returns:

  • (Integer)

See Also:



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.

Returns:

  • (Integer)

See Also:



256
# File 'nl-linux/generated/nl/linux/binder.rb', line 256

def to_tid; attributes[:"to_tid"]&.value; end