Contents

setAttribute

Generic method to set some attribute of the framebuffer device.

Declaration

virtual IOReturn setAttribute(
 IOSelectattribute,
 uintptr_tvalue );

Parameters

  • attribute:

    Defines the attribute to be set. Some defined attributes are:

    kIOPowerAttribute The IOFramebuffer class implements most power management (IOService) methods. It calls the subclass to carry out the power management state change with this attribute. When carrying out power state changes, the subclass should call IOFramebuffer::handleEvent for certain changes - set that method for more information.

  • value:

    The new value for the attribute.

Return Value

an IOReturn code.

Overview

IOFramebuffer subclasses may implement this method to allow arbitrary attribute/value pairs to be set.

See Also

Miscellaneous