Documentation ¶
Overview ¶
Package drm provides a library to interact with DRM (Direct Rendering Manager) and KMS (Kernel Mode Setting) interfaces. DRM is a low level interface for the graphics card (gpu) and this package enables the creation of graphics library on top of the kernel drm/kms subsystem.
Index ¶
Constants ¶
View Source
const ( CapDumbBuffer uint64 = iota + 1 CapVBlankHighCRTC CapDumbPreferredDepth CapDumbPreferShadow CapPrime CapTimestampMonotonic CapAsyncPageFlip CapCursorWidth CapCursorHeight CapAddFB2Modifiers = 0x10 )
View Source
const IOCTLBase = 'd'
Variables ¶
View Source
var ( // DRM_IOWR(0x00, struct drm_version) IOCTLVersion = ioctl.NewCode(ioctl.Read|ioctl.Write, uint16(unsafe.Sizeof(version{})), IOCTLBase, 0) // DRM_IOWR(0x0c, struct drm_get_cap) IOCTLGetCap = ioctl.NewCode(ioctl.Read|ioctl.Write, uint16(unsafe.Sizeof(capability{})), IOCTLBase, 0x0c) )
Functions ¶
func HasDumbBuffer ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.