sphinx.addnodesdocument)}( rawsourcechildren]( translations LanguagesNode)}(hhh](h pending_xref)}(hhh]docutils.nodesTextChinese (Simplified)}parenthsba attributes}(ids]classes]names]dupnames]backrefs] refdomainstdreftypedoc reftarget%/translations/zh_CN/gpu/drm-internalsmodnameN classnameN refexplicitutagnamehhh ubh)}(hhh]hChinese (Traditional)}hh2sbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget%/translations/zh_TW/gpu/drm-internalsmodnameN classnameN refexplicituh1hhh ubh)}(hhh]hItalian}hhFsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget%/translations/it_IT/gpu/drm-internalsmodnameN classnameN refexplicituh1hhh ubh)}(hhh]hJapanese}hhZsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget%/translations/ja_JP/gpu/drm-internalsmodnameN classnameN refexplicituh1hhh ubh)}(hhh]hKorean}hhnsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget%/translations/ko_KR/gpu/drm-internalsmodnameN classnameN refexplicituh1hhh ubh)}(hhh]hSpanish}hhsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget%/translations/sp_SP/gpu/drm-internalsmodnameN classnameN refexplicituh1hhh ubeh}(h]h ]h"]h$]h&]current_languageEnglishuh1h hh _documenthsourceNlineNubhsection)}(hhh](htitle)}(h DRM Internalsh]h DRM Internals}(hhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhhh?/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals.rsthKubh paragraph)}(hThis chapter documents DRM internals relevant to driver authors and developers working to add support for the latest features to existing drivers.h]hThis chapter documents DRM internals relevant to driver authors and developers working to add support for the latest features to existing drivers.}(hhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhhhhubh)}(hXFirst, we go over some typical driver initialization requirements, like setting up command buffers, creating an initial output configuration, and initializing core services. Subsequent sections cover core internals in more detail, providing implementation notes and examples.h]hXFirst, we go over some typical driver initialization requirements, like setting up command buffers, creating an initial output configuration, and initializing core services. Subsequent sections cover core internals in more detail, providing implementation notes and examples.}(hhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK hhhhubh)}(hXdThe DRM layer provides several services to graphics drivers, many of them driven by the application interfaces it provides through libdrm, the library that wraps most of the DRM ioctls. These include vblank event handling, memory management, output management, framebuffer management, command submission & fencing, suspend/resume support, and DMA services.h]hXdThe DRM layer provides several services to graphics drivers, many of them driven by the application interfaces it provides through libdrm, the library that wraps most of the DRM ioctls. These include vblank event handling, memory management, output management, framebuffer management, command submission & fencing, suspend/resume support, and DMA services.}(hhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhhhhubh)}(hhh](h)}(hDriver Initializationh]hDriver Initialization}(hhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhhhhhKubh)}(hXdAt the core of every DRM driver is a :c:type:`struct drm_driver ` structure. Drivers typically statically initialize a drm_driver structure, and then pass it to drm_dev_alloc() to allocate a device instance. After the device instance is fully initialized it can be registered (which makes it accessible from userspace) using drm_dev_register().h](h%At the core of every DRM driver is a }(hhhhhNhNubh)}(h(:c:type:`struct drm_driver `h]hliteral)}(hhh]hstruct drm_driver}(hjhhhNhNubah}(h]h ](xrefcc-typeeh"]h$]h&]uh1jhhubah}(h]h ]h"]h$]h&]refdocgpu/drm-internals refdomainj reftypetype refexplicitrefwarn reftarget drm_driveruh1hhhhKhhubhX structure. Drivers typically statically initialize a drm_driver structure, and then pass it to drm_dev_alloc() to allocate a device instance. After the device instance is fully initialized it can be registered (which makes it accessible from userspace) using drm_dev_register().}(hhhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhKhhhhubh)}(hXThe :c:type:`struct drm_driver ` structure contains static information that describes the driver and features it supports, and pointers to methods that the DRM core will call to implement the DRM API. We will first go through the :c:type:`struct drm_driver ` static information fields, and will then describe individual operations in details as they get used in later sections.h](hThe }(hj+hhhNhNubh)}(h(:c:type:`struct drm_driver `h]j)}(hj5h]hstruct drm_driver}(hj7hhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhj3ubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnj drm_driveruh1hhhhKhj+ubh structure contains static information that describes the driver and features it supports, and pointers to methods that the DRM core will call to implement the DRM API. We will first go through the }(hj+hhhNhNubh)}(h(:c:type:`struct drm_driver `h]j)}(hjXh]hstruct drm_driver}(hjZhhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjVubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnj drm_driveruh1hhhhKhj+ubhw static information fields, and will then describe individual operations in details as they get used in later sections.}(hj+hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhKhhhhubh)}(hhh](h)}(hDriver Informationh]hDriver Information}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhK(ubh)}(hhh](h)}(hMajor, Minor and Patchlevelh]hMajor, Minor and Patchlevel}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhK+ubh)}(hint major; int minor; int patchlevel; The DRM core identifies driver versions by a major, minor and patch level triplet. The information is printed to the kernel log at initialization time and passed to userspace through the DRM_IOCTL_VERSION ioctl.h]hint major; int minor; int patchlevel; The DRM core identifies driver versions by a major, minor and patch level triplet. The information is printed to the kernel log at initialization time and passed to userspace through the DRM_IOCTL_VERSION ioctl.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK-hjhhubh)}(hXThe major and minor numbers are also used to verify the requested driver API version passed to DRM_IOCTL_SET_VERSION. When the driver API changes between minor versions, applications can call DRM_IOCTL_SET_VERSION to select a specific version of the API. If the requested major isn't equal to the driver major, or the requested minor is larger than the driver minor, the DRM_IOCTL_SET_VERSION call will return an error. Otherwise the driver's set_version() method will be called with the requested version.h]hXThe major and minor numbers are also used to verify the requested driver API version passed to DRM_IOCTL_SET_VERSION. When the driver API changes between minor versions, applications can call DRM_IOCTL_SET_VERSION to select a specific version of the API. If the requested major isn’t equal to the driver major, or the requested minor is larger than the driver minor, the DRM_IOCTL_SET_VERSION call will return an error. Otherwise the driver’s set_version() method will be called with the requested version.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK3hjhhubeh}(h]major-minor-and-patchlevelah ]h"]major, minor and patchlevelah$]h&]uh1hhjhhhhhK+ubh)}(hhh](h)}(hName and Descriptionh]hName and Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhK=ubh)}(hchar \*name; char \*desc; char \*date; The driver name is printed to the kernel log at initialization time, used for IRQ registration and passed to userspace through DRM_IOCTL_VERSION.h]hchar *name; char *desc; char *date; The driver name is printed to the kernel log at initialization time, used for IRQ registration and passed to userspace through DRM_IOCTL_VERSION.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK?hjhhubh)}(hThe driver description is a purely informative string passed to userspace through the DRM_IOCTL_VERSION ioctl and otherwise unused by the kernel.h]hThe driver description is a purely informative string passed to userspace through the DRM_IOCTL_VERSION ioctl and otherwise unused by the kernel.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKDhjhhubeh}(h]name-and-descriptionah ]h"]name and descriptionah$]h&]uh1hhjhhhhhK=ubeh}(h]driver-informationah ]h"]driver informationah$]h&]uh1hhhhhhhhK(ubh)}(hhh](h)}(hModule Initializationh]hModule Initialization}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhKIubh)}(hXThis library provides helpers registering DRM drivers during module initialization and shutdown. The provided helpers act like bus-specific module helpers, such as module_pci_driver(), but respect additional parameters that control DRM driver registration.h]hXThis library provides helpers registering DRM drivers during module initialization and shutdown. The provided helpers act like bus-specific module helpers, such as module_pci_driver(), but respect additional parameters that control DRM driver registration.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:75: ./include/drm/drm_module.hhK hjhhubh)}(hMBelow is an example of initializing a DRM driver for a device on the PCI bus.h]hMBelow is an example of initializing a DRM driver for a device on the PCI bus.}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:75: ./include/drm/drm_module.hhKhjhhubh literal_block)}(hGstruct pci_driver my_pci_drv = { }; drm_module_pci_driver(my_pci_drv);h]hGstruct pci_driver my_pci_drv = { }; drm_module_pci_driver(my_pci_drv);}hj3sbah}(h]h ]h"]h$]h&] xml:spacepreserveforcelanguagej highlight_args}uh1j1hZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:75: ./include/drm/drm_module.hhKhjhhubh)}(hThe generated code will test if DRM drivers are enabled and register the PCI driver my_pci_drv. For more complex module initialization, you can still use module_init() and module_exit() in your driver.h]hThe generated code will test if DRM drivers are enabled and register the PCI driver my_pci_drv. For more complex module initialization, you can still use module_init() and module_exit() in your driver.}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:75: ./include/drm/drm_module.hhKhjhhubeh}(h]module-initializationah ]h"]module initializationah$]h&]uh1hhhhhhhhKIubh)}(hhh](h)}(h#Device Instance and Driver Handlingh]h#Device Instance and Driver Handling}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj_hhhhhKOubh)}(hXTA device instance for a drm driver is represented by :c:type:`struct drm_device `. This is allocated and initialized with devm_drm_dev_alloc(), usually from bus-specific ->probe() callbacks implemented by the driver. The driver then needs to initialize all the various subsystems for the drm device like memory management, vblank handling, modesetting support and initial output configuration plus obviously initialize all the corresponding hardware bits. Finally when everything is up and running and ready for userspace the device instance can be published using drm_dev_register().h](h5A device instance for a drm driver is represented by }(hjphhhNhNubh)}(h(:c:type:`struct drm_device `h]j)}(hjzh]hstruct drm_device}(hj|hhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjxubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnj drm_deviceuh1hh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:81: ./drivers/gpu/drm/drm_drv.chM hjpubhX. This is allocated and initialized with devm_drm_dev_alloc(), usually from bus-specific ->probe() callbacks implemented by the driver. The driver then needs to initialize all the various subsystems for the drm device like memory management, vblank handling, modesetting support and initial output configuration plus obviously initialize all the corresponding hardware bits. Finally when everything is up and running and ready for userspace the device instance can be published using drm_dev_register().}(hjphhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhM hj_hhubh)}(hXThere is also deprecated support for initializing device instances using bus-specific helpers and the :c:type:`drm_driver.load ` callback. But due to backwards-compatibility needs the device instance have to be published too early, which requires unpretty global locking to make safe and is therefore only support for existing drivers not yet converted to the new scheme.h](hfThere is also deprecated support for initializing device instances using bus-specific helpers and the }(hjhhhNhNubh)}(h&:c:type:`drm_driver.load `h]j)}(hjh]hdrm_driver.load}(hjhhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnj drm_driveruh1hh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:81: ./drivers/gpu/drm/drm_drv.chMhjubh callback. But due to backwards-compatibility needs the device instance have to be published too early, which requires unpretty global locking to make safe and is therefore only support for existing drivers not yet converted to the new scheme.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMhj_hhubh)}(hXWhen cleaning up a device instance everything needs to be done in reverse: First unpublish the device instance with drm_dev_unregister(). Then clean up any other resources allocated at device initialization and drop the driver's reference to :c:type:`drm_device` using drm_dev_put().h](hWhen cleaning up a device instance everything needs to be done in reverse: First unpublish the device instance with drm_dev_unregister(). Then clean up any other resources allocated at device initialization and drop the driver’s reference to }(hjhhhNhNubh)}(h:c:type:`drm_device`h]j)}(hjh]h drm_device}(hjhhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnj drm_deviceuh1hh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:81: ./drivers/gpu/drm/drm_drv.chMhjubh using drm_dev_put().}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMhj_hhubh)}(hXJNote that any allocation or resource which is visible to userspace must be released only when the final drm_dev_put() is called, and not when the driver is unbound from the underlying physical struct :c:type:`device`. Best to use :c:type:`drm_device` managed resources with drmm_add_action(), drmm_kmalloc() and related functions.h](hNote that any allocation or resource which is visible to userspace must be released only when the final drm_dev_put() is called, and not when the driver is unbound from the underlying physical struct }(hjhhhNhNubh)}(h:c:type:`device`h]j)}(hjh]hdevice}(hjhhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjdeviceuh1hh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:81: ./drivers/gpu/drm/drm_drv.chMhjubh. Best to use }(hjhhhNhNubh)}(h:c:type:`drm_device`h]j)}(hj4h]h drm_device}(hj6hhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhj2ubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnj drm_deviceuh1hhj-hMhjubhP managed resources with drmm_add_action(), drmm_kmalloc() and related functions.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj-hMhj_hhubh)}(hdevres managed resources like devm_kmalloc() can only be used for resources directly related to the underlying hardware device, and only used in code paths fully protected by drm_dev_enter() and drm_dev_exit().h]hdevres managed resources like devm_kmalloc() can only be used for resources directly related to the underlying hardware device, and only used in code paths fully protected by drm_dev_enter() and drm_dev_exit().}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:81: ./drivers/gpu/drm/drm_drv.chM#hj_hhubh)}(hhh](h)}(hDisplay driver exampleh]hDisplay driver example}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjjhNhNubh)}(hThe following example shows a typical structure of a DRM display driver. The example focus on the probe() function and the other functions that is almost always present and serves as a demonstration of devm_drm_dev_alloc().h]hThe following example shows a typical structure of a DRM display driver. The example focus on the probe() function and the other functions that is almost always present and serves as a demonstration of devm_drm_dev_alloc().}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:81: ./drivers/gpu/drm/drm_drv.chM*hjjubj2)}(hX struct driver_device { struct drm_device drm; void *userspace_facing; struct clk *pclk; }; static const struct drm_driver driver_drm_driver = { [...] }; static int driver_probe(struct platform_device *pdev) { struct driver_device *priv; struct drm_device *drm; int ret; priv = devm_drm_dev_alloc(&pdev->dev, &driver_drm_driver, struct driver_device, drm); if (IS_ERR(priv)) return PTR_ERR(priv); drm = &priv->drm; ret = drmm_mode_config_init(drm); if (ret) return ret; priv->userspace_facing = drmm_kzalloc(..., GFP_KERNEL); if (!priv->userspace_facing) return -ENOMEM; priv->pclk = devm_clk_get(dev, "PCLK"); if (IS_ERR(priv->pclk)) return PTR_ERR(priv->pclk); // Further setup, display pipeline etc platform_set_drvdata(pdev, drm); drm_mode_config_reset(drm); ret = drm_dev_register(drm); if (ret) return ret; drm_fbdev_{...}_setup(drm, 32); return 0; } // This function is called before the devm_ resources are released static int driver_remove(struct platform_device *pdev) { struct drm_device *drm = platform_get_drvdata(pdev); drm_dev_unregister(drm); drm_atomic_helper_shutdown(drm) return 0; } // This function is called on kernel restart and shutdown static void driver_shutdown(struct platform_device *pdev) { drm_atomic_helper_shutdown(platform_get_drvdata(pdev)); } static int __maybe_unused driver_pm_suspend(struct device *dev) { return drm_mode_config_helper_suspend(dev_get_drvdata(dev)); } static int __maybe_unused driver_pm_resume(struct device *dev) { drm_mode_config_helper_resume(dev_get_drvdata(dev)); return 0; } static const struct dev_pm_ops driver_pm_ops = { SET_SYSTEM_SLEEP_PM_OPS(driver_pm_suspend, driver_pm_resume) }; static struct platform_driver driver_driver = { .driver = { [...] .pm = &driver_pm_ops, }, .probe = driver_probe, .remove = driver_remove, .shutdown = driver_shutdown, }; module_platform_driver(driver_driver);h]hX struct driver_device { struct drm_device drm; void *userspace_facing; struct clk *pclk; }; static const struct drm_driver driver_drm_driver = { [...] }; static int driver_probe(struct platform_device *pdev) { struct driver_device *priv; struct drm_device *drm; int ret; priv = devm_drm_dev_alloc(&pdev->dev, &driver_drm_driver, struct driver_device, drm); if (IS_ERR(priv)) return PTR_ERR(priv); drm = &priv->drm; ret = drmm_mode_config_init(drm); if (ret) return ret; priv->userspace_facing = drmm_kzalloc(..., GFP_KERNEL); if (!priv->userspace_facing) return -ENOMEM; priv->pclk = devm_clk_get(dev, "PCLK"); if (IS_ERR(priv->pclk)) return PTR_ERR(priv->pclk); // Further setup, display pipeline etc platform_set_drvdata(pdev, drm); drm_mode_config_reset(drm); ret = drm_dev_register(drm); if (ret) return ret; drm_fbdev_{...}_setup(drm, 32); return 0; } // This function is called before the devm_ resources are released static int driver_remove(struct platform_device *pdev) { struct drm_device *drm = platform_get_drvdata(pdev); drm_dev_unregister(drm); drm_atomic_helper_shutdown(drm) return 0; } // This function is called on kernel restart and shutdown static void driver_shutdown(struct platform_device *pdev) { drm_atomic_helper_shutdown(platform_get_drvdata(pdev)); } static int __maybe_unused driver_pm_suspend(struct device *dev) { return drm_mode_config_helper_suspend(dev_get_drvdata(dev)); } static int __maybe_unused driver_pm_resume(struct device *dev) { drm_mode_config_helper_resume(dev_get_drvdata(dev)); return 0; } static const struct dev_pm_ops driver_pm_ops = { SET_SYSTEM_SLEEP_PM_OPS(driver_pm_suspend, driver_pm_resume) }; static struct platform_driver driver_driver = { .driver = { [...] .pm = &driver_pm_ops, }, .probe = driver_probe, .remove = driver_remove, .shutdown = driver_shutdown, }; module_platform_driver(driver_driver);}hjsbah}(h]h ]h"]h$]h&]jAjBjCjDj jE}uh1j1h[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:81: ./drivers/gpu/drm/drm_drv.chM.hjjubh)}(hX<Drivers that want to support device unplugging (USB, DT overlay unload) should use drm_dev_unplug() instead of drm_dev_unregister(). The driver must protect regions that is accessing device resources to prevent use after they're released. This is done using drm_dev_enter() and drm_dev_exit(). There is one shortcoming however, drm_dev_unplug() marks the drm_device as unplugged before drm_atomic_helper_shutdown() is called. This means that if the disable code paths are protected, they will not run on regular driver module unload, possibly leaving the hardware enabled.h]hX>Drivers that want to support device unplugging (USB, DT overlay unload) should use drm_dev_unplug() instead of drm_dev_unregister(). The driver must protect regions that is accessing device resources to prevent use after they’re released. This is done using drm_dev_enter() and drm_dev_exit(). There is one shortcoming however, drm_dev_unplug() marks the drm_device as unplugged before drm_atomic_helper_shutdown() is called. This means that if the disable code paths are protected, they will not run on regular driver module unload, possibly leaving the hardware enabled.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:81: ./drivers/gpu/drm/drm_drv.chMhjjubeh}(h]display-driver-exampleah ]h"]display driver exampleah$]h&]uh1hhj_hhhNhNubhindex)}(hhh]h}(h]h ]h"]h$]h&]entries](singledrm_wedge_task_info (C struct)c.drm_wedge_task_infohNtauh1jhj_hhhNhNubhdesc)}(hhh](hdesc_signature)}(hdrm_wedge_task_infoh]hdesc_signature_line)}(hstruct drm_wedge_task_infoh](hdesc_sig_keyword)}(hstructh]hstruct}(hjhhhNhNubah}(h]h ]kah"]h$]h&]uh1jhjhhhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:84: ./include/drm/drm_device.hhKubhdesc_sig_space)}(h h]h }(hjhhhNhNubah}(h]h ]wah"]h$]h&]uh1jhjhhhjhKubh desc_name)}(hdrm_wedge_task_infoh]h desc_sig_name)}(hjh]hdrm_wedge_task_info}(hjhhhNhNubah}(h]h ]nah"]h$]h&]uh1jhjubah}(h]h ](sig-namedescnameeh"]h$]h&]jAjBuh1jhjhhhjhKubeh}(h]h ]h"]h$]h&]jAjB add_permalinkuh1jsphinx_line_type declaratorhjhhhjhKubah}(h]jah ](sig sig-objecteh"]h$]h&] is_multiline _toc_parts) _toc_namehuh1jhjhKhjhhubh desc_content)}(hhh]h)}(h0information about the guilty task of a wedge devh]h0information about the guilty task of a wedge dev}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:84: ./include/drm/drm_device.hhK'hj*hhubah}(h]h ]h"]h$]h&]uh1j(hjhhhjhKubeh}(h]h ](j structeh"]h$]h&]domainj objtypejEdesctypejEnoindex noindexentrynocontentsentryuh1jhhhj_hNhNubh container)}(h**Definition**:: struct drm_wedge_task_info { pid_t pid; char comm[TASK_COMM_LEN]; }; **Members** ``pid`` pid of the task ``comm`` command name of the taskh](h)}(h**Definition**::h](hstrong)}(h**Definition**h]h Definition}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjUubh:}(hjUhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:84: ./include/drm/drm_device.hhK+hjQubj2)}(hLstruct drm_wedge_task_info { pid_t pid; char comm[TASK_COMM_LEN]; };h]hLstruct drm_wedge_task_info { pid_t pid; char comm[TASK_COMM_LEN]; };}hjtsbah}(h]h ]h"]h$]h&]jAjBuh1j1hZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:84: ./include/drm/drm_device.hhK-hjQubh)}(h **Members**h]jZ)}(hjh]hMembers}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:84: ./include/drm/drm_device.hhK2hjQubhdefinition_list)}(hhh](hdefinition_list_item)}(h``pid`` pid of the task h](hterm)}(h``pid``h]j)}(hjh]hpid}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:84: ./include/drm/drm_device.hhK+hjubh definition)}(hhh]h)}(hpid of the taskh]hpid of the task}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhK+hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhK+hjubj)}(h!``comm`` command name of the taskh](j)}(h``comm``h]j)}(hjh]hcomm}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:84: ./include/drm/drm_device.hhK,hjubj)}(hhh]h)}(hcommand name of the taskh]hcommand name of the task}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:84: ./include/drm/drm_device.hhK-hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhK,hjubeh}(h]h ]h"]h$]h&]uh1jhjQubeh}(h]h ] kernelindentah"]h$]h&]uh1jOhj_hhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jswitch_power_state (C enum)c.switch_power_statehNtauh1jhj_hhhNhNubj)}(hhh](j)}(hswitch_power_stateh]j)}(henum switch_power_stateh](j)}(henumh]henum}(hj?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;hhhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:84: ./include/drm/drm_device.hhK3ubj)}(h h]h }(hjNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;hhhjMhK3ubj)}(hswitch_power_stateh]j)}(hj9h]hswitch_power_state}(hj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\ubah}(h]h ](jjeh"]h$]h&]jAjBuh1jhj;hhhjMhK3ubeh}(h]h ]h"]h$]h&]jAjBjuh1jjjhj7hhhjMhK3ubah}(h]j2ah ](j j!eh"]h$]h&]j%j&)j'huh1jhjMhK3hj4hhubj))}(hhh]h)}(hpower state of drm deviceh]hpower state of drm device}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:84: ./include/drm/drm_device.hhK1hjhhubah}(h]h ]h"]h$]h&]uh1j(hj4hhhjMhK3ubeh}(h]h ](j enumeh"]h$]h&]jIj jJjjKjjLjMjNuh1jhhhj_hNhNubjP)}(h**Constants** ``DRM_SWITCH_POWER_ON`` Power state is ON ``DRM_SWITCH_POWER_OFF`` Power state is OFF ``DRM_SWITCH_POWER_CHANGING`` Power state is changing ``DRM_SWITCH_POWER_DYNAMIC_OFF`` Suspendedh](h)}(h **Constants**h]jZ)}(hjh]h Constants}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:84: ./include/drm/drm_device.hhK5hjubj)}(hhh](j)}(h*``DRM_SWITCH_POWER_ON`` Power state is ON h](j)}(h``DRM_SWITCH_POWER_ON``h]j)}(hjh]hDRM_SWITCH_POWER_ON}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:84: ./include/drm/drm_device.hhK8hjubj)}(hhh]h)}(hPower state is ONh]hPower state is ON}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhK8hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhK8hjubj)}(h,``DRM_SWITCH_POWER_OFF`` Power state is OFF h](j)}(h``DRM_SWITCH_POWER_OFF``h]j)}(hjh]hDRM_SWITCH_POWER_OFF}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:84: ./include/drm/drm_device.hhK;hjubj)}(hhh]h)}(hPower state is OFFh]hPower state is OFF}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhK;hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhK;hjubj)}(h6``DRM_SWITCH_POWER_CHANGING`` Power state is changing h](j)}(h``DRM_SWITCH_POWER_CHANGING``h]j)}(hj5h]hDRM_SWITCH_POWER_CHANGING}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3ubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:84: ./include/drm/drm_device.hhK>hj/ubj)}(hhh]h)}(hPower state is changingh]hPower state is changing}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjJhK>hjKubah}(h]h ]h"]h$]h&]uh1jhj/ubeh}(h]h ]h"]h$]h&]uh1jhjJhK>hjubj)}(h*``DRM_SWITCH_POWER_DYNAMIC_OFF`` Suspendedh](j)}(h ``DRM_SWITCH_POWER_DYNAMIC_OFF``h]j)}(hjnh]hDRM_SWITCH_POWER_DYNAMIC_OFF}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jhjlubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:84: ./include/drm/drm_device.hhK@hjhubj)}(hhh]h)}(h Suspendedh]h Suspended}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:84: ./include/drm/drm_device.hhKAhjubah}(h]h ]h"]h$]h&]uh1jhjhubeh}(h]h ]h"]h$]h&]uh1jhjhK@hjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jOhj_hhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jdrm_device (C struct) c.drm_devicehNtauh1jhj_hhhNhNubj)}(hhh](j)}(h drm_deviceh]j)}(hstruct drm_deviceh](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:84: ./include/drm/drm_device.hhKFubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhKFubj)}(h drm_deviceh]j)}(hjh]h drm_device}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jAjBuh1jhjhhhjhKFubeh}(h]h ]h"]h$]h&]jAjBjuh1jjjhjhhhjhKFubah}(h]jah ](j j!eh"]h$]h&]j%j&)j'huh1jhjhKFhjhhubj))}(hhh]h)}(hDRM device structureh]hDRM device structure}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:84: ./include/drm/drm_device.hhKChjhhubah}(h]h ]h"]h$]h&]uh1j(hjhhhjhKFubeh}(h]h ](j structeh"]h$]h&]jIj jJj"jKj"jLjMjNuh1jhhhj_hNhNubjP)}(hXL**Definition**:: struct drm_device { int if_version; struct kref ref; struct device *dev; struct device *dma_dev; struct { struct list_head resources; void *final_kfree; spinlock_t lock; } managed; const struct drm_driver *driver; void *dev_private; struct drm_minor *primary; struct drm_minor *render; struct drm_minor *accel; bool registered; struct drm_master *master; u32 driver_features; bool unplugged; struct inode *anon_inode; char *unique; struct mutex master_mutex; atomic_t open_count; struct mutex filelist_mutex; struct list_head filelist; struct list_head filelist_internal; struct mutex clientlist_mutex; struct list_head clientlist; bool vblank_disable_immediate; struct drm_vblank_crtc *vblank; spinlock_t vblank_time_lock; spinlock_t vbl_lock; u32 max_vblank_count; struct list_head vblank_event_list; spinlock_t event_lock; unsigned int num_crtcs; struct drm_mode_config mode_config; struct mutex object_name_lock; struct idr object_name_idr; struct drm_vma_offset_manager *vma_offset_manager; struct drm_vram_mm *vram_mm; enum switch_power_state switch_power_state; struct drm_fb_helper *fb_helper; struct dentry *debugfs_root; }; **Members** ``if_version`` Highest interface version set ``ref`` Object ref-count ``dev`` Device structure of bus-device ``dma_dev`` Device for DMA operations. Only required if the device **dev** cannot perform DMA by itself. Should be NULL otherwise. Call drm_dev_dma_dev() to get the DMA device instead of using this field directly. Call drm_dev_set_dma_dev() to set this field. DRM devices are sometimes bound to virtual devices that cannot perform DMA by themselves. Drivers should set this field to the respective DMA controller. Devices on USB and other peripheral busses also cannot perform DMA by themselves. The **dma_dev** field should point the bus controller that does DMA on behalve of such a device. Required for importing buffers via dma-buf. If set, the DRM core automatically releases the reference on the device. ``managed`` Managed resources linked to the lifetime of this :c:type:`drm_device` as tracked by **ref**. ``driver`` DRM driver managing the device ``dev_private`` DRM driver private data. This is deprecated and should be left set to NULL. Instead of using this pointer it is recommended that drivers use devm_drm_dev_alloc() and embed struct :c:type:`drm_device` in their larger per-device structure. ``primary`` Primary node. Drivers should not interact with this directly. debugfs interfaces can be registered with drm_debugfs_add_file(), and sysfs should be directly added on the hardware (and not character device node) struct device **dev**. ``render`` Render node. Drivers should not interact with this directly ever. Drivers should not expose any additional interfaces in debugfs or sysfs on this node. ``accel`` Compute Acceleration node ``registered`` Internally used by drm_dev_register() and drm_connector_register(). ``master`` Currently active master for this device. Protected by :c:type:`master_mutex` ``driver_features`` per-device driver features Drivers can clear specific flags here to disallow certain features on a per-device basis while still sharing a single :c:type:`struct drm_driver ` instance across all devices. ``unplugged`` Flag to tell if the device has been unplugged. See drm_dev_enter() and drm_dev_is_unplugged(). ``anon_inode`` inode for private address-space ``unique`` Unique name of the device ``master_mutex`` Lock for :c:type:`drm_minor.master ` and :c:type:`drm_file.is_master ` ``open_count`` Usage counter for outstanding files open, protected by drm_global_mutex ``filelist_mutex`` Protects **filelist**. ``filelist`` List of userspace clients, linked through :c:type:`drm_file.lhead `. ``filelist_internal`` List of open DRM files for in-kernel clients. Protected by :c:type:`filelist_mutex`. ``clientlist_mutex`` Protects :c:type:`clientlist` access. ``clientlist`` List of in-kernel clients. Protected by :c:type:`clientlist_mutex`. ``vblank_disable_immediate`` If true, vblank interrupt will be disabled immediately when the refcount drops to zero, as opposed to via the vblank disable timer. This can be set to true it the hardware has a working vblank counter with high-precision timestamping (otherwise there are races) and the driver uses drm_crtc_vblank_on() and drm_crtc_vblank_off() appropriately. Also, see **max_vblank_count**, :c:type:`drm_crtc_funcs.get_vblank_counter ` and :c:type:`drm_vblank_crtc_config.disable_immediate `. ``vblank`` Array of vblank tracking structures, one per :c:type:`struct drm_crtc `. For historical reasons (vblank support predates kernel modesetting) this is free-standing and not part of :c:type:`struct drm_crtc ` itself. It must be initialized explicitly by calling drm_vblank_init(). ``vblank_time_lock`` Protects vblank count and time updates during vblank enable/disable ``vbl_lock`` Top-level vblank references lock, wraps the low-level **vblank_time_lock**. ``max_vblank_count`` Maximum value of the vblank registers. This value +1 will result in a wrap-around of the vblank register. It is used by the vblank core to handle wrap-arounds. If set to zero the vblank core will try to guess the elapsed vblanks between times when the vblank interrupt is disabled through high-precision timestamps. That approach is suffering from small races and imprecision over longer time periods, hence exposing a hardware vblank counter is always recommended. This is the statically configured device wide maximum. The driver can instead choose to use a runtime configurable per-crtc value :c:type:`drm_vblank_crtc.max_vblank_count `, in which case **max_vblank_count** must be left at zero. See drm_crtc_set_max_vblank_count() on how to use the per-crtc value. If non-zero, :c:type:`drm_crtc_funcs.get_vblank_counter ` must be set. ``vblank_event_list`` List of vblank events ``event_lock`` Protects **vblank_event_list** and event delivery in general. See drm_send_event() and drm_send_event_locked(). ``num_crtcs`` Number of CRTCs on this device ``mode_config`` Current mode config ``object_name_lock`` GEM information ``object_name_idr`` GEM information ``vma_offset_manager`` GEM information ``vram_mm`` VRAM MM memory manager ``switch_power_state`` Power state of the client. Used by drivers supporting the switcheroo driver. The state is maintained in the :c:type:`vga_switcheroo_client_ops.set_gpu_state ` callback ``fb_helper`` Pointer to the fbdev emulation structure. Set by drm_fb_helper_init() and cleared by drm_fb_helper_fini(). ``debugfs_root`` Root directory for debugfs files.h](h)}(h**Definition**::h](jZ)}(h**Definition**h]h Definition}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj*ubh:}(hj*hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:84: ./include/drm/drm_device.hhKGhj&ubj2)}(hX%struct drm_device { int if_version; struct kref ref; struct device *dev; struct device *dma_dev; struct { struct list_head resources; void *final_kfree; spinlock_t lock; } managed; const struct drm_driver *driver; void *dev_private; struct drm_minor *primary; struct drm_minor *render; struct drm_minor *accel; bool registered; struct drm_master *master; u32 driver_features; bool unplugged; struct inode *anon_inode; char *unique; struct mutex master_mutex; atomic_t open_count; struct mutex filelist_mutex; struct list_head filelist; struct list_head filelist_internal; struct mutex clientlist_mutex; struct list_head clientlist; bool vblank_disable_immediate; struct drm_vblank_crtc *vblank; spinlock_t vblank_time_lock; spinlock_t vbl_lock; u32 max_vblank_count; struct list_head vblank_event_list; spinlock_t event_lock; unsigned int num_crtcs; struct drm_mode_config mode_config; struct mutex object_name_lock; struct idr object_name_idr; struct drm_vma_offset_manager *vma_offset_manager; struct drm_vram_mm *vram_mm; enum switch_power_state switch_power_state; struct drm_fb_helper *fb_helper; struct dentry *debugfs_root; };h]hX%struct drm_device { int if_version; struct kref ref; struct device *dev; struct device *dma_dev; struct { struct list_head resources; void *final_kfree; spinlock_t lock; } managed; const struct drm_driver *driver; void *dev_private; struct drm_minor *primary; struct drm_minor *render; struct drm_minor *accel; bool registered; struct drm_master *master; u32 driver_features; bool unplugged; struct inode *anon_inode; char *unique; struct mutex master_mutex; atomic_t open_count; struct mutex filelist_mutex; struct list_head filelist; struct list_head filelist_internal; struct mutex clientlist_mutex; struct list_head clientlist; bool vblank_disable_immediate; struct drm_vblank_crtc *vblank; spinlock_t vblank_time_lock; spinlock_t vbl_lock; u32 max_vblank_count; struct list_head vblank_event_list; spinlock_t event_lock; unsigned int num_crtcs; struct drm_mode_config mode_config; struct mutex object_name_lock; struct idr object_name_idr; struct drm_vma_offset_manager *vma_offset_manager; struct drm_vram_mm *vram_mm; enum switch_power_state switch_power_state; struct drm_fb_helper *fb_helper; struct dentry *debugfs_root; };}hjGsbah}(h]h ]h"]h$]h&]jAjBuh1j1hZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:84: ./include/drm/drm_device.hhKIhj&ubh)}(h **Members**h]jZ)}(hjXh]hMembers}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjVubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:84: ./include/drm/drm_device.hhKwhj&ubj)}(hhh](j)}(h-``if_version`` Highest interface version set h](j)}(h``if_version``h]j)}(hjwh]h if_version}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjuubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:84: ./include/drm/drm_device.hhKJhjqubj)}(hhh]h)}(hHighest interface version seth]hHighest interface version set}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKJhjubah}(h]h ]h"]h$]h&]uh1jhjqubeh}(h]h ]h"]h$]h&]uh1jhjhKJhjnubj)}(h``ref`` Object ref-count h](j)}(h``ref``h]j)}(hjh]href}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:84: ./include/drm/drm_device.hhKMhjubj)}(hhh]h)}(hObject ref-counth]hObject ref-count}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKMhjnubj)}(h'``dev`` Device structure of bus-device h](j)}(h``dev``h]j)}(hjh]hdev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:84: ./include/drm/drm_device.hhKPhjubj)}(hhh]h)}(hDevice structure of bus-deviceh]hDevice structure of bus-device}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKPhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKPhjnubj)}(hX``dma_dev`` Device for DMA operations. Only required if the device **dev** cannot perform DMA by itself. Should be NULL otherwise. Call drm_dev_dma_dev() to get the DMA device instead of using this field directly. Call drm_dev_set_dma_dev() to set this field. DRM devices are sometimes bound to virtual devices that cannot perform DMA by themselves. Drivers should set this field to the respective DMA controller. Devices on USB and other peripheral busses also cannot perform DMA by themselves. The **dma_dev** field should point the bus controller that does DMA on behalve of such a device. Required for importing buffers via dma-buf. If set, the DRM core automatically releases the reference on the device. h](j)}(h ``dma_dev``h]j)}(hj"h]hdma_dev}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:84: ./include/drm/drm_device.hhKchjubj)}(hhh](h)}(hDevice for DMA operations. Only required if the device **dev** cannot perform DMA by itself. Should be NULL otherwise. Call drm_dev_dma_dev() to get the DMA device instead of using this field directly. Call drm_dev_set_dma_dev() to set this field.h](h7Device for DMA operations. Only required if the device }(hj;hhhNhNubjZ)}(h**dev**h]hdev}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj;ubh cannot perform DMA by itself. Should be NULL otherwise. Call drm_dev_dma_dev() to get the DMA device instead of using this field directly. Call drm_dev_set_dma_dev() to set this field.}(hj;hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:84: ./include/drm/drm_device.hhKThj8ubh)}(hDRM devices are sometimes bound to virtual devices that cannot perform DMA by themselves. Drivers should set this field to the respective DMA controller.h]hDRM devices are sometimes bound to virtual devices that cannot perform DMA by themselves. Drivers should set this field to the respective DMA controller.}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:84: ./include/drm/drm_device.hhKYhj8ubh)}(hDevices on USB and other peripheral busses also cannot perform DMA by themselves. The **dma_dev** field should point the bus controller that does DMA on behalve of such a device. Required for importing buffers via dma-buf.h](hVDevices on USB and other peripheral busses also cannot perform DMA by themselves. The }(hjkhhhNhNubjZ)}(h **dma_dev**h]hdma_dev}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjkubh} field should point the bus controller that does DMA on behalve of such a device. Required for importing buffers via dma-buf.}(hjkhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:84: ./include/drm/drm_device.hhK]hj8ubh)}(hHIf set, the DRM core automatically releases the reference on the device.h]hHIf set, the DRM core automatically releases the reference on the device.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:84: ./include/drm/drm_device.hhKbhj8ubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj7hKchjnubj)}(hi``managed`` Managed resources linked to the lifetime of this :c:type:`drm_device` as tracked by **ref**. h](j)}(h ``managed``h]j)}(hjh]hmanaged}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:84: ./include/drm/drm_device.hhKkhjubj)}(hhh]h)}(h\Managed resources linked to the lifetime of this :c:type:`drm_device` as tracked by **ref**.h](h1Managed resources linked to the lifetime of this }(hjhhhNhNubh)}(h:c:type:`drm_device`h]j)}(hjh]h drm_device}(hjhhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarn c:parent_keysphinx.domains.c LookupKey)}data]sbj drm_deviceuh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:84: ./include/drm/drm_device.hhKjhjubh as tracked by }(hjhhhNhNubjZ)}(h**ref**h]href}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhKjhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKkhjnubj)}(h*``driver`` DRM driver managing the device h](j)}(h ``driver``h]j)}(hj$ h]hdriver}(hj& hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj" ubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:84: ./include/drm/drm_device.hhKxhj ubj)}(hhh]h)}(hDRM driver managing the deviceh]hDRM driver managing the device}(hj= hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj9 hKxhj: ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj9 hKxhjnubj)}(h``dev_private`` DRM driver private data. This is deprecated and should be left set to NULL. Instead of using this pointer it is recommended that drivers use devm_drm_dev_alloc() and embed struct :c:type:`drm_device` in their larger per-device structure. h](j)}(h``dev_private``h]j)}(hj] h]h dev_private}(hj_ hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj[ ubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:84: ./include/drm/drm_device.hhKhjW ubj)}(hhh](h)}(hKDRM driver private data. This is deprecated and should be left set to NULL.h]hKDRM driver private data. This is deprecated and should be left set to NULL.}(hjv hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:84: ./include/drm/drm_device.hhK|hjs ubh)}(hInstead of using this pointer it is recommended that drivers use devm_drm_dev_alloc() and embed struct :c:type:`drm_device` in their larger per-device structure.h](hgInstead of using this pointer it is recommended that drivers use devm_drm_dev_alloc() and embed struct }(hj hhhNhNubh)}(h:c:type:`drm_device`h]j)}(hj h]h drm_device}(hj hhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjjj drm_deviceuh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:84: ./include/drm/drm_device.hhKhj ubh& in their larger per-device structure.}(hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj hKhjs ubeh}(h]h ]h"]h$]h&]uh1jhjW ubeh}(h]h ]h"]h$]h&]uh1jhjr hKhjnubj)}(h``primary`` Primary node. Drivers should not interact with this directly. debugfs interfaces can be registered with drm_debugfs_add_file(), and sysfs should be directly added on the hardware (and not character device node) struct device **dev**. h](j)}(h ``primary``h]j)}(hj h]hprimary}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:84: ./include/drm/drm_device.hhKhj ubj)}(hhh]h)}(hPrimary node. Drivers should not interact with this directly. debugfs interfaces can be registered with drm_debugfs_add_file(), and sysfs should be directly added on the hardware (and not character device node) struct device **dev**.h](hPrimary node. Drivers should not interact with this directly. debugfs interfaces can be registered with drm_debugfs_add_file(), and sysfs should be directly added on the hardware (and not character device node) struct device }(hj hhhNhNubjZ)}(h**dev**h]hdev}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj ubh.}(hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:84: ./include/drm/drm_device.hhKhj ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj hKhjnubj)}(h``render`` Render node. Drivers should not interact with this directly ever. Drivers should not expose any additional interfaces in debugfs or sysfs on this node. h](j)}(h ``render``h]j)}(hj h]hrender}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:84: ./include/drm/drm_device.hhKhj ubj)}(hhh]h)}(hRender node. Drivers should not interact with this directly ever. Drivers should not expose any additional interfaces in debugfs or sysfs on this node.h]hRender node. Drivers should not interact with this directly ever. Drivers should not expose any additional interfaces in debugfs or sysfs on this node.}(hj. hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:84: ./include/drm/drm_device.hhKhj+ ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj* hKhjnubj)}(h$``accel`` Compute Acceleration node h](j)}(h ``accel``h]j)}(hjO h]haccel}(hjQ hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjM ubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:84: ./include/drm/drm_device.hhKhjI ubj)}(hhh]h)}(hCompute Acceleration nodeh]hCompute Acceleration node}(hjh hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjd hKhje ubah}(h]h ]h"]h$]h&]uh1jhjI ubeh}(h]h ]h"]h$]h&]uh1jhjd hKhjnubj)}(hS``registered`` Internally used by drm_dev_register() and drm_connector_register(). h](j)}(h``registered``h]j)}(hj h]h registered}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:84: ./include/drm/drm_device.hhKhj ubj)}(hhh]h)}(hCInternally used by drm_dev_register() and drm_connector_register().h]hCInternally used by drm_dev_register() and drm_connector_register().}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hKhj ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj hKhjnubj)}(hX``master`` Currently active master for this device. Protected by :c:type:`master_mutex` h](j)}(h ``master``h]j)}(hj h]hmaster}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:84: ./include/drm/drm_device.hhKhj ubj)}(hhh]h)}(hLCurrently active master for this device. Protected by :c:type:`master_mutex`h](h6Currently active master for this device. Protected by }(hj hhhNhNubh)}(h:c:type:`master_mutex`h]j)}(hj h]h master_mutex}(hj hhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjjj master_mutexuh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:84: ./include/drm/drm_device.hhKhj ubeh}(h]h ]h"]h$]h&]uh1hhj hKhj ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj hKhjnubj)}(h``driver_features`` per-device driver features Drivers can clear specific flags here to disallow certain features on a per-device basis while still sharing a single :c:type:`struct drm_driver ` instance across all devices. h](j)}(h``driver_features``h]j)}(hj h]hdriver_features}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:84: ./include/drm/drm_device.hhKhj ubj)}(hhh](h)}(hper-device driver featuresh]hper-device driver features}(hj3 hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:84: ./include/drm/drm_device.hhKhj0 ubh)}(hDrivers can clear specific flags here to disallow certain features on a per-device basis while still sharing a single :c:type:`struct drm_driver ` instance across all devices.h](hvDrivers can clear specific flags here to disallow certain features on a per-device basis while still sharing a single }(hjB hhhNhNubh)}(h(:c:type:`struct drm_driver `h]j)}(hjL h]hstruct drm_driver}(hjN hhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjJ ubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjjj drm_driveruh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:84: ./include/drm/drm_device.hhKhjB ubh instance across all devices.}(hjB hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhji hKhj0 ubeh}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj/ hKhjnubj)}(hm``unplugged`` Flag to tell if the device has been unplugged. See drm_dev_enter() and drm_dev_is_unplugged(). h](j)}(h ``unplugged``h]j)}(hj h]h unplugged}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:84: ./include/drm/drm_device.hhKhj ubj)}(hhh]h)}(h^Flag to tell if the device has been unplugged. See drm_dev_enter() and drm_dev_is_unplugged().h]h^Flag to tell if the device has been unplugged. See drm_dev_enter() and drm_dev_is_unplugged().}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:84: ./include/drm/drm_device.hhKhj ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj hKhjnubj)}(h/``anon_inode`` inode for private address-space h](j)}(h``anon_inode``h]j)}(hj h]h anon_inode}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:84: ./include/drm/drm_device.hhKhj ubj)}(hhh]h)}(hinode for private address-spaceh]hinode for private address-space}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hKhj ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj hKhjnubj)}(h%``unique`` Unique name of the device h](j)}(h ``unique``h]j)}(hj h]hunique}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:84: ./include/drm/drm_device.hhKhj ubj)}(hhh]h)}(hUnique name of the deviceh]hUnique name of the device}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hKhj ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj hKhjnubj)}(hm``master_mutex`` Lock for :c:type:`drm_minor.master ` and :c:type:`drm_file.is_master ` h](j)}(h``master_mutex``h]j)}(hj2 h]h master_mutex}(hj4 hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj0 ubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:84: ./include/drm/drm_device.hhKhj, ubj)}(hhh]h)}(h[Lock for :c:type:`drm_minor.master ` and :c:type:`drm_file.is_master `h](h Lock for }(hjK hhhNhNubh)}(h&:c:type:`drm_minor.master `h]j)}(hjU h]hdrm_minor.master}(hjW hhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjS ubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjjj drm_minoruh1hhjG hKhjK ubh and }(hjK hhhNhNubh)}(h':c:type:`drm_file.is_master `h]j)}(hjx h]hdrm_file.is_master}(hjz hhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjv ubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjjjdrm_fileuh1hhjG hKhjK ubeh}(h]h ]h"]h$]h&]uh1hhjG hKhjH ubah}(h]h ]h"]h$]h&]uh1jhj, ubeh}(h]h ]h"]h$]h&]uh1jhjG hKhjnubj)}(hW``open_count`` Usage counter for outstanding files open, protected by drm_global_mutex h](j)}(h``open_count``h]j)}(hj h]h open_count}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:84: ./include/drm/drm_device.hhKhj ubj)}(hhh]h)}(hGUsage counter for outstanding files open, protected by drm_global_mutexh]hGUsage counter for outstanding files open, protected by drm_global_mutex}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:84: ./include/drm/drm_device.hhKhj ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj hKhjnubj)}(h*``filelist_mutex`` Protects **filelist**. h](j)}(h``filelist_mutex``h]j)}(hj h]hfilelist_mutex}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:84: ./include/drm/drm_device.hhKhj ubj)}(hhh]h)}(hProtects **filelist**.h](h Protects }(hj hhhNhNubjZ)}(h **filelist**h]hfilelist}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj ubh.}(hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj hKhj ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj hKhjnubj)}(h\``filelist`` List of userspace clients, linked through :c:type:`drm_file.lhead `. h](j)}(h ``filelist``h]j)}(hj2 h]hfilelist}(hj4 hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj0 ubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:84: ./include/drm/drm_device.hhKhj, ubj)}(hhh]h)}(hNList of userspace clients, linked through :c:type:`drm_file.lhead `.h](h*List of userspace clients, linked through }(hjK hhhNhNubh)}(h#:c:type:`drm_file.lhead `h]j)}(hjU h]hdrm_file.lhead}(hjW hhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjS ubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjjjdrm_fileuh1hhjG hKhjK ubh.}(hjK hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjG hKhjH ubah}(h]h ]h"]h$]h&]uh1jhj, ubeh}(h]h ]h"]h$]h&]uh1jhjG hKhjnubj)}(hk``filelist_internal`` List of open DRM files for in-kernel clients. Protected by :c:type:`filelist_mutex`. h](j)}(h``filelist_internal``h]j)}(hj h]hfilelist_internal}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:84: ./include/drm/drm_device.hhKhj ubj)}(hhh]h)}(hTList of open DRM files for in-kernel clients. Protected by :c:type:`filelist_mutex`.h](h;List of open DRM files for in-kernel clients. Protected by }(hj hhhNhNubh)}(h:c:type:`filelist_mutex`h]j)}(hj h]hfilelist_mutex}(hj hhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjjjfilelist_mutexuh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:84: ./include/drm/drm_device.hhKhj ubh.}(hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj hKhj ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj hKhjnubj)}(h;``clientlist_mutex`` Protects :c:type:`clientlist` access. h](j)}(h``clientlist_mutex``h]j)}(hj h]hclientlist_mutex}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:84: ./include/drm/drm_device.hhKhj ubj)}(hhh]h)}(h%Protects :c:type:`clientlist` access.h](h Protects }(hjhhhNhNubh)}(h:c:type:`clientlist`h]j)}(hjh]h clientlist}(hjhhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjjj clientlistuh1hhjhKhjubh access.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhjhKhjnubj)}(hS``clientlist`` List of in-kernel clients. Protected by :c:type:`clientlist_mutex`. h](j)}(h``clientlist``h]j)}(hjGh]h clientlist}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjEubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:84: ./include/drm/drm_device.hhKhjAubj)}(hhh]h)}(hCList of in-kernel clients. Protected by :c:type:`clientlist_mutex`.h](h(List of in-kernel clients. Protected by }(hj`hhhNhNubh)}(h:c:type:`clientlist_mutex`h]j)}(hjjh]hclientlist_mutex}(hjlhhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjhubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjjjclientlist_mutexuh1hhj\hKhj`ubh.}(hj`hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj\hKhj]ubah}(h]h ]h"]h$]h&]uh1jhjAubeh}(h]h ]h"]h$]h&]uh1jhj\hKhjnubj)}(hX$``vblank_disable_immediate`` If true, vblank interrupt will be disabled immediately when the refcount drops to zero, as opposed to via the vblank disable timer. This can be set to true it the hardware has a working vblank counter with high-precision timestamping (otherwise there are races) and the driver uses drm_crtc_vblank_on() and drm_crtc_vblank_off() appropriately. Also, see **max_vblank_count**, :c:type:`drm_crtc_funcs.get_vblank_counter ` and :c:type:`drm_vblank_crtc_config.disable_immediate `. h](j)}(h``vblank_disable_immediate``h]j)}(hjh]hvblank_disable_immediate}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:84: ./include/drm/drm_device.hhKhjubj)}(hhh](h)}(hIf true, vblank interrupt will be disabled immediately when the refcount drops to zero, as opposed to via the vblank disable timer.h]hIf true, vblank interrupt will be disabled immediately when the refcount drops to zero, as opposed to via the vblank disable timer.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:84: ./include/drm/drm_device.hhKhjubh)}(hXThis can be set to true it the hardware has a working vblank counter with high-precision timestamping (otherwise there are races) and the driver uses drm_crtc_vblank_on() and drm_crtc_vblank_off() appropriately. Also, see **max_vblank_count**, :c:type:`drm_crtc_funcs.get_vblank_counter ` and :c:type:`drm_vblank_crtc_config.disable_immediate `.h](hThis can be set to true it the hardware has a working vblank counter with high-precision timestamping (otherwise there are races) and the driver uses drm_crtc_vblank_on() and drm_crtc_vblank_off() appropriately. Also, see }(hjhhhNhNubjZ)}(h**max_vblank_count**h]hmax_vblank_count}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubh, }(hjhhhNhNubh)}(h<:c:type:`drm_crtc_funcs.get_vblank_counter `h]j)}(hjh]h!drm_crtc_funcs.get_vblank_counter}(hjhhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjjjdrm_crtc_funcsuh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:84: ./include/drm/drm_device.hhKhjubh and }(hjhhhNhNubh)}(hK:c:type:`drm_vblank_crtc_config.disable_immediate `h]j)}(hj h]h(drm_vblank_crtc_config.disable_immediate}(hj hhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjjjdrm_vblank_crtc_configuh1hhjhKhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhKhjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjnubj)}(hX5``vblank`` Array of vblank tracking structures, one per :c:type:`struct drm_crtc `. For historical reasons (vblank support predates kernel modesetting) this is free-standing and not part of :c:type:`struct drm_crtc ` itself. It must be initialized explicitly by calling drm_vblank_init(). h](j)}(h ``vblank``h]j)}(hjDh]hvblank}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjBubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:84: ./include/drm/drm_device.hhMhj>ubj)}(hhh]h)}(hX)Array of vblank tracking structures, one per :c:type:`struct drm_crtc `. For historical reasons (vblank support predates kernel modesetting) this is free-standing and not part of :c:type:`struct drm_crtc ` itself. It must be initialized explicitly by calling drm_vblank_init().h](h-Array of vblank tracking structures, one per }(hj]hhhNhNubh)}(h$:c:type:`struct drm_crtc `h]j)}(hjgh]hstruct drm_crtc}(hjihhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjeubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjjjdrm_crtcuh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:84: ./include/drm/drm_device.hhMhj]ubhl. For historical reasons (vblank support predates kernel modesetting) this is free-standing and not part of }(hj]hhhNhNubh)}(h$:c:type:`struct drm_crtc `h]j)}(hjh]hstruct drm_crtc}(hjhhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjjjdrm_crtcuh1hhjhMhj]ubhH itself. It must be initialized explicitly by calling drm_vblank_init().}(hj]hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMhjZubah}(h]h ]h"]h$]h&]uh1jhj>ubeh}(h]h ]h"]h$]h&]uh1jhjYhMhjnubj)}(hY``vblank_time_lock`` Protects vblank count and time updates during vblank enable/disable h](j)}(h``vblank_time_lock``h]j)}(hjh]hvblank_time_lock}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:84: ./include/drm/drm_device.hhM hjubj)}(hhh]h)}(hCProtects vblank count and time updates during vblank enable/disableh]hCProtects vblank count and time updates during vblank enable/disable}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM hjnubj)}(hY``vbl_lock`` Top-level vblank references lock, wraps the low-level **vblank_time_lock**. h](j)}(h ``vbl_lock``h]j)}(hjh]hvbl_lock}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:84: ./include/drm/drm_device.hhMhjubj)}(hhh]h)}(hKTop-level vblank references lock, wraps the low-level **vblank_time_lock**.h](h6Top-level vblank references lock, wraps the low-level }(hjhhhNhNubjZ)}(h**vblank_time_lock**h]hvblank_time_lock}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:84: ./include/drm/drm_device.hhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjnubj)}(hX``max_vblank_count`` Maximum value of the vblank registers. This value +1 will result in a wrap-around of the vblank register. It is used by the vblank core to handle wrap-arounds. If set to zero the vblank core will try to guess the elapsed vblanks between times when the vblank interrupt is disabled through high-precision timestamps. That approach is suffering from small races and imprecision over longer time periods, hence exposing a hardware vblank counter is always recommended. This is the statically configured device wide maximum. The driver can instead choose to use a runtime configurable per-crtc value :c:type:`drm_vblank_crtc.max_vblank_count `, in which case **max_vblank_count** must be left at zero. See drm_crtc_set_max_vblank_count() on how to use the per-crtc value. If non-zero, :c:type:`drm_crtc_funcs.get_vblank_counter ` must be set. h](j)}(h``max_vblank_count``h]j)}(hjIh]hmax_vblank_count}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjGubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:84: ./include/drm/drm_device.hhM)hjCubj)}(hhh](h)}(hMaximum value of the vblank registers. This value +1 will result in a wrap-around of the vblank register. It is used by the vblank core to handle wrap-arounds.h]hMaximum value of the vblank registers. This value +1 will result in a wrap-around of the vblank register. It is used by the vblank core to handle wrap-arounds.}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:84: ./include/drm/drm_device.hhMhj_ubh)}(hX1If set to zero the vblank core will try to guess the elapsed vblanks between times when the vblank interrupt is disabled through high-precision timestamps. That approach is suffering from small races and imprecision over longer time periods, hence exposing a hardware vblank counter is always recommended.h]hX1If set to zero the vblank core will try to guess the elapsed vblanks between times when the vblank interrupt is disabled through high-precision timestamps. That approach is suffering from small races and imprecision over longer time periods, hence exposing a hardware vblank counter is always recommended.}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:84: ./include/drm/drm_device.hhMhj_ubh)}(hX>This is the statically configured device wide maximum. The driver can instead choose to use a runtime configurable per-crtc value :c:type:`drm_vblank_crtc.max_vblank_count `, in which case **max_vblank_count** must be left at zero. See drm_crtc_set_max_vblank_count() on how to use the per-crtc value.h](hThis is the statically configured device wide maximum. The driver can instead choose to use a runtime configurable per-crtc value }(hjhhhNhNubh)}(h<:c:type:`drm_vblank_crtc.max_vblank_count `h]j)}(hjh]h drm_vblank_crtc.max_vblank_count}(hjhhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjjjdrm_vblank_crtcuh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:84: ./include/drm/drm_device.hhM#hjubh, in which case }(hjhhhNhNubjZ)}(h**max_vblank_count**h]hmax_vblank_count}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubh\ must be left at zero. See drm_crtc_set_max_vblank_count() on how to use the per-crtc value.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhM#hj_ubh)}(hVIf non-zero, :c:type:`drm_crtc_funcs.get_vblank_counter ` must be set.h](h If non-zero, }(hjhhhNhNubh)}(h<:c:type:`drm_crtc_funcs.get_vblank_counter `h]j)}(hjh]h!drm_crtc_funcs.get_vblank_counter}(hjhhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjjjdrm_crtc_funcsuh1hhj^hM)hjubh must be set.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj^hM)hj_ubeh}(h]h ]h"]h$]h&]uh1jhjCubeh}(h]h ]h"]h$]h&]uh1jhj^hM)hjnubj)}(h,``vblank_event_list`` List of vblank events h](j)}(h``vblank_event_list``h]j)}(hjh]hvblank_event_list}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:84: ./include/drm/drm_device.hhM/hjubj)}(hhh]h)}(hList of vblank eventsh]hList of vblank events}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM/hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM/hjnubj)}(h``event_lock`` Protects **vblank_event_list** and event delivery in general. See drm_send_event() and drm_send_event_locked(). h](j)}(h``event_lock``h]j)}(hj@h]h event_lock}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj>ubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:84: ./include/drm/drm_device.hhM4hj:ubj)}(hhh]h)}(hoProtects **vblank_event_list** and event delivery in general. See drm_send_event() and drm_send_event_locked().h](h Protects }(hjYhhhNhNubjZ)}(h**vblank_event_list**h]hvblank_event_list}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjYubhQ and event delivery in general. See drm_send_event() and drm_send_event_locked().}(hjYhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:84: ./include/drm/drm_device.hhM3hjVubah}(h]h ]h"]h$]h&]uh1jhj:ubeh}(h]h ]h"]h$]h&]uh1jhjUhM4hjnubj)}(h-``num_crtcs`` Number of CRTCs on this device h](j)}(h ``num_crtcs``h]j)}(hjh]h num_crtcs}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:84: ./include/drm/drm_device.hhM:hjubj)}(hhh]h)}(hNumber of CRTCs on this deviceh]hNumber of CRTCs on this device}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM:hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM:hjnubj)}(h$``mode_config`` Current mode config h](j)}(h``mode_config``h]j)}(hjh]h mode_config}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:84: ./include/drm/drm_device.hhM=hjubj)}(hhh]h)}(hCurrent mode configh]hCurrent mode config}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM=hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM=hjnubj)}(h%``object_name_lock`` GEM information h](j)}(h``object_name_lock``h]j)}(hjh]hobject_name_lock}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:84: ./include/drm/drm_device.hhM@hjubj)}(hhh]h)}(hGEM informationh]hGEM information}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM@hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM@hjnubj)}(h$``object_name_idr`` GEM information h](j)}(h``object_name_idr``h]j)}(hj7h]hobject_name_idr}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5ubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:84: ./include/drm/drm_device.hhMChj1ubj)}(hhh]h)}(hGEM informationh]hGEM information}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjLhMChjMubah}(h]h ]h"]h$]h&]uh1jhj1ubeh}(h]h ]h"]h$]h&]uh1jhjLhMChjnubj)}(h'``vma_offset_manager`` GEM information h](j)}(h``vma_offset_manager``h]j)}(hjph]hvma_offset_manager}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjnubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:84: ./include/drm/drm_device.hhMFhjjubj)}(hhh]h)}(hGEM informationh]hGEM information}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMFhjubah}(h]h ]h"]h$]h&]uh1jhjjubeh}(h]h ]h"]h$]h&]uh1jhjhMFhjnubj)}(h#``vram_mm`` VRAM MM memory manager h](j)}(h ``vram_mm``h]j)}(hjh]hvram_mm}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:84: ./include/drm/drm_device.hhMIhjubj)}(hhh]h)}(hVRAM MM memory managerh]hVRAM MM memory manager}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMIhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMIhjnubj)}(h``switch_power_state`` Power state of the client. Used by drivers supporting the switcheroo driver. The state is maintained in the :c:type:`vga_switcheroo_client_ops.set_gpu_state ` callback h](j)}(h``switch_power_state``h]j)}(hjh]hswitch_power_state}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:84: ./include/drm/drm_device.hhMPhjubj)}(hhh]h)}(hPower state of the client. Used by drivers supporting the switcheroo driver. The state is maintained in the :c:type:`vga_switcheroo_client_ops.set_gpu_state ` callbackh](hlPower state of the client. Used by drivers supporting the switcheroo driver. The state is maintained in the }(hjhhhNhNubh)}(hM:c:type:`vga_switcheroo_client_ops.set_gpu_state `h]j)}(hjh]h'vga_switcheroo_client_ops.set_gpu_state}(hjhhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjjjvga_switcheroo_client_opsuh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:84: ./include/drm/drm_device.hhMMhjubh callback}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj"hMMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMPhjnubj)}(hy``fb_helper`` Pointer to the fbdev emulation structure. Set by drm_fb_helper_init() and cleared by drm_fb_helper_fini(). h](j)}(h ``fb_helper``h]j)}(hj?h]h fb_helper}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj=ubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:84: ./include/drm/drm_device.hhMXhj9ubj)}(hhh]h)}(hjPointer to the fbdev emulation structure. Set by drm_fb_helper_init() and cleared by drm_fb_helper_fini().h]hjPointer to the fbdev emulation structure. Set by drm_fb_helper_init() and cleared by drm_fb_helper_fini().}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:84: ./include/drm/drm_device.hhMWhjUubah}(h]h ]h"]h$]h&]uh1jhj9ubeh}(h]h ]h"]h$]h&]uh1jhjThMXhjnubj)}(h2``debugfs_root`` Root directory for debugfs files.h](j)}(h``debugfs_root``h]j)}(hjyh]h debugfs_root}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjwubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:84: ./include/drm/drm_device.hhM^hjsubj)}(hhh]h)}(h!Root directory for debugfs files.h]h!Root directory for debugfs files.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:84: ./include/drm/drm_device.hhM_hjubah}(h]h ]h"]h$]h&]uh1jhjsubeh}(h]h ]h"]h$]h&]uh1jhjhM^hjnubeh}(h]h ]h"]h$]h&]uh1jhj&ubeh}(h]h ] kernelindentah"]h$]h&]uh1jOhj_hhhNhNubh)}(h**Description**h]jZ)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:84: ./include/drm/drm_device.hhMbhj_hhubh)}(hIThis structure represent a complete card that may contain multiple heads.h]hIThis structure represent a complete card that may contain multiple heads.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:84: ./include/drm/drm_device.hhKDhj_hhubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jdrm_dev_dma_dev (C function)c.drm_dev_dma_devhNtauh1jhj_hhhNhNubj)}(hhh](j)}(h8struct device * drm_dev_dma_dev (struct drm_device *dev)h]j)}(h6struct device *drm_dev_dma_dev(struct drm_device *dev)h](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:84: ./include/drm/drm_device.hhMhubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMhubh)}(hhh]j)}(hdeviceh]hdevice}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj reftype identifier reftargetjmodnameN classnameNjj)}j]j ASTIdentifier)}j/drm_dev_dma_devsbc.drm_dev_dma_devasbuh1hhjhhhjhMhubj)}(h h]h }(hj=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMhubhdesc_sig_punctuation)}(h*h]h*}(hjMhhhNhNubah}(h]h ]pah"]h$]h&]uh1jKhjhhhjhMhubj)}(hdrm_dev_dma_devh]j)}(hj:h]hdrm_dev_dma_dev}(hj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\ubah}(h]h ](jjeh"]h$]h&]jAjBuh1jhjhhhjhMhubhdesc_parameterlist)}(h(struct drm_device *dev)h]hdesc_parameter)}(hstruct drm_device *devh](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj{ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj{ubh)}(hhh]j)}(h drm_deviceh]h drm_device}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj reftypej/ reftargetjmodnameN classnameNjj)}j]j8c.drm_dev_dma_devasbuh1hhj{ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj{ubjL)}(hjOh]h*}(hjhhhNhNubah}(h]h ]jXah"]h$]h&]uh1jKhj{ubj)}(hdevh]hdev}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj{ubeh}(h]h ]h"]h$]h&]noemphjAjBuh1jyhjuubah}(h]h ]h"]h$]h&]jAjBuh1jshjhhhjhMhubeh}(h]h ]h"]h$]h&]jAjBjuh1jjjhjhhhjhMhubah}(h]jah ](j j!eh"]h$]h&]j%j&)j'huh1jhjhMhhjhhubj))}(hhh]h)}(h'returns the DMA device for a DRM deviceh]h'returns the DMA device for a DRM device}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:84: ./include/drm/drm_device.hhMhhjhhubah}(h]h ]h"]h$]h&]uh1j(hjhhhjhMhubeh}(h]h ](j functioneh"]h$]h&]jIj jJjjKjjLjMjNuh1jhhhj_hNhNubjP)}(h**Parameters** ``struct drm_device *dev`` DRM device **Description** Returns the DMA device of the given DRM device. By default, this the DRM device's parent. See drm_dev_set_dma_dev(). **Return** A DMA-capable device for the DRM device.h](h)}(h**Parameters**h]jZ)}(hj"h]h Parameters}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj ubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:84: ./include/drm/drm_device.hhMlhjubj)}(hhh]j)}(h&``struct drm_device *dev`` DRM device h](j)}(h``struct drm_device *dev``h]j)}(hjAh]hstruct drm_device *dev}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1jhj?ubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:84: ./include/drm/drm_device.hhMihj;ubj)}(hhh]h)}(h DRM deviceh]h DRM device}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjVhMihjWubah}(h]h ]h"]h$]h&]uh1jhj;ubeh}(h]h ]h"]h$]h&]uh1jhjVhMihj8ubah}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]jZ)}(hj|h]h Description}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjzubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:84: ./include/drm/drm_device.hhMkhjubh)}(htReturns the DMA device of the given DRM device. By default, this the DRM device's parent. See drm_dev_set_dma_dev().h]hvReturns the DMA device of the given DRM device. By default, this the DRM device’s parent. See drm_dev_set_dma_dev().}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:84: ./include/drm/drm_device.hhMjhjubh)}(h **Return**h]jZ)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:84: ./include/drm/drm_device.hhMmhjubh)}(h(A DMA-capable device for the DRM device.h]h(A DMA-capable device for the DRM device.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:84: ./include/drm/drm_device.hhMnhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jOhj_hhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jdrm_driver_feature (C enum)c.drm_driver_featurehNtauh1jhj_hhhNhNubj)}(hhh](j)}(hdrm_driver_featureh]j)}(henum drm_driver_featureh](j)}(hjAh]henum}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhKubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhKubj)}(hdrm_driver_featureh]j)}(hjh]hdrm_driver_feature}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jAjBuh1jhjhhhjhKubeh}(h]h ]h"]h$]h&]jAjBjuh1jjjhjhhhjhKubah}(h]jah ](j j!eh"]h$]h&]j%j&)j'huh1jhjhKhjhhubj))}(hhh]h)}(h feature flagsh]h feature flags}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhK4hj'hhubah}(h]h ]h"]h$]h&]uh1j(hjhhhjhKubeh}(h]h ](j enumeh"]h$]h&]jIj jJjBjKjBjLjMjNuh1jhhhj_hNhNubjP)}(hX**Constants** ``DRIVER_GEM`` Driver use the GEM memory manager. This should be set for all modern drivers. ``DRIVER_MODESET`` Driver supports mode setting interfaces (KMS). ``DRIVER_RENDER`` Driver supports dedicated render nodes. See also the :ref:`section on render nodes ` for details. ``DRIVER_ATOMIC`` Driver supports the full atomic modesetting userspace API. Drivers which only use atomic internally, but do not support the full userspace API (e.g. not all properties converted to atomic, or multi-plane updates are not guaranteed to be tear-free) should not set this flag. ``DRIVER_SYNCOBJ`` Driver supports :c:type:`drm_syncobj` for explicit synchronization of command submission. ``DRIVER_SYNCOBJ_TIMELINE`` Driver supports the timeline flavor of :c:type:`drm_syncobj` for explicit synchronization of command submission. ``DRIVER_COMPUTE_ACCEL`` Driver supports compute acceleration devices. This flag is mutually exclusive with **DRIVER_RENDER** and **DRIVER_MODESET**. Devices that support both graphics and compute acceleration should be handled by two drivers that are connected using auxiliary bus. ``DRIVER_GEM_GPUVA`` Driver supports user defined GPU VA bindings for GEM objects. ``DRIVER_CURSOR_HOTSPOT`` Driver supports and requires cursor hotspot information in the cursor plane (e.g. cursor plane has to actually track the mouse cursor and the clients are required to set hotspot in order for the cursor planes to work correctly). ``DRIVER_USE_AGP`` Set up DRM AGP support, see drm_agp_init(), the DRM core will manage AGP resources. New drivers don't need this. ``DRIVER_LEGACY`` Denote a legacy driver using shadow attach. Do not use. ``DRIVER_PCI_DMA`` Driver is capable of PCI DMA, mapping of PCI DMA buffers to userspace will be enabled. Only for legacy drivers. Do not use. ``DRIVER_SG`` Driver can perform scatter/gather DMA, allocation and mapping of scatter/gather buffers will be enabled. Only for legacy drivers. Do not use. ``DRIVER_HAVE_DMA`` Driver supports DMA, the userspace DMA API will be supported. Only for legacy drivers. Do not use. ``DRIVER_HAVE_IRQ`` Legacy irq support. Only for legacy drivers. Do not use.h](h)}(h **Constants**h]jZ)}(hjLh]h Constants}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjJubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhK8hjFubj)}(hhh](j)}(h]``DRIVER_GEM`` Driver use the GEM memory manager. This should be set for all modern drivers. h](j)}(h``DRIVER_GEM``h]j)}(hjkh]h DRIVER_GEM}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjiubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhK` for details. h](j)}(h``DRIVER_RENDER``h]j)}(hjh]h DRIVER_RENDER}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhKChjubj)}(hhh]h)}(hrDriver supports dedicated render nodes. See also the :ref:`section on render nodes ` for details.h](h5Driver supports dedicated render nodes. See also the }(hjhhhNhNubh)}(h0:ref:`section on render nodes `h]hinline)}(hjh]hsection on render nodes}(hjhhhNhNubah}(h]h ](j stdstd-refeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftyperef refexplicitrefwarnjdrm_render_nodeuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhKBhjubh for details.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj!hKBhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKChjbubj)}(hX$``DRIVER_ATOMIC`` Driver supports the full atomic modesetting userspace API. Drivers which only use atomic internally, but do not support the full userspace API (e.g. not all properties converted to atomic, or multi-plane updates are not guaranteed to be tear-free) should not set this flag. h](j)}(h``DRIVER_ATOMIC``h]j)}(hj>h]h DRIVER_ATOMIC}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj<ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhKJhj8ubj)}(hhh]h)}(hXDriver supports the full atomic modesetting userspace API. Drivers which only use atomic internally, but do not support the full userspace API (e.g. not all properties converted to atomic, or multi-plane updates are not guaranteed to be tear-free) should not set this flag.h]hXDriver supports the full atomic modesetting userspace API. Drivers which only use atomic internally, but do not support the full userspace API (e.g. not all properties converted to atomic, or multi-plane updates are not guaranteed to be tear-free) should not set this flag.}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhKFhjTubah}(h]h ]h"]h$]h&]uh1jhj8ubeh}(h]h ]h"]h$]h&]uh1jhjShKJhjbubj)}(hm``DRIVER_SYNCOBJ`` Driver supports :c:type:`drm_syncobj` for explicit synchronization of command submission. h](j)}(h``DRIVER_SYNCOBJ``h]j)}(hjxh]hDRIVER_SYNCOBJ}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjvubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhKNhjrubj)}(hhh]h)}(hYDriver supports :c:type:`drm_syncobj` for explicit synchronization of command submission.h](hDriver supports }(hjhhhNhNubh)}(h:c:type:`drm_syncobj`h]j)}(hjh]h drm_syncobj}(hjhhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjjj drm_syncobjuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhKMhjubh4 for explicit synchronization of command submission.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhKMhjubah}(h]h ]h"]h$]h&]uh1jhjrubeh}(h]h ]h"]h$]h&]uh1jhjhKNhjbubj)}(h``DRIVER_SYNCOBJ_TIMELINE`` Driver supports the timeline flavor of :c:type:`drm_syncobj` for explicit synchronization of command submission. h](j)}(h``DRIVER_SYNCOBJ_TIMELINE``h]j)}(hjh]hDRIVER_SYNCOBJ_TIMELINE}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhKRhjubj)}(hhh]h)}(hpDriver supports the timeline flavor of :c:type:`drm_syncobj` for explicit synchronization of command submission.h](h'Driver supports the timeline flavor of }(hjhhhNhNubh)}(h:c:type:`drm_syncobj`h]j)}(hjh]h drm_syncobj}(hjhhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjjj drm_syncobjuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhKQhjubh4 for explicit synchronization of command submission.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhKQhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKRhjbubj)}(hX``DRIVER_COMPUTE_ACCEL`` Driver supports compute acceleration devices. This flag is mutually exclusive with **DRIVER_RENDER** and **DRIVER_MODESET**. Devices that support both graphics and compute acceleration should be handled by two drivers that are connected using auxiliary bus. h](j)}(h``DRIVER_COMPUTE_ACCEL``h]j)}(hj2h]hDRIVER_COMPUTE_ACCEL}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj0ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhKWhj,ubj)}(hhh]h)}(hXDriver supports compute acceleration devices. This flag is mutually exclusive with **DRIVER_RENDER** and **DRIVER_MODESET**. Devices that support both graphics and compute acceleration should be handled by two drivers that are connected using auxiliary bus.h](hSDriver supports compute acceleration devices. This flag is mutually exclusive with }(hjKhhhNhNubjZ)}(h**DRIVER_RENDER**h]h DRIVER_RENDER}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjKubh and }(hjKhhhNhNubjZ)}(h**DRIVER_MODESET**h]hDRIVER_MODESET}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjKubh. Devices that support both graphics and compute acceleration should be handled by two drivers that are connected using auxiliary bus.}(hjKhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhKUhjHubah}(h]h ]h"]h$]h&]uh1jhj,ubeh}(h]h ]h"]h$]h&]uh1jhjGhKWhjbubj)}(hS``DRIVER_GEM_GPUVA`` Driver supports user defined GPU VA bindings for GEM objects. h](j)}(h``DRIVER_GEM_GPUVA``h]j)}(hjh]hDRIVER_GEM_GPUVA}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhKZhjubj)}(hhh]h)}(h=Driver supports user defined GPU VA bindings for GEM objects.h]h=Driver supports user defined GPU VA bindings for GEM objects.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKZhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKZhjbubj)}(h``DRIVER_CURSOR_HOTSPOT`` Driver supports and requires cursor hotspot information in the cursor plane (e.g. cursor plane has to actually track the mouse cursor and the clients are required to set hotspot in order for the cursor planes to work correctly). h](j)}(h``DRIVER_CURSOR_HOTSPOT``h]j)}(hjh]hDRIVER_CURSOR_HOTSPOT}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhK`hjubj)}(hhh]h)}(hDriver supports and requires cursor hotspot information in the cursor plane (e.g. cursor plane has to actually track the mouse cursor and the clients are required to set hotspot in order for the cursor planes to work correctly).h]hDriver supports and requires cursor hotspot information in the cursor plane (e.g. cursor plane has to actually track the mouse cursor and the clients are required to set hotspot in order for the cursor planes to work correctly).}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhK]hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhK`hjbubj)}(h``DRIVER_USE_AGP`` Set up DRM AGP support, see drm_agp_init(), the DRM core will manage AGP resources. New drivers don't need this. h](j)}(h``DRIVER_USE_AGP``h]j)}(hjh]hDRIVER_USE_AGP}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhKdhjubj)}(hhh]h)}(hpSet up DRM AGP support, see drm_agp_init(), the DRM core will manage AGP resources. New drivers don't need this.h]hrSet up DRM AGP support, see drm_agp_init(), the DRM core will manage AGP resources. New drivers don’t need this.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhKchjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKdhjbubj)}(hJ``DRIVER_LEGACY`` Denote a legacy driver using shadow attach. Do not use. h](j)}(h``DRIVER_LEGACY``h]j)}(hj=h]h DRIVER_LEGACY}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj;ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhKghj7ubj)}(hhh]h)}(h7Denote a legacy driver using shadow attach. Do not use.h]h7Denote a legacy driver using shadow attach. Do not use.}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjRhKghjSubah}(h]h ]h"]h$]h&]uh1jhj7ubeh}(h]h ]h"]h$]h&]uh1jhjRhKghjbubj)}(h``DRIVER_PCI_DMA`` Driver is capable of PCI DMA, mapping of PCI DMA buffers to userspace will be enabled. Only for legacy drivers. Do not use. h](j)}(h``DRIVER_PCI_DMA``h]j)}(hjvh]hDRIVER_PCI_DMA}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjtubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhKkhjpubj)}(hhh]h)}(h{Driver is capable of PCI DMA, mapping of PCI DMA buffers to userspace will be enabled. Only for legacy drivers. Do not use.h]h{Driver is capable of PCI DMA, mapping of PCI DMA buffers to userspace will be enabled. Only for legacy drivers. Do not use.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhKjhjubah}(h]h ]h"]h$]h&]uh1jhjpubeh}(h]h ]h"]h$]h&]uh1jhjhKkhjbubj)}(h``DRIVER_SG`` Driver can perform scatter/gather DMA, allocation and mapping of scatter/gather buffers will be enabled. Only for legacy drivers. Do not use. h](j)}(h ``DRIVER_SG``h]j)}(hjh]h DRIVER_SG}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhKphjubj)}(hhh]h)}(hDriver can perform scatter/gather DMA, allocation and mapping of scatter/gather buffers will be enabled. Only for legacy drivers. Do not use.h]hDriver can perform scatter/gather DMA, allocation and mapping of scatter/gather buffers will be enabled. Only for legacy drivers. Do not use.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhKnhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKphjbubj)}(hw``DRIVER_HAVE_DMA`` Driver supports DMA, the userspace DMA API will be supported. Only for legacy drivers. Do not use. h](j)}(h``DRIVER_HAVE_DMA``h]j)}(hjh]hDRIVER_HAVE_DMA}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhKthjubj)}(hhh]h)}(hbDriver supports DMA, the userspace DMA API will be supported. Only for legacy drivers. Do not use.h]hbDriver supports DMA, the userspace DMA API will be supported. Only for legacy drivers. Do not use.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhKshjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKthjbubj)}(hL``DRIVER_HAVE_IRQ`` Legacy irq support. Only for legacy drivers. Do not use.h](j)}(h``DRIVER_HAVE_IRQ``h]j)}(hj$h]hDRIVER_HAVE_IRQ}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj"ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhKvhjubj)}(hhh]h)}(h8Legacy irq support. Only for legacy drivers. Do not use.h]h8Legacy irq support. Only for legacy drivers. Do not use.}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhKwhj:ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj9hKvhjbubeh}(h]h ]h"]h$]h&]uh1jhjFubeh}(h]h ] kernelindentah"]h$]h&]uh1jOhj_hhhNhNubh)}(h**Description**h]jZ)}(hjgh]h Description}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjeubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhKyhj_hhubh)}(hoSee :c:type:`drm_driver.driver_features `, drm_device.driver_features and drm_core_check_feature().h](hSee }(hj}hhhNhNubh)}(h1:c:type:`drm_driver.driver_features `h]j)}(hjh]hdrm_driver.driver_features}(hjhhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjjj drm_driveruh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhK5hj}ubh:, drm_device.driver_features and drm_core_check_feature().}(hj}hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhK5hj_hhubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jdrm_driver (C struct) c.drm_driverhNtauh1jhj_hhhNhNubj)}(hhh](j)}(h drm_driverh]j)}(hstruct drm_driverh](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhK;ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhK;ubj)}(h drm_driverh]j)}(hjh]h drm_driver}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jAjBuh1jhjhhhjhK;ubeh}(h]h ]h"]h$]h&]jAjBjuh1jjjhjhhhjhK;ubah}(h]jah ](j j!eh"]h$]h&]j%j&)j'huh1jhjhK;hjhhubj))}(hhh]h)}(hDRM driver structureh]hDRM driver structure}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhKhjhhubah}(h]h ]h"]h$]h&]uh1j(hjhhhjhK;ubeh}(h]h ](j structeh"]h$]h&]jIj jJj"jKj"jLjMjNuh1jhhhj_hNhNubjP)}(hX0**Definition**:: struct drm_driver { int (*load) (struct drm_device *, unsigned long flags); int (*open) (struct drm_device *, struct drm_file *); void (*postclose) (struct drm_device *, struct drm_file *); void (*unload) (struct drm_device *); void (*release) (struct drm_device *); void (*master_set)(struct drm_device *dev, struct drm_file *file_priv, bool from_open); void (*master_drop)(struct drm_device *dev, struct drm_file *file_priv); void (*debugfs_init)(struct drm_minor *minor); struct drm_gem_object *(*gem_create_object)(struct drm_device *dev, size_t size); int (*prime_handle_to_fd)(struct drm_device *dev, struct drm_file *file_priv, uint32_t handle, uint32_t flags, int *prime_fd); int (*prime_fd_to_handle)(struct drm_device *dev, struct drm_file *file_priv, int prime_fd, uint32_t *handle); struct drm_gem_object * (*gem_prime_import)(struct drm_device *dev, struct dma_buf *dma_buf); struct drm_gem_object *(*gem_prime_import_sg_table)( struct drm_device *dev, struct dma_buf_attachment *attach, struct sg_table *sgt); int (*dumb_create)(struct drm_file *file_priv, struct drm_device *dev, struct drm_mode_create_dumb *args); int (*dumb_map_offset)(struct drm_file *file_priv, struct drm_device *dev, uint32_t handle, uint64_t *offset); int (*fbdev_probe)(struct drm_fb_helper *fbdev_helper, struct drm_fb_helper_surface_size *sizes); void (*show_fdinfo)(struct drm_printer *p, struct drm_file *f); int major; int minor; int patchlevel; char *name; char *desc; u32 driver_features; const struct drm_ioctl_desc *ioctls; int num_ioctls; const struct file_operations *fops; }; **Members** ``load`` Backward-compatible driver callback to complete initialization steps after the driver is registered. For this reason, may suffer from race conditions and its use is deprecated for new drivers. It is therefore only supported for existing drivers not yet converted to the new scheme. See devm_drm_dev_alloc() and drm_dev_register() for proper and race-free way to set up a :c:type:`struct drm_device `. This is deprecated, do not use! Returns: Zero on success, non-zero value on failure. ``open`` Driver callback when a new :c:type:`struct drm_file ` is opened. Useful for setting up driver-private data structures like buffer allocators, execution contexts or similar things. Such driver-private resources must be released again in **postclose**. Since the display/modeset side of DRM can only be owned by exactly one :c:type:`struct drm_file ` (see :c:type:`drm_file.is_master ` and :c:type:`drm_device.master `) there should never be a need to set up any modeset related resources in this callback. Doing so would be a driver design bug. Returns: 0 on success, a negative error code on failure, which will be promoted to userspace as the result of the open() system call. ``postclose`` One of the driver callbacks when a new :c:type:`struct drm_file ` is closed. Useful for tearing down driver-private data structures allocated in **open** like buffer allocators, execution contexts or similar things. Since the display/modeset side of DRM can only be owned by exactly one :c:type:`struct drm_file ` (see :c:type:`drm_file.is_master ` and :c:type:`drm_device.master `) there should never be a need to tear down any modeset related resources in this callback. Doing so would be a driver design bug. ``unload`` Reverse the effects of the driver load callback. Ideally, the clean up performed by the driver should happen in the reverse order of the initialization. Similarly to the load hook, this handler is deprecated and its usage should be dropped in favor of an open-coded teardown function at the driver layer. See drm_dev_unregister() and drm_dev_put() for the proper way to remove a :c:type:`struct drm_device `. The unload() hook is called right after unregistering the device. ``release`` Optional callback for destroying device data after the final reference is released, i.e. the device is being destroyed. This is deprecated, clean up all memory allocations associated with a :c:type:`drm_device` using drmm_add_action(), drmm_kmalloc() and related managed resources functions. ``master_set`` Called whenever the minor master is set. Only used by vmwgfx. ``master_drop`` Called whenever the minor master is dropped. Only used by vmwgfx. ``debugfs_init`` Allows drivers to create driver-specific debugfs files. ``gem_create_object`` constructor for gem objects Hook for allocating the GEM object struct, for use by the CMA and SHMEM GEM helpers. Returns a GEM object on success, or an ERR_PTR()-encoded error code otherwise. ``prime_handle_to_fd`` PRIME export function. Only used by vmwgfx. ``prime_fd_to_handle`` PRIME import function. Only used by vmwgfx. ``gem_prime_import`` Import hook for GEM drivers. This defaults to drm_gem_prime_import() if not set. ``gem_prime_import_sg_table`` Optional hook used by the PRIME helper functions drm_gem_prime_import() respectively drm_gem_prime_import_dev(). ``dumb_create`` This creates a new dumb buffer in the driver's backing storage manager (GEM, TTM or something else entirely) and returns the resulting buffer handle. This handle can then be wrapped up into a framebuffer modeset object. Note that userspace is not allowed to use such objects for render acceleration - drivers must create their own private ioctls for such a use case. Width, height and depth are specified in the :c:type:`drm_mode_create_dumb` argument. The callback needs to fill the handle, pitch and size for the created buffer. Called by the user via ioctl. Returns: Zero on success, negative errno on failure. ``dumb_map_offset`` Allocate an offset in the drm device node's address space to be able to memory map a dumb buffer. The default implementation is drm_gem_create_mmap_offset(). GEM based drivers must not overwrite this. Called by the user via ioctl. Returns: Zero on success, negative errno on failure. ``fbdev_probe`` Allocates and initialize the fb_info structure for fbdev emulation. Furthermore it also needs to allocate the DRM framebuffer used to back the fbdev. This callback is mandatory for fbdev support. Returns: 0 on success ot a negative error code otherwise. ``show_fdinfo`` Print device specific fdinfo. See Documentation/gpu/drm-usage-stats.rst. ``major`` driver major number ``minor`` driver minor number ``patchlevel`` driver patch level ``name`` driver name ``desc`` driver description ``driver_features`` Driver features, see :c:type:`enum drm_driver_feature `. Drivers can disable some features on a per-instance basis using :c:type:`drm_device.driver_features `. ``ioctls`` Array of driver-private IOCTL description entries. See the chapter on :ref:`IOCTL support in the userland interfaces chapter` for the full details. ``num_ioctls`` Number of entries in **ioctls**. ``fops`` File operations for the DRM device node. See the discussion in :ref:`file operations` for in-depth coverage and some examples.h](h)}(h**Definition**::h](jZ)}(h**Definition**h]h Definition}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj*ubh:}(hj*hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhKhj&ubj2)}(hXstruct drm_driver { int (*load) (struct drm_device *, unsigned long flags); int (*open) (struct drm_device *, struct drm_file *); void (*postclose) (struct drm_device *, struct drm_file *); void (*unload) (struct drm_device *); void (*release) (struct drm_device *); void (*master_set)(struct drm_device *dev, struct drm_file *file_priv, bool from_open); void (*master_drop)(struct drm_device *dev, struct drm_file *file_priv); void (*debugfs_init)(struct drm_minor *minor); struct drm_gem_object *(*gem_create_object)(struct drm_device *dev, size_t size); int (*prime_handle_to_fd)(struct drm_device *dev, struct drm_file *file_priv, uint32_t handle, uint32_t flags, int *prime_fd); int (*prime_fd_to_handle)(struct drm_device *dev, struct drm_file *file_priv, int prime_fd, uint32_t *handle); struct drm_gem_object * (*gem_prime_import)(struct drm_device *dev, struct dma_buf *dma_buf); struct drm_gem_object *(*gem_prime_import_sg_table)( struct drm_device *dev, struct dma_buf_attachment *attach, struct sg_table *sgt); int (*dumb_create)(struct drm_file *file_priv, struct drm_device *dev, struct drm_mode_create_dumb *args); int (*dumb_map_offset)(struct drm_file *file_priv, struct drm_device *dev, uint32_t handle, uint64_t *offset); int (*fbdev_probe)(struct drm_fb_helper *fbdev_helper, struct drm_fb_helper_surface_size *sizes); void (*show_fdinfo)(struct drm_printer *p, struct drm_file *f); int major; int minor; int patchlevel; char *name; char *desc; u32 driver_features; const struct drm_ioctl_desc *ioctls; int num_ioctls; const struct file_operations *fops; };h]hXstruct drm_driver { int (*load) (struct drm_device *, unsigned long flags); int (*open) (struct drm_device *, struct drm_file *); void (*postclose) (struct drm_device *, struct drm_file *); void (*unload) (struct drm_device *); void (*release) (struct drm_device *); void (*master_set)(struct drm_device *dev, struct drm_file *file_priv, bool from_open); void (*master_drop)(struct drm_device *dev, struct drm_file *file_priv); void (*debugfs_init)(struct drm_minor *minor); struct drm_gem_object *(*gem_create_object)(struct drm_device *dev, size_t size); int (*prime_handle_to_fd)(struct drm_device *dev, struct drm_file *file_priv, uint32_t handle, uint32_t flags, int *prime_fd); int (*prime_fd_to_handle)(struct drm_device *dev, struct drm_file *file_priv, int prime_fd, uint32_t *handle); struct drm_gem_object * (*gem_prime_import)(struct drm_device *dev, struct dma_buf *dma_buf); struct drm_gem_object *(*gem_prime_import_sg_table)( struct drm_device *dev, struct dma_buf_attachment *attach, struct sg_table *sgt); int (*dumb_create)(struct drm_file *file_priv, struct drm_device *dev, struct drm_mode_create_dumb *args); int (*dumb_map_offset)(struct drm_file *file_priv, struct drm_device *dev, uint32_t handle, uint64_t *offset); int (*fbdev_probe)(struct drm_fb_helper *fbdev_helper, struct drm_fb_helper_surface_size *sizes); void (*show_fdinfo)(struct drm_printer *p, struct drm_file *f); int major; int minor; int patchlevel; char *name; char *desc; u32 driver_features; const struct drm_ioctl_desc *ioctls; int num_ioctls; const struct file_operations *fops; };}hjGsbah}(h]h ]h"]h$]h&]jAjBuh1j1hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhKhj&ubh)}(h **Members**h]jZ)}(hjXh]hMembers}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjVubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhKhj&ubj)}(hhh](j)}(hX``load`` Backward-compatible driver callback to complete initialization steps after the driver is registered. For this reason, may suffer from race conditions and its use is deprecated for new drivers. It is therefore only supported for existing drivers not yet converted to the new scheme. See devm_drm_dev_alloc() and drm_dev_register() for proper and race-free way to set up a :c:type:`struct drm_device `. This is deprecated, do not use! Returns: Zero on success, non-zero value on failure. h](j)}(h``load``h]j)}(hjwh]hload}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjuubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhKhjqubj)}(hhh](h)}(hXBackward-compatible driver callback to complete initialization steps after the driver is registered. For this reason, may suffer from race conditions and its use is deprecated for new drivers. It is therefore only supported for existing drivers not yet converted to the new scheme. See devm_drm_dev_alloc() and drm_dev_register() for proper and race-free way to set up a :c:type:`struct drm_device `.h](hXvBackward-compatible driver callback to complete initialization steps after the driver is registered. For this reason, may suffer from race conditions and its use is deprecated for new drivers. It is therefore only supported for existing drivers not yet converted to the new scheme. See devm_drm_dev_alloc() and drm_dev_register() for proper and race-free way to set up a }(hjhhhNhNubh)}(h(:c:type:`struct drm_device `h]j)}(hjh]hstruct drm_device}(hjhhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjjj drm_deviceuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhKhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhKhjubh)}(hThis is deprecated, do not use!h]hThis is deprecated, do not use!}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhKhjubh)}(hReturns:h]hReturns:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhKhjubh)}(h+Zero on success, non-zero value on failure.h]h+Zero on success, non-zero value on failure.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubeh}(h]h ]h"]h$]h&]uh1jhjqubeh}(h]h ]h"]h$]h&]uh1jhjhKhjnubj)}(hX``open`` Driver callback when a new :c:type:`struct drm_file ` is opened. Useful for setting up driver-private data structures like buffer allocators, execution contexts or similar things. Such driver-private resources must be released again in **postclose**. Since the display/modeset side of DRM can only be owned by exactly one :c:type:`struct drm_file ` (see :c:type:`drm_file.is_master ` and :c:type:`drm_device.master `) there should never be a need to set up any modeset related resources in this callback. Doing so would be a driver design bug. Returns: 0 on success, a negative error code on failure, which will be promoted to userspace as the result of the open() system call. h](j)}(h``open``h]j)}(hjh]hopen}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhKhjubj)}(hhh](h)}(hXDriver callback when a new :c:type:`struct drm_file ` is opened. Useful for setting up driver-private data structures like buffer allocators, execution contexts or similar things. Such driver-private resources must be released again in **postclose**.h](hDriver callback when a new }(hjhhhNhNubh)}(h$:c:type:`struct drm_file `h]j)}(hj#h]hstruct drm_file}(hj%hhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhj!ubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjjjdrm_fileuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhKhjubh is opened. Useful for setting up driver-private data structures like buffer allocators, execution contexts or similar things. Such driver-private resources must be released again in }(hjhhhNhNubjZ)}(h **postclose**h]h postclose}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj@hKhjubh)}(hXDSince the display/modeset side of DRM can only be owned by exactly one :c:type:`struct drm_file ` (see :c:type:`drm_file.is_master ` and :c:type:`drm_device.master `) there should never be a need to set up any modeset related resources in this callback. Doing so would be a driver design bug.h](hGSince the display/modeset side of DRM can only be owned by exactly one }(hj]hhhNhNubh)}(h$:c:type:`struct drm_file `h]j)}(hjgh]hstruct drm_file}(hjihhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjeubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjjjdrm_fileuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhKhj]ubh (see }(hj]hhhNhNubh)}(h':c:type:`drm_file.is_master `h]j)}(hjh]hdrm_file.is_master}(hjhhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjjjdrm_fileuh1hhjhKhj]ubh and }(hj]hhhNhNubh)}(h(:c:type:`drm_device.master `h]j)}(hjh]hdrm_device.master}(hjhhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjjj drm_deviceuh1hhjhKhj]ubh) there should never be a need to set up any modeset related resources in this callback. Doing so would be a driver design bug.}(hj]hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhKhjubh)}(hReturns:h]hReturns:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhKhjubh)}(h|0 on success, a negative error code on failure, which will be promoted to userspace as the result of the open() system call.h]h|0 on success, a negative error code on failure, which will be promoted to userspace as the result of the open() system call.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhKhjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjnubj)}(hX9``postclose`` One of the driver callbacks when a new :c:type:`struct drm_file ` is closed. Useful for tearing down driver-private data structures allocated in **open** like buffer allocators, execution contexts or similar things. Since the display/modeset side of DRM can only be owned by exactly one :c:type:`struct drm_file ` (see :c:type:`drm_file.is_master ` and :c:type:`drm_device.master `) there should never be a need to tear down any modeset related resources in this callback. Doing so would be a driver design bug. h](j)}(h ``postclose``h]j)}(hjh]h postclose}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhKhjubj)}(hhh](h)}(hOne of the driver callbacks when a new :c:type:`struct drm_file ` is closed. Useful for tearing down driver-private data structures allocated in **open** like buffer allocators, execution contexts or similar things.h](h'One of the driver callbacks when a new }(hjhhhNhNubh)}(h$:c:type:`struct drm_file `h]j)}(hj(h]hstruct drm_file}(hj*hhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhj&ubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjjjdrm_fileuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhKhjubhP is closed. Useful for tearing down driver-private data structures allocated in }(hjhhhNhNubjZ)}(h**open**h]hopen}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubh> like buffer allocators, execution contexts or similar things.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjEhKhjubh)}(hXGSince the display/modeset side of DRM can only be owned by exactly one :c:type:`struct drm_file ` (see :c:type:`drm_file.is_master ` and :c:type:`drm_device.master `) there should never be a need to tear down any modeset related resources in this callback. Doing so would be a driver design bug.h](hGSince the display/modeset side of DRM can only be owned by exactly one }(hjbhhhNhNubh)}(h$:c:type:`struct drm_file `h]j)}(hjlh]hstruct drm_file}(hjnhhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjjubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjjjdrm_fileuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhKhjbubh (see }(hjbhhhNhNubh)}(h':c:type:`drm_file.is_master `h]j)}(hjh]hdrm_file.is_master}(hjhhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjjjdrm_fileuh1hhjhKhjbubh and }(hjbhhhNhNubh)}(h(:c:type:`drm_device.master `h]j)}(hjh]hdrm_device.master}(hjhhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjjj drm_deviceuh1hhjhKhjbubh) there should never be a need to tear down any modeset related resources in this callback. Doing so would be a driver design bug.}(hjbhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhKhjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjnubj)}(hX``unload`` Reverse the effects of the driver load callback. Ideally, the clean up performed by the driver should happen in the reverse order of the initialization. Similarly to the load hook, this handler is deprecated and its usage should be dropped in favor of an open-coded teardown function at the driver layer. See drm_dev_unregister() and drm_dev_put() for the proper way to remove a :c:type:`struct drm_device `. The unload() hook is called right after unregistering the device. h](j)}(h ``unload``h]j)}(hjh]hunload}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhKhjubj)}(hhh](h)}(hXReverse the effects of the driver load callback. Ideally, the clean up performed by the driver should happen in the reverse order of the initialization. Similarly to the load hook, this handler is deprecated and its usage should be dropped in favor of an open-coded teardown function at the driver layer. See drm_dev_unregister() and drm_dev_put() for the proper way to remove a :c:type:`struct drm_device `.h](hX~Reverse the effects of the driver load callback. Ideally, the clean up performed by the driver should happen in the reverse order of the initialization. Similarly to the load hook, this handler is deprecated and its usage should be dropped in favor of an open-coded teardown function at the driver layer. See drm_dev_unregister() and drm_dev_put() for the proper way to remove a }(hjhhhNhNubh)}(h(:c:type:`struct drm_device `h]j)}(hjh]hstruct drm_device}(hjhhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjjj drm_deviceuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhKhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj,hKhjubh)}(hAThe unload() hook is called right after unregistering the device.h]hAThe unload() hook is called right after unregistering the device.}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhKhjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjnubj)}(hX1``release`` Optional callback for destroying device data after the final reference is released, i.e. the device is being destroyed. This is deprecated, clean up all memory allocations associated with a :c:type:`drm_device` using drmm_add_action(), drmm_kmalloc() and related managed resources functions. h](j)}(h ``release``h]j)}(hjXh]hrelease}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjVubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhMhjRubj)}(hhh](h)}(hwOptional callback for destroying device data after the final reference is released, i.e. the device is being destroyed.h]hwOptional callback for destroying device data after the final reference is released, i.e. the device is being destroyed.}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhKhjnubh)}(hThis is deprecated, clean up all memory allocations associated with a :c:type:`drm_device` using drmm_add_action(), drmm_kmalloc() and related managed resources functions.h](hFThis is deprecated, clean up all memory allocations associated with a }(hjhhhNhNubh)}(h:c:type:`drm_device`h]j)}(hjh]h drm_device}(hjhhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjjj drm_deviceuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhMhjubhQ using drmm_add_action(), drmm_kmalloc() and related managed resources functions.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMhjnubeh}(h]h ]h"]h$]h&]uh1jhjRubeh}(h]h ]h"]h$]h&]uh1jhjmhMhjnubj)}(hM``master_set`` Called whenever the minor master is set. Only used by vmwgfx. h](j)}(h``master_set``h]j)}(hjh]h master_set}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhM hjubj)}(hhh]h)}(h=Called whenever the minor master is set. Only used by vmwgfx.h]h=Called whenever the minor master is set. Only used by vmwgfx.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM hjnubj)}(hR``master_drop`` Called whenever the minor master is dropped. Only used by vmwgfx. h](j)}(h``master_drop``h]j)}(hjh]h master_drop}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhMhjubj)}(hhh]h)}(hACalled whenever the minor master is dropped. Only used by vmwgfx.h]hACalled whenever the minor master is dropped. Only used by vmwgfx.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjnubj)}(hI``debugfs_init`` Allows drivers to create driver-specific debugfs files. h](j)}(h``debugfs_init``h]j)}(hj6h]h debugfs_init}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj4ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhMhj0ubj)}(hhh]h)}(h7Allows drivers to create driver-specific debugfs files.h]h7Allows drivers to create driver-specific debugfs files.}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjKhMhjLubah}(h]h ]h"]h$]h&]uh1jhj0ubeh}(h]h ]h"]h$]h&]uh1jhjKhMhjnubj)}(h``gem_create_object`` constructor for gem objects Hook for allocating the GEM object struct, for use by the CMA and SHMEM GEM helpers. Returns a GEM object on success, or an ERR_PTR()-encoded error code otherwise. h](j)}(h``gem_create_object``h]j)}(hjoh]hgem_create_object}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjmubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhM"hjiubj)}(hhh](h)}(hconstructor for gem objectsh]hconstructor for gem objects}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhMhjubh)}(hHook for allocating the GEM object struct, for use by the CMA and SHMEM GEM helpers. Returns a GEM object on success, or an ERR_PTR()-encoded error code otherwise.h]hHook for allocating the GEM object struct, for use by the CMA and SHMEM GEM helpers. Returns a GEM object on success, or an ERR_PTR()-encoded error code otherwise.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhM hjubeh}(h]h ]h"]h$]h&]uh1jhjiubeh}(h]h ]h"]h$]h&]uh1jhjhM"hjnubj)}(hC``prime_handle_to_fd`` PRIME export function. Only used by vmwgfx. h](j)}(h``prime_handle_to_fd``h]j)}(hjh]hprime_handle_to_fd}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhM(hjubj)}(hhh]h)}(h+PRIME export function. Only used by vmwgfx.h]h+PRIME export function. Only used by vmwgfx.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM(hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM(hjnubj)}(hC``prime_fd_to_handle`` PRIME import function. Only used by vmwgfx. h](j)}(h``prime_fd_to_handle``h]j)}(hjh]hprime_fd_to_handle}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhM/hjubj)}(hhh]h)}(h+PRIME import function. Only used by vmwgfx.h]h+PRIME import function. Only used by vmwgfx.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hM/hj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj hM/hjnubj)}(hg``gem_prime_import`` Import hook for GEM drivers. This defaults to drm_gem_prime_import() if not set. h](j)}(h``gem_prime_import``h]j)}(hj* h]hgem_prime_import}(hj, hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj( ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhM9hj$ ubj)}(hhh](h)}(hImport hook for GEM drivers.h]hImport hook for GEM drivers.}(hjC hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhM7hj@ ubh)}(h3This defaults to drm_gem_prime_import() if not set.h]h3This defaults to drm_gem_prime_import() if not set.}(hjR hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj? hM9hj@ ubeh}(h]h ]h"]h$]h&]uh1jhj$ ubeh}(h]h ]h"]h$]h&]uh1jhj? hM9hjnubj)}(h``gem_prime_import_sg_table`` Optional hook used by the PRIME helper functions drm_gem_prime_import() respectively drm_gem_prime_import_dev(). h](j)}(h``gem_prime_import_sg_table``h]j)}(hjr h]hgem_prime_import_sg_table}(hjt hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjp ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhMAhjl ubj)}(hhh]h)}(hpOptional hook used by the PRIME helper functions drm_gem_prime_import() respectively drm_gem_prime_import_dev().h]hpOptional hook used by the PRIME helper functions drm_gem_prime_import() respectively drm_gem_prime_import_dev().}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhM@hj ubah}(h]h ]h"]h$]h&]uh1jhjl ubeh}(h]h ]h"]h$]h&]uh1jhj hMAhjnubj)}(hX{``dumb_create`` This creates a new dumb buffer in the driver's backing storage manager (GEM, TTM or something else entirely) and returns the resulting buffer handle. This handle can then be wrapped up into a framebuffer modeset object. Note that userspace is not allowed to use such objects for render acceleration - drivers must create their own private ioctls for such a use case. Width, height and depth are specified in the :c:type:`drm_mode_create_dumb` argument. The callback needs to fill the handle, pitch and size for the created buffer. Called by the user via ioctl. Returns: Zero on success, negative errno on failure. h](j)}(h``dumb_create``h]j)}(hj h]h dumb_create}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhM[hj ubj)}(hhh](h)}(hThis creates a new dumb buffer in the driver's backing storage manager (GEM, TTM or something else entirely) and returns the resulting buffer handle. This handle can then be wrapped up into a framebuffer modeset object.h]hThis creates a new dumb buffer in the driver’s backing storage manager (GEM, TTM or something else entirely) and returns the resulting buffer handle. This handle can then be wrapped up into a framebuffer modeset object.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhMKhj ubh)}(hNote that userspace is not allowed to use such objects for render acceleration - drivers must create their own private ioctls for such a use case.h]hNote that userspace is not allowed to use such objects for render acceleration - drivers must create their own private ioctls for such a use case.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhMOhj ubh)}(hWidth, height and depth are specified in the :c:type:`drm_mode_create_dumb` argument. The callback needs to fill the handle, pitch and size for the created buffer.h](h-Width, height and depth are specified in the }(hj hhhNhNubh)}(h:c:type:`drm_mode_create_dumb`h]j)}(hj h]hdrm_mode_create_dumb}(hj hhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjjjdrm_mode_create_dumbuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhMShj ubhX argument. The callback needs to fill the handle, pitch and size for the created buffer.}(hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj !hMShj ubh)}(hCalled by the user via ioctl.h]hCalled by the user via ioctl.}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhMWhj ubh)}(hReturns:h]hReturns:}(hj$!hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhMYhj ubh)}(h+Zero on success, negative errno on failure.h]h+Zero on success, negative errno on failure.}(hj3!hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hM[hj ubeh}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj hM[hjnubj)}(hX4``dumb_map_offset`` Allocate an offset in the drm device node's address space to be able to memory map a dumb buffer. The default implementation is drm_gem_create_mmap_offset(). GEM based drivers must not overwrite this. Called by the user via ioctl. Returns: Zero on success, negative errno on failure. h](j)}(h``dumb_map_offset``h]j)}(hjS!h]hdumb_map_offset}(hjU!hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjQ!ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhMmhjM!ubj)}(hhh](h)}(haAllocate an offset in the drm device node's address space to be able to memory map a dumb buffer.h]hcAllocate an offset in the drm device node’s address space to be able to memory map a dumb buffer.}(hjl!hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhMchji!ubh)}(hfThe default implementation is drm_gem_create_mmap_offset(). GEM based drivers must not overwrite this.h]hfThe default implementation is drm_gem_create_mmap_offset(). GEM based drivers must not overwrite this.}(hj{!hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhMfhji!ubh)}(hCalled by the user via ioctl.h]hCalled by the user via ioctl.}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhMihji!ubh)}(hReturns:h]hReturns:}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhMkhji!ubh)}(h+Zero on success, negative errno on failure.h]h+Zero on success, negative errno on failure.}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjh!hMmhji!ubeh}(h]h ]h"]h$]h&]uh1jhjM!ubeh}(h]h ]h"]h$]h&]uh1jhjh!hMmhjnubj)}(hX``fbdev_probe`` Allocates and initialize the fb_info structure for fbdev emulation. Furthermore it also needs to allocate the DRM framebuffer used to back the fbdev. This callback is mandatory for fbdev support. Returns: 0 on success ot a negative error code otherwise. h](j)}(h``fbdev_probe``h]j)}(hj!h]h fbdev_probe}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj!ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhM~hj!ubj)}(hhh](h)}(hAllocates and initialize the fb_info structure for fbdev emulation. Furthermore it also needs to allocate the DRM framebuffer used to back the fbdev.h]hAllocates and initialize the fb_info structure for fbdev emulation. Furthermore it also needs to allocate the DRM framebuffer used to back the fbdev.}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhMvhj!ubh)}(h-This callback is mandatory for fbdev support.h]h-This callback is mandatory for fbdev support.}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhMzhj!ubh)}(hReturns:h]hReturns:}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhM|hj!ubh)}(h00 on success ot a negative error code otherwise.h]h00 on success ot a negative error code otherwise.}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj!hM~hj!ubeh}(h]h ]h"]h$]h&]uh1jhj!ubeh}(h]h ]h"]h$]h&]uh1jhj!hM~hjnubj)}(hZ``show_fdinfo`` Print device specific fdinfo. See Documentation/gpu/drm-usage-stats.rst. h](j)}(h``show_fdinfo``h]j)}(hj."h]h show_fdinfo}(hj0"hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj,"ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhMhj("ubj)}(hhh]h)}(hIPrint device specific fdinfo. See Documentation/gpu/drm-usage-stats.rst.h]hIPrint device specific fdinfo. See Documentation/gpu/drm-usage-stats.rst.}(hjG"hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjC"hMhjD"ubah}(h]h ]h"]h$]h&]uh1jhj("ubeh}(h]h ]h"]h$]h&]uh1jhjC"hMhjnubj)}(h``major`` driver major number h](j)}(h ``major``h]j)}(hjg"h]hmajor}(hji"hhhNhNubah}(h]h ]h"]h$]h&]uh1jhje"ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhMhja"ubj)}(hhh]h)}(hdriver major numberh]hdriver major number}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj|"hMhj}"ubah}(h]h ]h"]h$]h&]uh1jhja"ubeh}(h]h ]h"]h$]h&]uh1jhj|"hMhjnubj)}(h``minor`` driver minor number h](j)}(h ``minor``h]j)}(hj"h]hminor}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj"ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhMhj"ubj)}(hhh]h)}(hdriver minor numberh]hdriver minor number}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj"hMhj"ubah}(h]h ]h"]h$]h&]uh1jhj"ubeh}(h]h ]h"]h$]h&]uh1jhj"hMhjnubj)}(h"``patchlevel`` driver patch level h](j)}(h``patchlevel``h]j)}(hj"h]h patchlevel}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj"ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhMhj"ubj)}(hhh]h)}(hdriver patch levelh]hdriver patch level}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj"hMhj"ubah}(h]h ]h"]h$]h&]uh1jhj"ubeh}(h]h ]h"]h$]h&]uh1jhj"hMhjnubj)}(h``name`` driver name h](j)}(h``name``h]j)}(hj#h]hname}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj#ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhMhj #ubj)}(hhh]h)}(h driver nameh]h driver name}(hj+#hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj'#hMhj(#ubah}(h]h ]h"]h$]h&]uh1jhj #ubeh}(h]h ]h"]h$]h&]uh1jhj'#hMhjnubj)}(h``desc`` driver description h](j)}(h``desc``h]j)}(hjK#h]hdesc}(hjM#hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjI#ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhMhjE#ubj)}(hhh]h)}(hdriver descriptionh]hdriver description}(hjd#hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj`#hMhja#ubah}(h]h ]h"]h$]h&]uh1jhjE#ubeh}(h]h ]h"]h$]h&]uh1jhj`#hMhjnubj)}(h``driver_features`` Driver features, see :c:type:`enum drm_driver_feature `. Drivers can disable some features on a per-instance basis using :c:type:`drm_device.driver_features `. h](j)}(h``driver_features``h]j)}(hj#h]hdriver_features}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj#ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhMhj~#ubj)}(hhh]h)}(hDriver features, see :c:type:`enum drm_driver_feature `. Drivers can disable some features on a per-instance basis using :c:type:`drm_device.driver_features `.h](hDriver features, see }(hj#hhhNhNubh)}(h6:c:type:`enum drm_driver_feature `h]j)}(hj#h]henum drm_driver_feature}(hj#hhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhj#ubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjjjdrm_driver_featureuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhMhj#ubhB. Drivers can disable some features on a per-instance basis using }(hj#hhhNhNubh)}(h1:c:type:`drm_device.driver_features `h]j)}(hj#h]hdrm_device.driver_features}(hj#hhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhj#ubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjjj drm_deviceuh1hhj#hMhj#ubh.}(hj#hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj#hMhj#ubah}(h]h ]h"]h$]h&]uh1jhj~#ubeh}(h]h ]h"]h$]h&]uh1jhj#hMhjnubj)}(h``ioctls`` Array of driver-private IOCTL description entries. See the chapter on :ref:`IOCTL support in the userland interfaces chapter` for the full details. h](j)}(h ``ioctls``h]j)}(hj$h]hioctls}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj$ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhMhj#ubj)}(hhh]h)}(hArray of driver-private IOCTL description entries. See the chapter on :ref:`IOCTL support in the userland interfaces chapter` for the full details.h](hFArray of driver-private IOCTL description entries. See the chapter on }(hj$hhhNhNubh)}(hI:ref:`IOCTL support in the userland interfaces chapter`h]j)}(hj'$h]h0IOCTL support in the userland interfaces chapter}(hj)$hhhNhNubah}(h]h ](j stdstd-refeh"]h$]h&]uh1jhj%$ubah}(h]h ]h"]h$]h&]refdocj refdomainj3$reftyperef refexplicitrefwarnjdrm_driver_ioctluh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhMhj$ubh for the full details.}(hj$hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjE$hMhj$ubah}(h]h ]h"]h$]h&]uh1jhj#ubeh}(h]h ]h"]h$]h&]uh1jhj$hMhjnubj)}(h0``num_ioctls`` Number of entries in **ioctls**. h](j)}(h``num_ioctls``h]j)}(hjb$h]h num_ioctls}(hjd$hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj`$ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhMhj\$ubj)}(hhh]h)}(h Number of entries in **ioctls**.h](hNumber of entries in }(hj{$hhhNhNubjZ)}(h **ioctls**h]hioctls}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj{$ubh.}(hj{$hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjw$hMhjx$ubah}(h]h ]h"]h$]h&]uh1jhj\$ubeh}(h]h ]h"]h$]h&]uh1jhjw$hMhjnubj)}(h``fops`` File operations for the DRM device node. See the discussion in :ref:`file operations` for in-depth coverage and some examples.h](j)}(h``fops``h]j)}(hj$h]hfops}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj$ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhMhj$ubj)}(hhh]h)}(hFile operations for the DRM device node. See the discussion in :ref:`file operations` for in-depth coverage and some examples.h](h?File operations for the DRM device node. See the discussion in }(hj$hhhNhNubh)}(h':ref:`file operations`h]j)}(hj$h]hfile operations}(hj$hhhNhNubah}(h]h ](j stdstd-refeh"]h$]h&]uh1jhj$ubah}(h]h ]h"]h$]h&]refdocj refdomainj$reftyperef refexplicitrefwarnjdrm_driver_fopsuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhMhj$ubh) for in-depth coverage and some examples.}(hj$hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj$hMhj$ubah}(h]h ]h"]h$]h&]uh1jhj$ubeh}(h]h ]h"]h$]h&]uh1jhj$hMhjnubeh}(h]h ]h"]h$]h&]uh1jhj&ubeh}(h]h ] kernelindentah"]h$]h&]uh1jOhj_hhhNhNubh)}(h**Description**h]jZ)}(hj%h]h Description}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj%ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhMhj_hhubh)}(hXdThis structure represent the common code for a family of cards. There will be one :c:type:`struct drm_device ` for each card present in this family. It contains lots of vfunc entries, and a pile of those probably should be moved to more appropriate places like :c:type:`drm_mode_config_funcs` or into a new operations structure for GEM drivers.h](hRThis structure represent the common code for a family of cards. There will be one }(hj*%hhhNhNubh)}(h(:c:type:`struct drm_device `h]j)}(hj4%h]hstruct drm_device}(hj6%hhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhj2%ubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjjj drm_deviceuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhKhj*%ubh for each card present in this family. It contains lots of vfunc entries, and a pile of those probably should be moved to more appropriate places like }(hj*%hhhNhNubh)}(h:c:type:`drm_mode_config_funcs`h]j)}(hjX%h]hdrm_mode_config_funcs}(hjZ%hhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjV%ubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjjjdrm_mode_config_funcsuh1hhjQ%hKhj*%ubh4 or into a new operations structure for GEM drivers.}(hj*%hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjQ%hKhj_hhubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jdevm_drm_dev_alloc (C macro)c.devm_drm_dev_allochNtauh1jhj_hhhNhNubj)}(hhh](j)}(hdevm_drm_dev_alloch]j)}(hdevm_drm_dev_alloch]j)}(hdevm_drm_dev_alloch]j)}(hj%h]hdevm_drm_dev_alloc}(hj%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%ubah}(h]h ](jjeh"]h$]h&]jAjBuh1jhj%hhhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhMubah}(h]h ]h"]h$]h&]jAjBjuh1jjjhj%hhhj%hMubah}(h]j%ah ](j j!eh"]h$]h&]j%j&)j'huh1jhj%hMhj%hhubj))}(hhh]h}(h]h ]h"]h$]h&]uh1j(hj%hhhj%hMubeh}(h]h ](j macroeh"]h$]h&]jIj jJj%jKj%jLjMjNuh1jhhhj_hNhNubh)}(h5``devm_drm_dev_alloc (parent, driver, type, member)``h]j)}(hj%h]h1devm_drm_dev_alloc (parent, driver, type, member)}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj%ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhMhj_hhubh block_quote)}(h?Resource managed allocation of a :c:type:`drm_device` instance h]h)}(h>Resource managed allocation of a :c:type:`drm_device` instanceh](h!Resource managed allocation of a }(hj%hhhNhNubh)}(h:c:type:`drm_device`h]j)}(hj%h]h drm_device}(hj%hhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhj%ubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjjj drm_deviceuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhMhj%ubh instance}(hj%hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj&hMhj%ubah}(h]h ]h"]h$]h&]uh1j%hj&hMhj_hhubjP)}(hX**Parameters** ``parent`` Parent device object ``driver`` DRM driver ``type`` the type of the struct which contains struct :c:type:`drm_device` ``member`` the name of the :c:type:`drm_device` within **type**. **Description** This allocates and initialize a new DRM device. No device registration is done. Call drm_dev_register() to advertice the device to user space and register it with other core subsystems. This should be done last in the device initialization sequence to make sure userspace can't access an inconsistent state. The initial ref-count of the object is 1. Use drm_dev_get() and drm_dev_put() to take and drop further ref-counts. It is recommended that drivers embed :c:type:`struct drm_device ` into their own device structure. Note that this manages the lifetime of the resulting :c:type:`drm_device` automatically using devres. The DRM device initialized with this function is automatically put on driver detach using drm_dev_put(). **Return** Pointer to new DRM device, or ERR_PTR on failure.h](h)}(h**Parameters**h]jZ)}(hj(&h]h Parameters}(hj*&hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj&&ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhMhj"&ubj)}(hhh](j)}(h ``parent`` Parent device object h](j)}(h ``parent``h]j)}(hjG&h]hparent}(hjI&hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjE&ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhMhjA&ubj)}(hhh]h)}(hParent device objecth]hParent device object}(hj`&hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj\&hMhj]&ubah}(h]h ]h"]h$]h&]uh1jhjA&ubeh}(h]h ]h"]h$]h&]uh1jhj\&hMhj>&ubj)}(h``driver`` DRM driver h](j)}(h ``driver``h]j)}(hj&h]hdriver}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj~&ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhMhjz&ubj)}(hhh]h)}(h DRM driverh]h DRM driver}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj&hMhj&ubah}(h]h ]h"]h$]h&]uh1jhjz&ubeh}(h]h ]h"]h$]h&]uh1jhj&hMhj>&ubj)}(hK``type`` the type of the struct which contains struct :c:type:`drm_device` h](j)}(h``type``h]j)}(hj&h]htype}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj&ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhMhj&ubj)}(hhh]h)}(hAthe type of the struct which contains struct :c:type:`drm_device`h](h-the type of the struct which contains struct }(hj&hhhNhNubh)}(h:c:type:`drm_device`h]j)}(hj&h]h drm_device}(hj&hhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhj&ubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjjj drm_deviceuh1hhj&hMhj&ubeh}(h]h ]h"]h$]h&]uh1hhj&hMhj&ubah}(h]h ]h"]h$]h&]uh1jhj&ubeh}(h]h ]h"]h$]h&]uh1jhj&hMhj>&ubj)}(hA``member`` the name of the :c:type:`drm_device` within **type**. h](j)}(h ``member``h]j)}(hj'h]hmember}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj'ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhMhj 'ubj)}(hhh]h)}(h5the name of the :c:type:`drm_device` within **type**.h](hthe name of the }(hj*'hhhNhNubh)}(h:c:type:`drm_device`h]j)}(hj4'h]h drm_device}(hj6'hhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhj2'ubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjjj drm_deviceuh1hhj&'hMhj*'ubh within }(hj*'hhhNhNubjZ)}(h**type**h]htype}(hjU'hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj*'ubh.}(hj*'hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj&'hMhj''ubah}(h]h ]h"]h$]h&]uh1jhj 'ubeh}(h]h ]h"]h$]h&]uh1jhj&'hMhj>&ubeh}(h]h ]h"]h$]h&]uh1jhj"&ubh)}(h**Description**h]jZ)}(hj'h]h Description}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj'ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhMhj"&ubh)}(hX3This allocates and initialize a new DRM device. No device registration is done. Call drm_dev_register() to advertice the device to user space and register it with other core subsystems. This should be done last in the device initialization sequence to make sure userspace can't access an inconsistent state.h]hX5This allocates and initialize a new DRM device. No device registration is done. Call drm_dev_register() to advertice the device to user space and register it with other core subsystems. This should be done last in the device initialization sequence to make sure userspace can’t access an inconsistent state.}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhMhj"&ubh)}(hrThe initial ref-count of the object is 1. Use drm_dev_get() and drm_dev_put() to take and drop further ref-counts.h]hrThe initial ref-count of the object is 1. Use drm_dev_get() and drm_dev_put() to take and drop further ref-counts.}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhMhj"&ubh)}(hnIt is recommended that drivers embed :c:type:`struct drm_device ` into their own device structure.h](h%It is recommended that drivers embed }(hj'hhhNhNubh)}(h(:c:type:`struct drm_device `h]j)}(hj'h]hstruct drm_device}(hj'hhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhj'ubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjjj drm_deviceuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhMhj'ubh! into their own device structure.}(hj'hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj'hMhj"&ubh)}(hNote that this manages the lifetime of the resulting :c:type:`drm_device` automatically using devres. The DRM device initialized with this function is automatically put on driver detach using drm_dev_put().h](h5Note that this manages the lifetime of the resulting }(hj'hhhNhNubh)}(h:c:type:`drm_device`h]j)}(hj'h]h drm_device}(hj'hhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhj'ubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjjj drm_deviceuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhMhj'ubh automatically using devres. The DRM device initialized with this function is automatically put on driver detach using drm_dev_put().}(hj'hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj(hMhj"&ubh)}(h **Return**h]jZ)}(hj(h]hReturn}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj(ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhMhj"&ubh)}(h1Pointer to new DRM device, or ERR_PTR on failure.h]h1Pointer to new DRM device, or ERR_PTR on failure.}(hj1(hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhMhj"&ubeh}(h]h ] kernelindentah"]h$]h&]uh1jOhj_hhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j!drm_dev_is_unplugged (C function)c.drm_dev_is_unpluggedhNtauh1jhj_hhhNhNubj)}(hhh](j)}(h2bool drm_dev_is_unplugged (struct drm_device *dev)h]j)}(h1bool drm_dev_is_unplugged(struct drm_device *dev)h](hdesc_sig_keyword_type)}(hboolh]hbool}(hjb(hhhNhNubah}(h]h ]ktah"]h$]h&]uh1j`(hj\(hhhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhMubj)}(h h]h }(hjr(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\(hhhjq(hMubj)}(hdrm_dev_is_unpluggedh]j)}(hdrm_dev_is_unpluggedh]hdrm_dev_is_unplugged}(hj(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj(ubah}(h]h ](jjeh"]h$]h&]jAjBuh1jhj\(hhhjq(hMubjt)}(h(struct drm_device *dev)h]jz)}(hstruct drm_device *devh](j)}(hjh]hstruct}(hj(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj(ubj)}(h h]h }(hj(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj(ubh)}(hhh]j)}(h drm_deviceh]h drm_device}(hj(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj(ubah}(h]h ]h"]h$]h&] refdomainj reftypej/ reftargetj(modnameN classnameNjj)}j]j7)}j/j(sbc.drm_dev_is_unpluggedasbuh1hhj(ubj)}(h h]h }(hj(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj(ubjL)}(hjOh]h*}(hj(hhhNhNubah}(h]h ]jXah"]h$]h&]uh1jKhj(ubj)}(hdevh]hdev}(hj(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj(ubeh}(h]h ]h"]h$]h&]noemphjAjBuh1jyhj(ubah}(h]h ]h"]h$]h&]jAjBuh1jshj\(hhhjq(hMubeh}(h]h ]h"]h$]h&]jAjBjuh1jjjhjX(hhhjq(hMubah}(h]jS(ah ](j j!eh"]h$]h&]j%j&)j'huh1jhjq(hMhjU(hhubj))}(hhh]h)}(his a DRM device unpluggedh]his a DRM device unplugged}(hj#)hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhMhj )hhubah}(h]h ]h"]h$]h&]uh1j(hjU(hhhjq(hMubeh}(h]h ](j functioneh"]h$]h&]jIj jJj;)jKj;)jLjMjNuh1jhhhj_hNhNubjP)}(hX **Parameters** ``struct drm_device *dev`` DRM device **Description** This function can be called to check whether a hotpluggable is unplugged. Unplugging itself is singalled through drm_dev_unplug(). If a device is unplugged, these two functions guarantee that any store before calling drm_dev_unplug() is visible to callers of this function after it completes WARNING: This function fundamentally races against drm_dev_unplug(). It is recommended that drivers instead use the underlying drm_dev_enter() and drm_dev_exit() function pairs.h](h)}(h**Parameters**h]jZ)}(hjE)h]h Parameters}(hjG)hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjC)ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhMhj?)ubj)}(hhh]j)}(h&``struct drm_device *dev`` DRM device h](j)}(h``struct drm_device *dev``h]j)}(hjd)h]hstruct drm_device *dev}(hjf)hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjb)ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhMhj^)ubj)}(hhh]h)}(h DRM deviceh]h DRM device}(hj})hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjy)hMhjz)ubah}(h]h ]h"]h$]h&]uh1jhj^)ubeh}(h]h ]h"]h$]h&]uh1jhjy)hMhj[)ubah}(h]h ]h"]h$]h&]uh1jhj?)ubh)}(h**Description**h]jZ)}(hj)h]h Description}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj)ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhMhj?)ubh)}(hX#This function can be called to check whether a hotpluggable is unplugged. Unplugging itself is singalled through drm_dev_unplug(). If a device is unplugged, these two functions guarantee that any store before calling drm_dev_unplug() is visible to callers of this function after it completesh]hX#This function can be called to check whether a hotpluggable is unplugged. Unplugging itself is singalled through drm_dev_unplug(). If a device is unplugged, these two functions guarantee that any store before calling drm_dev_unplug() is visible to callers of this function after it completes}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhMhj?)ubh)}(hWARNING: This function fundamentally races against drm_dev_unplug(). It is recommended that drivers instead use the underlying drm_dev_enter() and drm_dev_exit() function pairs.h]hWARNING: This function fundamentally races against drm_dev_unplug(). It is recommended that drivers instead use the underlying drm_dev_enter() and drm_dev_exit() function pairs.}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhMhj?)ubeh}(h]h ] kernelindentah"]h$]h&]uh1jOhj_hhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j(drm_core_check_all_features (C function)c.drm_core_check_all_featureshNtauh1jhj_hhhNhNubj)}(hhh](j)}(hMbool drm_core_check_all_features (const struct drm_device *dev, u32 features)h]j)}(hLbool drm_core_check_all_features(const struct drm_device *dev, u32 features)h](ja()}(hjd(h]hbool}(hj)hhhNhNubah}(h]h ]jm(ah"]h$]h&]uh1j`(hj)hhhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhMubj)}(h h]h }(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj)hhhj*hMubj)}(hdrm_core_check_all_featuresh]j)}(hdrm_core_check_all_featuresh]hdrm_core_check_all_features}(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*ubah}(h]h ](jjeh"]h$]h&]jAjBuh1jhj)hhhj*hMubjt)}(h,(const struct drm_device *dev, u32 features)h](jz)}(hconst struct drm_device *devh](j)}(hconsth]hconst}(hj/*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj+*ubj)}(h h]h }(hj=*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj+*ubj)}(hjh]hstruct}(hjK*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj+*ubj)}(h h]h }(hjX*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj+*ubh)}(hhh]j)}(h drm_deviceh]h drm_device}(hji*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjf*ubah}(h]h ]h"]h$]h&] refdomainj reftypej/ reftargetjk*modnameN classnameNjj)}j]j7)}j/j*sbc.drm_core_check_all_featuresasbuh1hhj+*ubj)}(h h]h }(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj+*ubjL)}(hjOh]h*}(hj*hhhNhNubah}(h]h ]jXah"]h$]h&]uh1jKhj+*ubj)}(hdevh]hdev}(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj+*ubeh}(h]h ]h"]h$]h&]noemphjAjBuh1jyhj'*ubjz)}(h u32 featuresh](h)}(hhh]j)}(hu32h]hu32}(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*ubah}(h]h ]h"]h$]h&] refdomainj reftypej/ reftargetj*modnameN classnameNjj)}j]j*c.drm_core_check_all_featuresasbuh1hhj*ubj)}(h h]h }(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*ubj)}(hfeaturesh]hfeatures}(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*ubeh}(h]h ]h"]h$]h&]noemphjAjBuh1jyhj'*ubeh}(h]h ]h"]h$]h&]jAjBuh1jshj)hhhj*hMubeh}(h]h ]h"]h$]h&]jAjBjuh1jjjhj)hhhj*hMubah}(h]j)ah ](j j!eh"]h$]h&]j%j&)j'huh1jhj*hMhj)hhubj))}(hhh]h)}(hcheck driver feature flags maskh]hcheck driver feature flags mask}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhMhj+hhubah}(h]h ]h"]h$]h&]uh1j(hj)hhhj*hMubeh}(h]h ](j functioneh"]h$]h&]jIj jJj.+jKj.+jLjMjNuh1jhhhj_hNhNubjP)}(hX**Parameters** ``const struct drm_device *dev`` DRM device to check ``u32 features`` feature flag(s) mask **Description** This checks **dev** for driver features, see :c:type:`drm_driver.driver_features `, :c:type:`drm_device.driver_features `, and the various :c:type:`enum drm_driver_feature ` flags. Returns true if all features in the **features** mask are supported, false otherwise.h](h)}(h**Parameters**h]jZ)}(hj8+h]h Parameters}(hj:+hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj6+ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhM hj2+ubj)}(hhh](j)}(h5``const struct drm_device *dev`` DRM device to check h](j)}(h ``const struct drm_device *dev``h]j)}(hjW+h]hconst struct drm_device *dev}(hjY+hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjU+ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhMhjQ+ubj)}(hhh]h)}(hDRM device to checkh]hDRM device to check}(hjp+hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjl+hMhjm+ubah}(h]h ]h"]h$]h&]uh1jhjQ+ubeh}(h]h ]h"]h$]h&]uh1jhjl+hMhjN+ubj)}(h&``u32 features`` feature flag(s) mask h](j)}(h``u32 features``h]j)}(hj+h]h u32 features}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj+ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhM hj+ubj)}(hhh]h)}(hfeature flag(s) maskh]hfeature flag(s) mask}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj+hM hj+ubah}(h]h ]h"]h$]h&]uh1jhj+ubeh}(h]h ]h"]h$]h&]uh1jhj+hM hjN+ubeh}(h]h ]h"]h$]h&]uh1jhj2+ubh)}(h**Description**h]jZ)}(hj+h]h Description}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj+ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhM hj2+ubh)}(hThis checks **dev** for driver features, see :c:type:`drm_driver.driver_features `, :c:type:`drm_device.driver_features `, and the various :c:type:`enum drm_driver_feature ` flags.h](h This checks }(hj+hhhNhNubjZ)}(h**dev**h]hdev}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj+ubh for driver features, see }(hj+hhhNhNubh)}(h1:c:type:`drm_driver.driver_features `h]j)}(hj+h]hdrm_driver.driver_features}(hj+hhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhj+ubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjjj drm_driveruh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhM hj+ubh, }(hj+hhhNhNubh)}(h1:c:type:`drm_device.driver_features `h]j)}(hj!,h]hdrm_device.driver_features-}(hj#,hhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhj,ubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjjj drm_deviceuh1hhj,hM hj+ubh, and the various }(hj+hhhNhNubh)}(h6:c:type:`enum drm_driver_feature `h]j)}(hjD,h]henum drm_driver_feature}(hjF,hhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjB,ubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjjjdrm_driver_featureuh1hhj,hM hj+ubh flags.}(hj+hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj,hM hj2+ubh)}(hUReturns true if all features in the **features** mask are supported, false otherwise.h](h$Returns true if all features in the }(hjk,hhhNhNubjZ)}(h **features**h]hfeatures}(hjs,hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjk,ubh% mask are supported, false otherwise.}(hjk,hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhM hj2+ubeh}(h]h ] kernelindentah"]h$]h&]uh1jOhj_hhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j#drm_core_check_feature (C function)c.drm_core_check_featurehNtauh1jhj_hhhNhNubj)}(hhh](j)}(h[bool drm_core_check_feature (const struct drm_device *dev, enum drm_driver_feature feature)h]j)}(hZbool drm_core_check_feature(const struct drm_device *dev, enum drm_driver_feature feature)h](ja()}(hjd(h]hbool}(hj,hhhNhNubah}(h]h ]jm(ah"]h$]h&]uh1j`(hj,hhhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhMubj)}(h h]h }(hj,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,hhhj,hMubj)}(hdrm_core_check_featureh]j)}(hdrm_core_check_featureh]hdrm_core_check_feature}(hj,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,ubah}(h]h ](jjeh"]h$]h&]jAjBuh1jhj,hhhj,hMubjt)}(h?(const struct drm_device *dev, enum drm_driver_feature feature)h](jz)}(hconst struct drm_device *devh](j)}(hj1*h]hconst}(hj,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,ubj)}(h h]h }(hj,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,ubj)}(hjh]hstruct}(hj-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,ubj)}(h h]h }(hj-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,ubh)}(hhh]j)}(h drm_deviceh]h drm_device}(hj!-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-ubah}(h]h ]h"]h$]h&] refdomainj reftypej/ reftargetj#-modnameN classnameNjj)}j]j7)}j/j,sbc.drm_core_check_featureasbuh1hhj,ubj)}(h h]h }(hjA-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,ubjL)}(hjOh]h*}(hjO-hhhNhNubah}(h]h ]jXah"]h$]h&]uh1jKhj,ubj)}(hdevh]hdev}(hj\-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,ubeh}(h]h ]h"]h$]h&]noemphjAjBuh1jyhj,ubjz)}(henum drm_driver_feature featureh](j)}(hjAh]henum}(hju-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjq-ubj)}(h h]h }(hj-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjq-ubh)}(hhh]j)}(hdrm_driver_featureh]hdrm_driver_feature}(hj-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-ubah}(h]h ]h"]h$]h&] refdomainj reftypej/ reftargetj-modnameN classnameNjj)}j]j=-c.drm_core_check_featureasbuh1hhjq-ubj)}(h h]h }(hj-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjq-ubj)}(hfeatureh]hfeature}(hj-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjq-ubeh}(h]h ]h"]h$]h&]noemphjAjBuh1jyhj,ubeh}(h]h ]h"]h$]h&]jAjBuh1jshj,hhhj,hMubeh}(h]h ]h"]h$]h&]jAjBjuh1jjjhj,hhhj,hMubah}(h]j,ah ](j j!eh"]h$]h&]j%j&)j'huh1jhj,hMhj,hhubj))}(hhh]h)}(hcheck driver feature flagsh]hcheck driver feature flags}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhMhj-hhubah}(h]h ]h"]h$]h&]uh1j(hj,hhhj,hMubeh}(h]h ](j functioneh"]h$]h&]jIj jJj.jKj.jLjMjNuh1jhhhj_hNhNubjP)}(hX**Parameters** ``const struct drm_device *dev`` DRM device to check ``enum drm_driver_feature feature`` feature flag **Description** This checks **dev** for driver features, see :c:type:`drm_driver.driver_features `, :c:type:`drm_device.driver_features `, and the various :c:type:`enum drm_driver_feature ` flags. Returns true if the **feature** is supported, false otherwise.h](h)}(h**Parameters**h]jZ)}(hj .h]h Parameters}(hj .hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj .ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhMhj.ubj)}(hhh](j)}(h5``const struct drm_device *dev`` DRM device to check h](j)}(h ``const struct drm_device *dev``h]j)}(hj*.h]hconst struct drm_device *dev}(hj,.hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj(.ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhMhj$.ubj)}(hhh]h)}(hDRM device to checkh]hDRM device to check}(hjC.hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj?.hMhj@.ubah}(h]h ]h"]h$]h&]uh1jhj$.ubeh}(h]h ]h"]h$]h&]uh1jhj?.hMhj!.ubj)}(h1``enum drm_driver_feature feature`` feature flag h](j)}(h#``enum drm_driver_feature feature``h]j)}(hjc.h]henum drm_driver_feature feature}(hje.hhhNhNubah}(h]h ]h"]h$]h&]uh1jhja.ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhMhj].ubj)}(hhh]h)}(h feature flagh]h feature flag}(hj|.hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjx.hMhjy.ubah}(h]h ]h"]h$]h&]uh1jhj].ubeh}(h]h ]h"]h$]h&]uh1jhjx.hMhj!.ubeh}(h]h ]h"]h$]h&]uh1jhj.ubh)}(h**Description**h]jZ)}(hj.h]h Description}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj.ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhMhj.ubh)}(hThis checks **dev** for driver features, see :c:type:`drm_driver.driver_features `, :c:type:`drm_device.driver_features `, and the various :c:type:`enum drm_driver_feature ` flags.h](h This checks }(hj.hhhNhNubjZ)}(h**dev**h]hdev}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj.ubh for driver features, see }(hj.hhhNhNubh)}(h1:c:type:`drm_driver.driver_features `h]j)}(hj.h]hdrm_driver.driver_features}(hj.hhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhj.ubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjjj drm_driveruh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhMhj.ubh, }(hj.hhhNhNubh)}(h1:c:type:`drm_device.driver_features `h]j)}(hj.h]hdrm_device.driver_features}(hj.hhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhj.ubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjjj drm_deviceuh1hhj.hMhj.ubh, and the various }(hj.hhhNhNubh)}(h6:c:type:`enum drm_driver_feature `h]j)}(hj/h]henum drm_driver_feature}(hj/hhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhj/ubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjjjdrm_driver_featureuh1hhj.hMhj.ubh flags.}(hj.hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj.hMhj.ubh)}(h>Returns true if the **feature** is supported, false otherwise.h](hReturns true if the }(hj>/hhhNhNubjZ)}(h **feature**h]hfeature}(hjF/hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj>/ubh is supported, false otherwise.}(hj>/hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhM hj.ubeh}(h]h ] kernelindentah"]h$]h&]uh1jOhj_hhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j(drm_drv_uses_atomic_modeset (C function)c.drm_drv_uses_atomic_modesethNtauh1jhj_hhhNhNubj)}(hhh](j)}(h9bool drm_drv_uses_atomic_modeset (struct drm_device *dev)h]j)}(h8bool drm_drv_uses_atomic_modeset(struct drm_device *dev)h](ja()}(hjd(h]hbool}(hj/hhhNhNubah}(h]h ]jm(ah"]h$]h&]uh1j`(hj{/hhhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhM*ubj)}(h h]h }(hj/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj{/hhhj/hM*ubj)}(hdrm_drv_uses_atomic_modeseth]j)}(hdrm_drv_uses_atomic_modeseth]hdrm_drv_uses_atomic_modeset}(hj/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/ubah}(h]h ](jjeh"]h$]h&]jAjBuh1jhj{/hhhj/hM*ubjt)}(h(struct drm_device *dev)h]jz)}(hstruct drm_device *devh](j)}(hjh]hstruct}(hj/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/ubj)}(h h]h }(hj/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/ubh)}(hhh]j)}(h drm_deviceh]h drm_device}(hj/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/ubah}(h]h ]h"]h$]h&] refdomainj reftypej/ reftargetj/modnameN classnameNjj)}j]j7)}j/j/sbc.drm_drv_uses_atomic_modesetasbuh1hhj/ubj)}(h h]h }(hj/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/ubjL)}(hjOh]h*}(hj0hhhNhNubah}(h]h ]jXah"]h$]h&]uh1jKhj/ubj)}(hdevh]hdev}(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/ubeh}(h]h ]h"]h$]h&]noemphjAjBuh1jyhj/ubah}(h]h ]h"]h$]h&]jAjBuh1jshj{/hhhj/hM*ubeh}(h]h ]h"]h$]h&]jAjBjuh1jjjhjw/hhhj/hM*ubah}(h]jr/ah ](j j!eh"]h$]h&]j%j&)j'huh1jhj/hM*hjt/hhubj))}(hhh]h)}(h.check if the driver implements atomic_commit()h]h.check if the driver implements atomic_commit()}(hj>0hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhM*hj;0hhubah}(h]h ]h"]h$]h&]uh1j(hjt/hhhj/hM*ubeh}(h]h ](j functioneh"]h$]h&]jIj jJjV0jKjV0jLjMjNuh1jhhhj_hNhNubjP)}(h**Parameters** ``struct drm_device *dev`` DRM device **Description** This check is useful if drivers do not have DRIVER_ATOMIC set but have atomic modesetting internally implemented.h](h)}(h**Parameters**h]jZ)}(hj`0h]h Parameters}(hjb0hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj^0ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhM.hjZ0ubj)}(hhh]j)}(h&``struct drm_device *dev`` DRM device h](j)}(h``struct drm_device *dev``h]j)}(hj0h]hstruct drm_device *dev}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj}0ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhM,hjy0ubj)}(hhh]h)}(h DRM deviceh]h DRM device}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj0hM,hj0ubah}(h]h ]h"]h$]h&]uh1jhjy0ubeh}(h]h ]h"]h$]h&]uh1jhj0hM,hjv0ubah}(h]h ]h"]h$]h&]uh1jhjZ0ubh)}(h**Description**h]jZ)}(hj0h]h Description}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj0ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhM.hjZ0ubh)}(hqThis check is useful if drivers do not have DRIVER_ATOMIC set but have atomic modesetting internally implemented.h]hqThis check is useful if drivers do not have DRIVER_ATOMIC set but have atomic modesetting internally implemented.}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhM-hjZ0ubeh}(h]h ] kernelindentah"]h$]h&]uh1jOhj_hhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jdrm_put_dev (C function) c.drm_put_devhNtauh1jhj_hhhNhNubj)}(hhh](j)}(h)void drm_put_dev (struct drm_device *dev)h]j)}(h(void drm_put_dev(struct drm_device *dev)h](ja()}(hvoidh]hvoid}(hj0hhhNhNubah}(h]h ]jm(ah"]h$]h&]uh1j`(hj0hhh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:90: ./drivers/gpu/drm/drm_drv.chMubj)}(h h]h }(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0hhhj 1hMubj)}(h drm_put_devh]j)}(h drm_put_devh]h drm_put_dev}(hj 1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubah}(h]h ](jjeh"]h$]h&]jAjBuh1jhj0hhhj 1hMubjt)}(h(struct drm_device *dev)h]jz)}(hstruct drm_device *devh](j)}(hjh]hstruct}(hj<1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj81ubj)}(h h]h }(hjI1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj81ubh)}(hhh]j)}(h drm_deviceh]h drm_device}(hjZ1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjW1ubah}(h]h ]h"]h$]h&] refdomainj reftypej/ reftargetj\1modnameN classnameNjj)}j]j7)}j/j"1sb c.drm_put_devasbuh1hhj81ubj)}(h h]h }(hjz1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj81ubjL)}(hjOh]h*}(hj1hhhNhNubah}(h]h ]jXah"]h$]h&]uh1jKhj81ubj)}(hdevh]hdev}(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj81ubeh}(h]h ]h"]h$]h&]noemphjAjBuh1jyhj41ubah}(h]h ]h"]h$]h&]jAjBuh1jshj0hhhj 1hMubeh}(h]h ]h"]h$]h&]jAjBjuh1jjjhj0hhhj 1hMubah}(h]j0ah ](j j!eh"]h$]h&]j%j&)j'huh1jhj 1hMhj0hhubj))}(hhh]h)}(h#Unregister and release a DRM deviceh]h#Unregister and release a DRM device}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:90: ./drivers/gpu/drm/drm_drv.chMhj1hhubah}(h]h ]h"]h$]h&]uh1j(hj0hhhj 1hMubeh}(h]h ](j functioneh"]h$]h&]jIj jJj1jKj1jLjMjNuh1jhhhj_hNhNubjP)}(hX**Parameters** ``struct drm_device *dev`` DRM device **Description** Called at module unload time or when a PCI device is unplugged. Cleans up all DRM device, calling drm_lastclose(). **Note** Use of this function is deprecated. It will eventually go away completely. Please use drm_dev_unregister() and drm_dev_put() explicitly instead to make sure that the device isn't userspace accessible any more while teardown is in progress, ensuring that userspace can't access an inconsistent state.h](h)}(h**Parameters**h]jZ)}(hj1h]h Parameters}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj1ubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:90: ./drivers/gpu/drm/drm_drv.chMhj1ubj)}(hhh]j)}(h&``struct drm_device *dev`` DRM device h](j)}(h``struct drm_device *dev``h]j)}(hj2h]hstruct drm_device *dev}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1ubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:90: ./drivers/gpu/drm/drm_drv.chMhj1ubj)}(hhh]h)}(h DRM deviceh]h DRM device}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj2hMhj2ubah}(h]h ]h"]h$]h&]uh1jhj1ubeh}(h]h ]h"]h$]h&]uh1jhj2hMhj1ubah}(h]h ]h"]h$]h&]uh1jhj1ubh)}(h**Description**h]jZ)}(hj;2h]h Description}(hj=2hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj92ubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:90: ./drivers/gpu/drm/drm_drv.chMhj1ubh)}(h?Called at module unload time or when a PCI device is unplugged.h]h?Called at module unload time or when a PCI device is unplugged.}(hjQ2hhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:90: ./drivers/gpu/drm/drm_drv.chMhj1ubh)}(h2Cleans up all DRM device, calling drm_lastclose().h]h2Cleans up all DRM device, calling drm_lastclose().}(hj`2hhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:90: ./drivers/gpu/drm/drm_drv.chMhj1ubh)}(h**Note**h]jZ)}(hjq2h]hNote}(hjs2hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjo2ubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:90: ./drivers/gpu/drm/drm_drv.chMhj1ubh)}(hX,Use of this function is deprecated. It will eventually go away completely. Please use drm_dev_unregister() and drm_dev_put() explicitly instead to make sure that the device isn't userspace accessible any more while teardown is in progress, ensuring that userspace can't access an inconsistent state.h]hX0Use of this function is deprecated. It will eventually go away completely. Please use drm_dev_unregister() and drm_dev_put() explicitly instead to make sure that the device isn’t userspace accessible any more while teardown is in progress, ensuring that userspace can’t access an inconsistent state.}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:90: ./drivers/gpu/drm/drm_drv.chMhj1ubeh}(h]h ] kernelindentah"]h$]h&]uh1jOhj_hhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jdrm_dev_enter (C function)c.drm_dev_enterhNtauh1jhj_hhhNhNubj)}(hhh](j)}(h5bool drm_dev_enter (struct drm_device *dev, int *idx)h]j)}(h4bool drm_dev_enter(struct drm_device *dev, int *idx)h](ja()}(hjd(h]hbool}(hj2hhhNhNubah}(h]h ]jm(ah"]h$]h&]uh1j`(hj2hhh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:90: ./drivers/gpu/drm/drm_drv.chMubj)}(h h]h }(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2hhhj2hMubj)}(h drm_dev_enterh]j)}(h drm_dev_enterh]h drm_dev_enter}(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2ubah}(h]h ](jjeh"]h$]h&]jAjBuh1jhj2hhhj2hMubjt)}(h"(struct drm_device *dev, int *idx)h](jz)}(hstruct drm_device *devh](j)}(hjh]hstruct}(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2ubj)}(h h]h }(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2ubh)}(hhh]j)}(h drm_deviceh]h drm_device}(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj 3ubah}(h]h ]h"]h$]h&] refdomainj reftypej/ reftargetj3modnameN classnameNjj)}j]j7)}j/j2sbc.drm_dev_enterasbuh1hhj2ubj)}(h h]h }(hj03hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2ubjL)}(hjOh]h*}(hj>3hhhNhNubah}(h]h ]jXah"]h$]h&]uh1jKhj2ubj)}(hdevh]hdev}(hjK3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2ubeh}(h]h ]h"]h$]h&]noemphjAjBuh1jyhj2ubjz)}(hint *idxh](ja()}(hinth]hint}(hjd3hhhNhNubah}(h]h ]jm(ah"]h$]h&]uh1j`(hj`3ubj)}(h h]h }(hjr3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`3ubjL)}(hjOh]h*}(hj3hhhNhNubah}(h]h ]jXah"]h$]h&]uh1jKhj`3ubj)}(hidxh]hidx}(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`3ubeh}(h]h ]h"]h$]h&]noemphjAjBuh1jyhj2ubeh}(h]h ]h"]h$]h&]jAjBuh1jshj2hhhj2hMubeh}(h]h ]h"]h$]h&]jAjBjuh1jjjhj2hhhj2hMubah}(h]j2ah ](j j!eh"]h$]h&]j%j&)j'huh1jhj2hMhj2hhubj))}(hhh]h)}(hEnter device critical sectionh]hEnter device critical section}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:90: ./drivers/gpu/drm/drm_drv.chMhj3hhubah}(h]h ]h"]h$]h&]uh1j(hj2hhhj2hMubeh}(h]h ](j functioneh"]h$]h&]jIj jJj3jKj3jLjMjNuh1jhhhj_hNhNubjP)}(hX**Parameters** ``struct drm_device *dev`` DRM device ``int *idx`` Pointer to index that will be passed to the matching drm_dev_exit() **Description** This function marks and protects the beginning of a section that should not be entered after the device has been unplugged. The section end is marked with drm_dev_exit(). Calls to this function can be nested. **Return** True if it is OK to enter the section, false otherwise.h](h)}(h**Parameters**h]jZ)}(hj3h]h Parameters}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj3ubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:90: ./drivers/gpu/drm/drm_drv.chMhj3ubj)}(hhh](j)}(h&``struct drm_device *dev`` DRM device h](j)}(h``struct drm_device *dev``h]j)}(hj3h]hstruct drm_device *dev}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3ubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:90: ./drivers/gpu/drm/drm_drv.chMhj3ubj)}(hhh]h)}(h DRM deviceh]h DRM device}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj 4hMhj4ubah}(h]h ]h"]h$]h&]uh1jhj3ubeh}(h]h ]h"]h$]h&]uh1jhj 4hMhj3ubj)}(hQ``int *idx`` Pointer to index that will be passed to the matching drm_dev_exit() h](j)}(h ``int *idx``h]j)}(hj14h]hint *idx}(hj34hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj/4ubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:90: ./drivers/gpu/drm/drm_drv.chMhj+4ubj)}(hhh]h)}(hCPointer to index that will be passed to the matching drm_dev_exit()h]hCPointer to index that will be passed to the matching drm_dev_exit()}(hjJ4hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjF4hMhjG4ubah}(h]h ]h"]h$]h&]uh1jhj+4ubeh}(h]h ]h"]h$]h&]uh1jhjF4hMhj3ubeh}(h]h ]h"]h$]h&]uh1jhj3ubh)}(h**Description**h]jZ)}(hjl4h]h Description}(hjn4hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjj4ubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:90: ./drivers/gpu/drm/drm_drv.chMhj3ubh)}(hThis function marks and protects the beginning of a section that should not be entered after the device has been unplugged. The section end is marked with drm_dev_exit(). Calls to this function can be nested.h]hThis function marks and protects the beginning of a section that should not be entered after the device has been unplugged. The section end is marked with drm_dev_exit(). Calls to this function can be nested.}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:90: ./drivers/gpu/drm/drm_drv.chMhj3ubh)}(h **Return**h]jZ)}(hj4h]hReturn}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj4ubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:90: ./drivers/gpu/drm/drm_drv.chMhj3ubh)}(h7True if it is OK to enter the section, false otherwise.h]h7True if it is OK to enter the section, false otherwise.}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:90: ./drivers/gpu/drm/drm_drv.chMhj3ubeh}(h]h ] kernelindentah"]h$]h&]uh1jOhj_hhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jdrm_dev_exit (C function)c.drm_dev_exithNtauh1jhj_hhhNhNubj)}(hhh](j)}(hvoid drm_dev_exit (int idx)h]j)}(hvoid drm_dev_exit(int idx)h](ja()}(hvoidh]hvoid}(hj4hhhNhNubah}(h]h ]jm(ah"]h$]h&]uh1j`(hj4hhh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:90: ./drivers/gpu/drm/drm_drv.chMubj)}(h h]h }(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4hhhj4hMubj)}(h drm_dev_exith]j)}(h drm_dev_exith]h drm_dev_exit}(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4ubah}(h]h ](jjeh"]h$]h&]jAjBuh1jhj4hhhj4hMubjt)}(h (int idx)h]jz)}(hint idxh](ja()}(hinth]hint}(hj5hhhNhNubah}(h]h ]jm(ah"]h$]h&]uh1j`(hj5ubj)}(h h]h }(hj#5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5ubj)}(hidxh]hidx}(hj15hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5ubeh}(h]h ]h"]h$]h&]noemphjAjBuh1jyhj 5ubah}(h]h ]h"]h$]h&]jAjBuh1jshj4hhhj4hMubeh}(h]h ]h"]h$]h&]jAjBjuh1jjjhj4hhhj4hMubah}(h]j4ah ](j j!eh"]h$]h&]j%j&)j'huh1jhj4hMhj4hhubj))}(hhh]h)}(hExit device critical sectionh]hExit device critical section}(hj[5hhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:90: ./drivers/gpu/drm/drm_drv.chMhjX5hhubah}(h]h ]h"]h$]h&]uh1j(hj4hhhj4hMubeh}(h]h ](j functioneh"]h$]h&]jIj jJjs5jKjs5jLjMjNuh1jhhhj_hNhNubjP)}(h**Parameters** ``int idx`` index returned from drm_dev_enter() **Description** This function marks the end of a section that should not be entered after the device has been unplugged.h](h)}(h**Parameters**h]jZ)}(hj}5h]h Parameters}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj{5ubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:90: ./drivers/gpu/drm/drm_drv.chMhjw5ubj)}(hhh]j)}(h0``int idx`` index returned from drm_dev_enter() h](j)}(h ``int idx``h]j)}(hj5h]hint idx}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5ubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:90: ./drivers/gpu/drm/drm_drv.chMhj5ubj)}(hhh]h)}(h#index returned from drm_dev_enter()h]h#index returned from drm_dev_enter()}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj5hMhj5ubah}(h]h ]h"]h$]h&]uh1jhj5ubeh}(h]h ]h"]h$]h&]uh1jhj5hMhj5ubah}(h]h ]h"]h$]h&]uh1jhjw5ubh)}(h**Description**h]jZ)}(hj5h]h Description}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj5ubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:90: ./drivers/gpu/drm/drm_drv.chMhjw5ubh)}(hhThis function marks the end of a section that should not be entered after the device has been unplugged.h]hhThis function marks the end of a section that should not be entered after the device has been unplugged.}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:90: ./drivers/gpu/drm/drm_drv.chMhjw5ubeh}(h]h ] kernelindentah"]h$]h&]uh1jOhj_hhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jdrm_dev_unplug (C function)c.drm_dev_unplughNtauh1jhj_hhhNhNubj)}(hhh](j)}(h,void drm_dev_unplug (struct drm_device *dev)h]j)}(h+void drm_dev_unplug(struct drm_device *dev)h](ja()}(hvoidh]hvoid}(hj6hhhNhNubah}(h]h ]jm(ah"]h$]h&]uh1j`(hj6hhh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:90: ./drivers/gpu/drm/drm_drv.chMubj)}(h h]h }(hj+6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6hhhj*6hMubj)}(hdrm_dev_unplugh]j)}(hdrm_dev_unplugh]hdrm_dev_unplug}(hj=6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj96ubah}(h]h ](jjeh"]h$]h&]jAjBuh1jhj6hhhj*6hMubjt)}(h(struct drm_device *dev)h]jz)}(hstruct drm_device *devh](j)}(hjh]hstruct}(hjY6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjU6ubj)}(h h]h }(hjf6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjU6ubh)}(hhh]j)}(h drm_deviceh]h drm_device}(hjw6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjt6ubah}(h]h ]h"]h$]h&] refdomainj reftypej/ reftargetjy6modnameN classnameNjj)}j]j7)}j/j?6sbc.drm_dev_unplugasbuh1hhjU6ubj)}(h h]h }(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjU6ubjL)}(hjOh]h*}(hj6hhhNhNubah}(h]h ]jXah"]h$]h&]uh1jKhjU6ubj)}(hdevh]hdev}(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjU6ubeh}(h]h ]h"]h$]h&]noemphjAjBuh1jyhjQ6ubah}(h]h ]h"]h$]h&]jAjBuh1jshj6hhhj*6hMubeh}(h]h ]h"]h$]h&]jAjBjuh1jjjhj6hhhj*6hMubah}(h]j6ah ](j j!eh"]h$]h&]j%j&)j'huh1jhj*6hMhj6hhubj))}(hhh]h)}(hunplug a DRM deviceh]hunplug a DRM device}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:90: ./drivers/gpu/drm/drm_drv.chMhj6hhubah}(h]h ]h"]h$]h&]uh1j(hj6hhhj*6hMubeh}(h]h ](j functioneh"]h$]h&]jIj jJj6jKj6jLjMjNuh1jhhhj_hNhNubjP)}(hX**Parameters** ``struct drm_device *dev`` DRM device **Description** This unplugs a hotpluggable DRM device, which makes it inaccessible to userspace operations. Entry-points can use drm_dev_enter() and drm_dev_exit() to protect device resources in a race free manner. This essentially unregisters the device like drm_dev_unregister(), but can be called while there are still open users of **dev**.h](h)}(h**Parameters**h]jZ)}(hj6h]h Parameters}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj6ubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:90: ./drivers/gpu/drm/drm_drv.chMhj6ubj)}(hhh]j)}(h&``struct drm_device *dev`` DRM device h](j)}(h``struct drm_device *dev``h]j)}(hj7h]hstruct drm_device *dev}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7ubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:90: ./drivers/gpu/drm/drm_drv.chMhj7ubj)}(hhh]h)}(h DRM deviceh]h DRM device}(hj67hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj27hMhj37ubah}(h]h ]h"]h$]h&]uh1jhj7ubeh}(h]h ]h"]h$]h&]uh1jhj27hMhj7ubah}(h]h ]h"]h$]h&]uh1jhj6ubh)}(h**Description**h]jZ)}(hjX7h]h Description}(hjZ7hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjV7ubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:90: ./drivers/gpu/drm/drm_drv.chMhj6ubh)}(hXIThis unplugs a hotpluggable DRM device, which makes it inaccessible to userspace operations. Entry-points can use drm_dev_enter() and drm_dev_exit() to protect device resources in a race free manner. This essentially unregisters the device like drm_dev_unregister(), but can be called while there are still open users of **dev**.h](hXAThis unplugs a hotpluggable DRM device, which makes it inaccessible to userspace operations. Entry-points can use drm_dev_enter() and drm_dev_exit() to protect device resources in a race free manner. This essentially unregisters the device like drm_dev_unregister(), but can be called while there are still open users of }(hjn7hhhNhNubjZ)}(h**dev**h]hdev}(hjv7hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjn7ubh.}(hjn7hhhNhNubeh}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:90: ./drivers/gpu/drm/drm_drv.chMhj6ubeh}(h]h ] kernelindentah"]h$]h&]uh1jOhj_hhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j drm_dev_set_dma_dev (C function)c.drm_dev_set_dma_devhNtauh1jhj_hhhNhNubj)}(hhh](j)}(hIvoid drm_dev_set_dma_dev (struct drm_device *dev, struct device *dma_dev)h]j)}(hHvoid drm_dev_set_dma_dev(struct drm_device *dev, struct device *dma_dev)h](ja()}(hvoidh]hvoid}(hj7hhhNhNubah}(h]h ]jm(ah"]h$]h&]uh1j`(hj7hhh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:90: ./drivers/gpu/drm/drm_drv.chMubj)}(h h]h }(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7hhhj7hMubj)}(hdrm_dev_set_dma_devh]j)}(hdrm_dev_set_dma_devh]hdrm_dev_set_dma_dev}(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7ubah}(h]h ](jjeh"]h$]h&]jAjBuh1jhj7hhhj7hMubjt)}(h0(struct drm_device *dev, struct device *dma_dev)h](jz)}(hstruct drm_device *devh](j)}(hjh]hstruct}(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7ubj)}(h h]h }(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7ubh)}(hhh]j)}(h drm_deviceh]h drm_device}(hj 8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8ubah}(h]h ]h"]h$]h&] refdomainj reftypej/ reftargetj 8modnameN classnameNjj)}j]j7)}j/j7sbc.drm_dev_set_dma_devasbuh1hhj7ubj)}(h h]h }(hj*8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7ubjL)}(hjOh]h*}(hj88hhhNhNubah}(h]h ]jXah"]h$]h&]uh1jKhj7ubj)}(hdevh]hdev}(hjE8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7ubeh}(h]h ]h"]h$]h&]noemphjAjBuh1jyhj7ubjz)}(hstruct device *dma_devh](j)}(hjh]hstruct}(hj^8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZ8ubj)}(h h]h }(hjk8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZ8ubh)}(hhh]j)}(hdeviceh]hdevice}(hj|8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjy8ubah}(h]h ]h"]h$]h&] refdomainj reftypej/ reftargetj~8modnameN classnameNjj)}j]j&8c.drm_dev_set_dma_devasbuh1hhjZ8ubj)}(h h]h }(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZ8ubjL)}(hjOh]h*}(hj8hhhNhNubah}(h]h ]jXah"]h$]h&]uh1jKhjZ8ubj)}(hdma_devh]hdma_dev}(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZ8ubeh}(h]h ]h"]h$]h&]noemphjAjBuh1jyhj7ubeh}(h]h ]h"]h$]h&]jAjBuh1jshj7hhhj7hMubeh}(h]h ]h"]h$]h&]jAjBjuh1jjjhj7hhhj7hMubah}(h]j7ah ](j j!eh"]h$]h&]j%j&)j'huh1jhj7hMhj7hhubj))}(hhh]h)}(h#set the DMA device for a DRM deviceh]h#set the DMA device for a DRM device}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:90: ./drivers/gpu/drm/drm_drv.chMhj8hhubah}(h]h ]h"]h$]h&]uh1j(hj7hhhj7hMubeh}(h]h ](j functioneh"]h$]h&]jIj jJj8jKj8jLjMjNuh1jhhhj_hNhNubjP)}(hXc**Parameters** ``struct drm_device *dev`` DRM device ``struct device *dma_dev`` DMA device or NULL **Description** Sets the DMA device of the given DRM device. Only required if the DMA device is different from the DRM device's parent. After calling this function, the DRM device holds a reference on **dma_dev**. Pass NULL to clear the DMA device.h](h)}(h**Parameters**h]jZ)}(hj9h]h Parameters}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj8ubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:90: ./drivers/gpu/drm/drm_drv.chMhj8ubj)}(hhh](j)}(h&``struct drm_device *dev`` DRM device h](j)}(h``struct drm_device *dev``h]j)}(hj 9h]hstruct drm_device *dev}(hj"9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj9ubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:90: ./drivers/gpu/drm/drm_drv.chMhj9ubj)}(hhh]h)}(h DRM deviceh]h DRM device}(hj99hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj59hMhj69ubah}(h]h ]h"]h$]h&]uh1jhj9ubeh}(h]h ]h"]h$]h&]uh1jhj59hMhj9ubj)}(h.``struct device *dma_dev`` DMA device or NULL h](j)}(h``struct device *dma_dev``h]j)}(hjY9h]hstruct device *dma_dev}(hj[9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjW9ubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:90: ./drivers/gpu/drm/drm_drv.chMhjS9ubj)}(hhh]h)}(hDMA device or NULLh]hDMA device or NULL}(hjr9hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjn9hMhjo9ubah}(h]h ]h"]h$]h&]uh1jhjS9ubeh}(h]h ]h"]h$]h&]uh1jhjn9hMhj9ubeh}(h]h ]h"]h$]h&]uh1jhj8ubh)}(h**Description**h]jZ)}(hj9h]h Description}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj9ubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:90: ./drivers/gpu/drm/drm_drv.chMhj8ubh)}(hSets the DMA device of the given DRM device. Only required if the DMA device is different from the DRM device's parent. After calling this function, the DRM device holds a reference on **dma_dev**. Pass NULL to clear the DMA device.h](hSets the DMA device of the given DRM device. Only required if the DMA device is different from the DRM device’s parent. After calling this function, the DRM device holds a reference on }(hj9hhhNhNubjZ)}(h **dma_dev**h]hdma_dev}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj9ubh$. Pass NULL to clear the DMA device.}(hj9hhhNhNubeh}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:90: ./drivers/gpu/drm/drm_drv.chMhj8ubeh}(h]h ] kernelindentah"]h$]h&]uh1jOhj_hhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j!drm_dev_wedged_event (C function)c.drm_dev_wedged_eventhNtauh1jhj_hhhNhNubj)}(hhh](j)}(hiint drm_dev_wedged_event (struct drm_device *dev, unsigned long method, struct drm_wedge_task_info *info)h]j)}(hhint drm_dev_wedged_event(struct drm_device *dev, unsigned long method, struct drm_wedge_task_info *info)h](ja()}(hinth]hint}(hj9hhhNhNubah}(h]h ]jm(ah"]h$]h&]uh1j`(hj9hhh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:90: ./drivers/gpu/drm/drm_drv.chM#ubj)}(h h]h }(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9hhhj9hM#ubj)}(hdrm_dev_wedged_eventh]j)}(hdrm_dev_wedged_eventh]hdrm_dev_wedged_event}(hj :hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:ubah}(h]h ](jjeh"]h$]h&]jAjBuh1jhj9hhhj9hM#ubjt)}(hP(struct drm_device *dev, unsigned long method, struct drm_wedge_task_info *info)h](jz)}(hstruct drm_device *devh](j)}(hjh]hstruct}(hj(:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$:ubj)}(h h]h }(hj5:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$:ubh)}(hhh]j)}(h drm_deviceh]h drm_device}(hjF:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjC:ubah}(h]h ]h"]h$]h&] refdomainj reftypej/ reftargetjH:modnameN classnameNjj)}j]j7)}j/j:sbc.drm_dev_wedged_eventasbuh1hhj$:ubj)}(h h]h }(hjf:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$:ubjL)}(hjOh]h*}(hjt:hhhNhNubah}(h]h ]jXah"]h$]h&]uh1jKhj$:ubj)}(hdevh]hdev}(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$:ubeh}(h]h ]h"]h$]h&]noemphjAjBuh1jyhj :ubjz)}(hunsigned long methodh](ja()}(hunsignedh]hunsigned}(hj:hhhNhNubah}(h]h ]jm(ah"]h$]h&]uh1j`(hj:ubj)}(h h]h }(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:ubja()}(hlongh]hlong}(hj:hhhNhNubah}(h]h ]jm(ah"]h$]h&]uh1j`(hj:ubj)}(h h]h }(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:ubj)}(hmethodh]hmethod}(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:ubeh}(h]h ]h"]h$]h&]noemphjAjBuh1jyhj :ubjz)}(h struct drm_wedge_task_info *infoh](j)}(hjh]hstruct}(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:ubj)}(h h]h }(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:ubh)}(hhh]j)}(hdrm_wedge_task_infoh]hdrm_wedge_task_info}(hj ;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;ubah}(h]h ]h"]h$]h&] refdomainj reftypej/ reftargetj ;modnameN classnameNjj)}j]jb:c.drm_dev_wedged_eventasbuh1hhj:ubj)}(h h]h }(hj';hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:ubjL)}(hjOh]h*}(hj5;hhhNhNubah}(h]h ]jXah"]h$]h&]uh1jKhj:ubj)}(hinfoh]hinfo}(hjB;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:ubeh}(h]h ]h"]h$]h&]noemphjAjBuh1jyhj :ubeh}(h]h ]h"]h$]h&]jAjBuh1jshj9hhhj9hM#ubeh}(h]h ]h"]h$]h&]jAjBjuh1jjjhj9hhhj9hM#ubah}(h]j9ah ](j j!eh"]h$]h&]j%j&)j'huh1jhj9hM#hj9hhubj))}(hhh]h)}(hgenerate a device wedged ueventh]hgenerate a device wedged uevent}(hjl;hhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:90: ./drivers/gpu/drm/drm_drv.chM#hji;hhubah}(h]h ]h"]h$]h&]uh1j(hj9hhhj9hM#ubeh}(h]h ](j functioneh"]h$]h&]jIj jJj;jKj;jLjMjNuh1jhhhj_hNhNubjP)}(hX**Parameters** ``struct drm_device *dev`` DRM device ``unsigned long method`` method(s) to be used for recovery ``struct drm_wedge_task_info *info`` optional information about the guilty task **Description** This generates a device wedged uevent for the DRM device specified by **dev**. Recovery **method**\(s) of choice will be sent in the uevent environment as ``WEDGED=[,..,]`` in order of less to more side-effects. If caller is unsure about recovery or **method** is unknown (0), ``WEDGED=unknown`` will be sent instead. Refer to "Device Wedging" chapter in Documentation/gpu/drm-uapi.rst for more details. **Return** 0 on success, negative error code otherwise.h](h)}(h**Parameters**h]jZ)}(hj;h]h Parameters}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj;ubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:90: ./drivers/gpu/drm/drm_drv.chM'hj;ubj)}(hhh](j)}(h&``struct drm_device *dev`` DRM device h](j)}(h``struct drm_device *dev``h]j)}(hj;h]hstruct drm_device *dev}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj;ubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:90: ./drivers/gpu/drm/drm_drv.chM$hj;ubj)}(hhh]h)}(h DRM deviceh]h DRM device}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj;hM$hj;ubah}(h]h ]h"]h$]h&]uh1jhj;ubeh}(h]h ]h"]h$]h&]uh1jhj;hM$hj;ubj)}(h;``unsigned long method`` method(s) to be used for recovery h](j)}(h``unsigned long method``h]j)}(hj;h]hunsigned long method}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj;ubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:90: ./drivers/gpu/drm/drm_drv.chM%hj;ubj)}(hhh]h)}(h!method(s) to be used for recoveryh]h!method(s) to be used for recovery}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj;hM%hj;ubah}(h]h ]h"]h$]h&]uh1jhj;ubeh}(h]h ]h"]h$]h&]uh1jhj;hM%hj;ubj)}(hP``struct drm_wedge_task_info *info`` optional information about the guilty task h](j)}(h$``struct drm_wedge_task_info *info``h]j)}(hj<h]h struct drm_wedge_task_info *info}(hj!<hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj<ubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:90: ./drivers/gpu/drm/drm_drv.chM&hj<ubj)}(hhh]h)}(h*optional information about the guilty taskh]h*optional information about the guilty task}(hj8<hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj4<hM&hj5<ubah}(h]h ]h"]h$]h&]uh1jhj<ubeh}(h]h ]h"]h$]h&]uh1jhj4<hM&hj;ubeh}(h]h ]h"]h$]h&]uh1jhj;ubh)}(h**Description**h]jZ)}(hjZ<h]h Description}(hj\<hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjX<ubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:90: ./drivers/gpu/drm/drm_drv.chM(hj;ubh)}(hXOThis generates a device wedged uevent for the DRM device specified by **dev**. Recovery **method**\(s) of choice will be sent in the uevent environment as ``WEDGED=[,..,]`` in order of less to more side-effects. If caller is unsure about recovery or **method** is unknown (0), ``WEDGED=unknown`` will be sent instead.h](hFThis generates a device wedged uevent for the DRM device specified by }(hjp<hhhNhNubjZ)}(h**dev**h]hdev}(hjx<hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjp<ubh . Recovery }(hjp<hhhNhNubjZ)}(h **method**h]hmethod}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjp<ubh9(s) of choice will be sent in the uevent environment as }(hjp<hhhNhNubj)}(h#``WEDGED=[,..,]``h]hWEDGED=[,..,]}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjp<ubhN in order of less to more side-effects. If caller is unsure about recovery or }(hjp<hhhNhNubjZ)}(h **method**h]hmethod}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjp<ubh is unknown (0), }(hjp<hhhNhNubj)}(h``WEDGED=unknown``h]hWEDGED=unknown}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjp<ubh will be sent instead.}(hjp<hhhNhNubeh}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:90: ./drivers/gpu/drm/drm_drv.chM'hj;ubh)}(hURefer to "Device Wedging" chapter in Documentation/gpu/drm-uapi.rst for more details.h]hYRefer to “Device Wedging” chapter in Documentation/gpu/drm-uapi.rst for more details.}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:90: ./drivers/gpu/drm/drm_drv.chM-hj;ubh)}(h **Return**h]jZ)}(hj<h]hReturn}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj<ubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:90: ./drivers/gpu/drm/drm_drv.chM0hj;ubh)}(h,0 on success, negative error code otherwise.h]h,0 on success, negative error code otherwise.}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:90: ./drivers/gpu/drm/drm_drv.chM1hj;ubeh}(h]h ] kernelindentah"]h$]h&]uh1jOhj_hhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j__drm_dev_alloc (C function)c.__drm_dev_allochNtauh1jhj_hhhNhNubj)}(hhh](j)}(hkvoid * __drm_dev_alloc (struct device *parent, const struct drm_driver *driver, size_t size, size_t offset)h]j)}(hivoid *__drm_dev_alloc(struct device *parent, const struct drm_driver *driver, size_t size, size_t offset)h](ja()}(hvoidh]hvoid}(hj/=hhhNhNubah}(h]h ]jm(ah"]h$]h&]uh1j`(hj+=hhh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:90: ./drivers/gpu/drm/drm_drv.chMIubj)}(h h]h }(hj>=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj+=hhhj==hMIubjL)}(hjOh]h*}(hjL=hhhNhNubah}(h]h ]jXah"]h$]h&]uh1jKhj+=hhhj==hMIubj)}(h__drm_dev_alloch]j)}(h__drm_dev_alloch]h__drm_dev_alloc}(hj]=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjY=ubah}(h]h ](jjeh"]h$]h&]jAjBuh1jhj+=hhhj==hMIubjt)}(hT(struct device *parent, const struct drm_driver *driver, size_t size, size_t offset)h](jz)}(hstruct device *parenth](j)}(hjh]hstruct}(hjy=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhju=ubj)}(h h]h }(hj=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhju=ubh)}(hhh]j)}(hdeviceh]hdevice}(hj=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=ubah}(h]h ]h"]h$]h&] refdomainj reftypej/ reftargetj=modnameN classnameNjj)}j]j7)}j/j_=sbc.__drm_dev_allocasbuh1hhju=ubj)}(h h]h }(hj=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhju=ubjL)}(hjOh]h*}(hj=hhhNhNubah}(h]h ]jXah"]h$]h&]uh1jKhju=ubj)}(hparenth]hparent}(hj=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhju=ubeh}(h]h ]h"]h$]h&]noemphjAjBuh1jyhjq=ubjz)}(hconst struct drm_driver *driverh](j)}(hj1*h]hconst}(hj=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=ubj)}(h h]h }(hj=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=ubj)}(hjh]hstruct}(hj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=ubj)}(h h]h }(hj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=ubh)}(hhh]j)}(h drm_driverh]h drm_driver}(hj$>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!>ubah}(h]h ]h"]h$]h&] refdomainj reftypej/ reftargetj&>modnameN classnameNjj)}j]j=c.__drm_dev_allocasbuh1hhj=ubj)}(h h]h }(hjB>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=ubjL)}(hjOh]h*}(hjP>hhhNhNubah}(h]h ]jXah"]h$]h&]uh1jKhj=ubj)}(hdriverh]hdriver}(hj]>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=ubeh}(h]h ]h"]h$]h&]noemphjAjBuh1jyhjq=ubjz)}(h size_t sizeh](h)}(hhh]j)}(hsize_th]hsize_t}(hjy>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjv>ubah}(h]h ]h"]h$]h&] refdomainj reftypej/ reftargetj{>modnameN classnameNjj)}j]j=c.__drm_dev_allocasbuh1hhjr>ubj)}(h h]h }(hj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjr>ubj)}(hsizeh]hsize}(hj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjr>ubeh}(h]h ]h"]h$]h&]noemphjAjBuh1jyhjq=ubjz)}(h size_t offseth](h)}(hhh]j)}(hsize_th]hsize_t}(hj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>ubah}(h]h ]h"]h$]h&] refdomainj reftypej/ reftargetj>modnameN classnameNjj)}j]j=c.__drm_dev_allocasbuh1hhj>ubj)}(h h]h }(hj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>ubj)}(hoffseth]hoffset}(hj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>ubeh}(h]h ]h"]h$]h&]noemphjAjBuh1jyhjq=ubeh}(h]h ]h"]h$]h&]jAjBuh1jshj+=hhhj==hMIubeh}(h]h ]h"]h$]h&]jAjBjuh1jjjhj'=hhhj==hMIubah}(h]j"=ah ](j j!eh"]h$]h&]j%j&)j'huh1jhj==hMIhj$=hhubj))}(hhh]h)}(h-Allocation of a :c:type:`drm_device` instanceh](hAllocation of a }(hj?hhhNhNubh)}(h:c:type:`drm_device`h]j)}(hj!?h]h drm_device}(hj#?hhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhj?ubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjj)}j]j=c.__drm_dev_allocasbj drm_deviceuh1hhj 1hMhj?ubh instance}(hj?hhhNhNubeh}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:90: ./drivers/gpu/drm/drm_drv.chMIhj?hhubah}(h]h ]h"]h$]h&]uh1j(hj$=hhhj==hMIubeh}(h]h ](j functioneh"]h$]h&]jIj jJjW?jKjW?jLjMjNuh1jhhhj_hNhNubjP)}(hX**Parameters** ``struct device *parent`` Parent device object ``const struct drm_driver *driver`` DRM driver ``size_t size`` the size of the struct which contains struct drm_device ``size_t offset`` the offset of the :c:type:`drm_device` within the container. **Description** This should *NOT* be by any drivers, but is a dedicated interface for the corresponding Rust abstraction. This is the same as devm_drm_dev_alloc(), but without the corresponding resource management through the parent device, but not the same as drm_dev_alloc(), since the latter is the deprecated version, which does not support subclassing. **Return** A pointer to new DRM device, or an ERR_PTR on failure.h](h)}(h**Parameters**h]jZ)}(hja?h]h Parameters}(hjc?hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj_?ubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:90: ./drivers/gpu/drm/drm_drv.chMMhj[?ubj)}(hhh](j)}(h/``struct device *parent`` Parent device object h](j)}(h``struct device *parent``h]j)}(hj?h]hstruct device *parent}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj~?ubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:90: ./drivers/gpu/drm/drm_drv.chMJhjz?ubj)}(hhh]h)}(hParent device objecth]hParent device object}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj?hMJhj?ubah}(h]h ]h"]h$]h&]uh1jhjz?ubeh}(h]h ]h"]h$]h&]uh1jhj?hMJhjw?ubj)}(h/``const struct drm_driver *driver`` DRM driver h](j)}(h#``const struct drm_driver *driver``h]j)}(hj?h]hconst struct drm_driver *driver}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj?ubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:90: ./drivers/gpu/drm/drm_drv.chMKhj?ubj)}(hhh]h)}(h DRM driverh]h DRM driver}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj?hMKhj?ubah}(h]h ]h"]h$]h&]uh1jhj?ubeh}(h]h ]h"]h$]h&]uh1jhj?hMKhjw?ubj)}(hH``size_t size`` the size of the struct which contains struct drm_device h](j)}(h``size_t size``h]j)}(hj?h]h size_t size}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj?ubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:90: ./drivers/gpu/drm/drm_drv.chMLhj?ubj)}(hhh]h)}(h7the size of the struct which contains struct drm_deviceh]h7the size of the struct which contains struct drm_device}(hj @hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj@hMLhj@ubah}(h]h ]h"]h$]h&]uh1jhj?ubeh}(h]h ]h"]h$]h&]uh1jhj@hMLhjw?ubj)}(hO``size_t offset`` the offset of the :c:type:`drm_device` within the container. h](j)}(h``size_t offset``h]j)}(hj+@h]h size_t offset}(hj-@hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj)@ubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:90: ./drivers/gpu/drm/drm_drv.chMMhj%@ubj)}(hhh]h)}(hFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEubeh}(h]h ]h"]h$]h&]noemphjAjBuh1jyhjEubah}(h]h ]h"]h$]h&]jAjBuh1jshjEhhhjEhMubeh}(h]h ]h"]h$]h&]jAjBjuh1jjjhjEhhhjEhMubah}(h]jEah ](j j!eh"]h$]h&]j%j&)j'huh1jhjEhMhjEhhubj))}(hhh]h)}(hDrop reference of a DRM deviceh]hDrop reference of a DRM device}(hjhFhhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:90: ./drivers/gpu/drm/drm_drv.chMhjeFhhubah}(h]h ]h"]h$]h&]uh1j(hjEhhhjEhMubeh}(h]h ](j functioneh"]h$]h&]jIj jJjFjKjFjLjMjNuh1jhhhj_hNhNubjP)}(h**Parameters** ``struct drm_device *dev`` device to drop reference of or NULL **Description** This decreases the ref-count of **dev** by one. The device is destroyed if the ref-count drops to zero.h](h)}(h**Parameters**h]jZ)}(hjFh]h Parameters}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjFubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:90: ./drivers/gpu/drm/drm_drv.chMhjFubj)}(hhh]j)}(h?``struct drm_device *dev`` device to drop reference of or NULL h](j)}(h``struct drm_device *dev``h]j)}(hjFh]hstruct drm_device *dev}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjFubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:90: ./drivers/gpu/drm/drm_drv.chMhjFubj)}(hhh]h)}(h#device to drop reference of or NULLh]h#device to drop reference of or NULL}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjFhMhjFubah}(h]h ]h"]h$]h&]uh1jhjFubeh}(h]h ]h"]h$]h&]uh1jhjFhMhjFubah}(h]h ]h"]h$]h&]uh1jhjFubh)}(h**Description**h]jZ)}(hjFh]h Description}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjFubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:90: ./drivers/gpu/drm/drm_drv.chMhjFubh)}(hgThis decreases the ref-count of **dev** by one. The device is destroyed if the ref-count drops to zero.h](h This decreases the ref-count of }(hjFhhhNhNubjZ)}(h**dev**h]hdev}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjFubh@ by one. The device is destroyed if the ref-count drops to zero.}(hjFhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:90: ./drivers/gpu/drm/drm_drv.chMhjFubeh}(h]h ] kernelindentah"]h$]h&]uh1jOhj_hhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j(drmm_cgroup_register_region (C function)c.drmm_cgroup_register_regionhNtauh1jhj_hhhNhNubj)}(hhh](j)}(hsstruct dmem_cgroup_region * drmm_cgroup_register_region (struct drm_device *dev, const char *region_name, u64 size)h]j)}(hqstruct dmem_cgroup_region *drmm_cgroup_register_region(struct drm_device *dev, const char *region_name, u64 size)h](j)}(hjh]hstruct}(hj;GhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7Ghhh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:90: ./drivers/gpu/drm/drm_drv.chMubj)}(h h]h }(hjIGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7GhhhjHGhMubh)}(hhh]j)}(hdmem_cgroup_regionh]hdmem_cgroup_region}(hjZGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWGubah}(h]h ]h"]h$]h&] refdomainj reftypej/ reftargetj\GmodnameN classnameNjj)}j]j7)}j/drmm_cgroup_register_regionsbc.drmm_cgroup_register_regionasbuh1hhj7GhhhjHGhMubj)}(h h]h }(hj{GhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7GhhhjHGhMubjL)}(hjOh]h*}(hjGhhhNhNubah}(h]h ]jXah"]h$]h&]uh1jKhj7GhhhjHGhMubj)}(hdrmm_cgroup_register_regionh]j)}(hjxGh]hdrmm_cgroup_register_region}(hjGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGubah}(h]h ](jjeh"]h$]h&]jAjBuh1jhj7GhhhjHGhMubjt)}(h;(struct drm_device *dev, const char *region_name, u64 size)h](jz)}(hstruct drm_device *devh](j)}(hjh]hstruct}(hjGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGubj)}(h h]h }(hjGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGubh)}(hhh]j)}(h drm_deviceh]h drm_device}(hjGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGubah}(h]h ]h"]h$]h&] refdomainj reftypej/ reftargetjGmodnameN classnameNjj)}j]jvGc.drmm_cgroup_register_regionasbuh1hhjGubj)}(h h]h }(hjGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGubjL)}(hjOh]h*}(hjGhhhNhNubah}(h]h ]jXah"]h$]h&]uh1jKhjGubj)}(hdevh]hdev}(hj HhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGubeh}(h]h ]h"]h$]h&]noemphjAjBuh1jyhjGubjz)}(hconst char *region_nameh](j)}(hj1*h]hconst}(hj%HhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!Hubj)}(h h]h }(hj2HhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!Hubja()}(hcharh]hchar}(hj@HhhhNhNubah}(h]h ]jm(ah"]h$]h&]uh1j`(hj!Hubj)}(h h]h }(hjNHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!HubjL)}(hjOh]h*}(hj\HhhhNhNubah}(h]h ]jXah"]h$]h&]uh1jKhj!Hubj)}(h region_nameh]h region_name}(hjiHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!Hubeh}(h]h ]h"]h$]h&]noemphjAjBuh1jyhjGubjz)}(hu64 sizeh](h)}(hhh]j)}(hu64h]hu64}(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHubah}(h]h ]h"]h$]h&] refdomainj reftypej/ reftargetjHmodnameN classnameNjj)}j]jvGc.drmm_cgroup_register_regionasbuh1hhj~Hubj)}(h h]h }(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~Hubj)}(hsizeh]hsize}(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~Hubeh}(h]h ]h"]h$]h&]noemphjAjBuh1jyhjGubeh}(h]h ]h"]h$]h&]jAjBuh1jshj7GhhhjHGhMubeh}(h]h ]h"]h$]h&]jAjBjuh1jjjhj3GhhhjHGhMubah}(h]j.Gah ](j j!eh"]h$]h&]j%j&)j'huh1jhjHGhMhj0Ghhubj))}(hhh]h)}(h,Register a region of a DRM device to cgroupsh]h,Register a region of a DRM device to cgroups}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:90: ./drivers/gpu/drm/drm_drv.chMhjHhhubah}(h]h ]h"]h$]h&]uh1j(hj0GhhhjHGhMubeh}(h]h ](j functioneh"]h$]h&]jIj jJjHjKjHjLjMjNuh1jhhhj_hNhNubjP)}(hX**Parameters** ``struct drm_device *dev`` device for region ``const char *region_name`` Region name for registering ``u64 size`` Size of region in bytes **Description** This decreases the ref-count of **dev** by one. The device is destroyed if the ref-count drops to zero.h](h)}(h**Parameters**h]jZ)}(hjHh]h Parameters}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjHubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:90: ./drivers/gpu/drm/drm_drv.chMhjHubj)}(hhh](j)}(h-``struct drm_device *dev`` device for region h](j)}(h``struct drm_device *dev``h]j)}(hjIh]hstruct drm_device *dev}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjIubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:90: ./drivers/gpu/drm/drm_drv.chMhjIubj)}(hhh]h)}(hdevice for regionh]hdevice for region}(hj5IhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj1IhMhj2Iubah}(h]h ]h"]h$]h&]uh1jhjIubeh}(h]h ]h"]h$]h&]uh1jhj1IhMhjIubj)}(h8``const char *region_name`` Region name for registering h](j)}(h``const char *region_name``h]j)}(hjUIh]hconst char *region_name}(hjWIhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjSIubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:90: ./drivers/gpu/drm/drm_drv.chMhjOIubj)}(hhh]h)}(hRegion name for registeringh]hRegion name for registering}(hjnIhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjjIhMhjkIubah}(h]h ]h"]h$]h&]uh1jhjOIubeh}(h]h ]h"]h$]h&]uh1jhjjIhMhjIubj)}(h%``u64 size`` Size of region in bytes h](j)}(h ``u64 size``h]j)}(hjIh]hu64 size}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjIubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:90: ./drivers/gpu/drm/drm_drv.chMhjIubj)}(hhh]h)}(hSize of region in bytesh]hSize of region in bytes}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjIhMhjIubah}(h]h ]h"]h$]h&]uh1jhjIubeh}(h]h ]h"]h$]h&]uh1jhjIhMhjIubeh}(h]h ]h"]h$]h&]uh1jhjHubh)}(h**Description**h]jZ)}(hjIh]h Description}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjIubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:90: ./drivers/gpu/drm/drm_drv.chMhjHubh)}(hgThis decreases the ref-count of **dev** by one. The device is destroyed if the ref-count drops to zero.h](h This decreases the ref-count of }(hjIhhhNhNubjZ)}(h**dev**h]hdev}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjIubh@ by one. The device is destroyed if the ref-count drops to zero.}(hjIhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:90: ./drivers/gpu/drm/drm_drv.chMhjHubeh}(h]h ] kernelindentah"]h$]h&]uh1jOhj_hhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jdrm_dev_register (C function)c.drm_dev_registerhNtauh1jhj_hhhNhNubj)}(hhh](j)}(hBint drm_dev_register (struct drm_device *dev, unsigned long flags)h]j)}(hAint drm_dev_register(struct drm_device *dev, unsigned long flags)h](ja()}(hinth]hint}(hj JhhhNhNubah}(h]h ]jm(ah"]h$]h&]uh1j`(hjJhhh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:90: ./drivers/gpu/drm/drm_drv.chM ubj)}(h h]h }(hj/JhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJhhhj.JhM ubj)}(hdrm_dev_registerh]j)}(hdrm_dev_registerh]hdrm_dev_register}(hjAJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=Jubah}(h]h ](jjeh"]h$]h&]jAjBuh1jhjJhhhj.JhM ubjt)}(h-(struct drm_device *dev, unsigned long flags)h](jz)}(hstruct drm_device *devh](j)}(hjh]hstruct}(hj]JhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYJubj)}(h h]h }(hjjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYJubh)}(hhh]j)}(h drm_deviceh]h drm_device}(hj{JhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjxJubah}(h]h ]h"]h$]h&] refdomainj reftypej/ reftargetj}JmodnameN classnameNjj)}j]j7)}j/jCJsbc.drm_dev_registerasbuh1hhjYJubj)}(h h]h }(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYJubjL)}(hjOh]h*}(hjJhhhNhNubah}(h]h ]jXah"]h$]h&]uh1jKhjYJubj)}(hdevh]hdev}(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYJubeh}(h]h ]h"]h$]h&]noemphjAjBuh1jyhjUJubjz)}(hunsigned long flagsh](ja()}(hunsignedh]hunsigned}(hjJhhhNhNubah}(h]h ]jm(ah"]h$]h&]uh1j`(hjJubj)}(h h]h }(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJubja()}(hlongh]hlong}(hjJhhhNhNubah}(h]h ]jm(ah"]h$]h&]uh1j`(hjJubj)}(h h]h }(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJubj)}(hflagsh]hflags}(hjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJubeh}(h]h ]h"]h$]h&]noemphjAjBuh1jyhjUJubeh}(h]h ]h"]h$]h&]jAjBuh1jshjJhhhj.JhM ubeh}(h]h ]h"]h$]h&]jAjBjuh1jjjhjJhhhj.JhM ubah}(h]jJah ](j j!eh"]h$]h&]j%j&)j'huh1jhj.JhM hjJhhubj))}(hhh]h)}(hRegister DRM deviceh]hRegister DRM device}(hj1KhhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:90: ./drivers/gpu/drm/drm_drv.chM hj.Khhubah}(h]h ]h"]h$]h&]uh1j(hjJhhhj.JhM ubeh}(h]h ](j functioneh"]h$]h&]jIj jJjIKjKjIKjLjMjNuh1jhhhj_hNhNubjP)}(hX**Parameters** ``struct drm_device *dev`` Device to register ``unsigned long flags`` Flags passed to the driver's .load() function **Description** Register the DRM device **dev** with the system, advertise device to user-space and start normal device operation. **dev** must be initialized via drm_dev_init() previously. Never call this twice on any device! **NOTE** To ensure backward compatibility with existing drivers method this function calls the :c:type:`drm_driver.load ` method after registering the device nodes, creating race conditions. Usage of the :c:type:`drm_driver.load ` methods is therefore deprecated, drivers must perform all initialization before calling drm_dev_register(). **Return** 0 on success, negative error code on failure.h](h)}(h**Parameters**h]jZ)}(hjSKh]h Parameters}(hjUKhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjQKubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:90: ./drivers/gpu/drm/drm_drv.chMhjMKubj)}(hhh](j)}(h.``struct drm_device *dev`` Device to register h](j)}(h``struct drm_device *dev``h]j)}(hjrKh]hstruct drm_device *dev}(hjtKhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjpKubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:90: ./drivers/gpu/drm/drm_drv.chM hjlKubj)}(hhh]h)}(hDevice to registerh]hDevice to register}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjKhM hjKubah}(h]h ]h"]h$]h&]uh1jhjlKubeh}(h]h ]h"]h$]h&]uh1jhjKhM hjiKubj)}(hF``unsigned long flags`` Flags passed to the driver's .load() function h](j)}(h``unsigned long flags``h]j)}(hjKh]hunsigned long flags}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjKubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:90: ./drivers/gpu/drm/drm_drv.chMhjKubj)}(hhh]h)}(h-Flags passed to the driver's .load() functionh]h/Flags passed to the driver’s .load() function}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjKhMhjKubah}(h]h ]h"]h$]h&]uh1jhjKubeh}(h]h ]h"]h$]h&]uh1jhjKhMhjiKubeh}(h]h ]h"]h$]h&]uh1jhjMKubh)}(h**Description**h]jZ)}(hjKh]h Description}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjKubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:90: ./drivers/gpu/drm/drm_drv.chMhjMKubh)}(hRegister the DRM device **dev** with the system, advertise device to user-space and start normal device operation. **dev** must be initialized via drm_dev_init() previously.h](hRegister the DRM device }(hjKhhhNhNubjZ)}(h**dev**h]hdev}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjKubhT with the system, advertise device to user-space and start normal device operation. }(hjKhhhNhNubjZ)}(h**dev**h]hdev}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjKubh3 must be initialized via drm_dev_init() previously.}(hjKhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:90: ./drivers/gpu/drm/drm_drv.chMhjMKubh)}(h$Never call this twice on any device!h]h$Never call this twice on any device!}(hj/LhhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:90: ./drivers/gpu/drm/drm_drv.chMhjMKubh)}(h**NOTE**h]jZ)}(hj@Lh]hNOTE}(hjBLhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj>Lubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:90: ./drivers/gpu/drm/drm_drv.chMhjMKubh)}(hXaTo ensure backward compatibility with existing drivers method this function calls the :c:type:`drm_driver.load ` method after registering the device nodes, creating race conditions. Usage of the :c:type:`drm_driver.load ` methods is therefore deprecated, drivers must perform all initialization before calling drm_dev_register().h](hVTo ensure backward compatibility with existing drivers method this function calls the }(hjVLhhhNhNubh)}(h&:c:type:`drm_driver.load `h]j)}(hj`Lh]hdrm_driver.load}(hjbLhhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhj^Lubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjjj drm_driveruh1hh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:90: ./drivers/gpu/drm/drm_drv.chMhjVLubhS method after registering the device nodes, creating race conditions. Usage of the }(hjVLhhhNhNubh)}(h&:c:type:`drm_driver.load `h]j)}(hjLh]hdrm_driver.load}(hjLhhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjLubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjjj drm_driveruh1hhj}LhMhjVLubhl methods is therefore deprecated, drivers must perform all initialization before calling drm_dev_register().}(hjVLhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj}LhMhjMKubh)}(h **Return**h]jZ)}(hjLh]hReturn}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjLubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:90: ./drivers/gpu/drm/drm_drv.chMhjMKubh)}(h-0 on success, negative error code on failure.h]h-0 on success, negative error code on failure.}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:90: ./drivers/gpu/drm/drm_drv.chMhjMKubeh}(h]h ] kernelindentah"]h$]h&]uh1jOhj_hhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jdrm_dev_unregister (C function)c.drm_dev_unregisterhNtauh1jhj_hhhNhNubj)}(hhh](j)}(h0void drm_dev_unregister (struct drm_device *dev)h]j)}(h/void drm_dev_unregister(struct drm_device *dev)h](ja()}(hvoidh]hvoid}(hjLhhhNhNubah}(h]h ]jm(ah"]h$]h&]uh1j`(hjLhhh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:90: ./drivers/gpu/drm/drm_drv.chMhubj)}(h h]h }(hjMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLhhhjMhMhubj)}(hdrm_dev_unregisterh]j)}(hdrm_dev_unregisterh]hdrm_dev_unregister}(hjMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMubah}(h]h ](jjeh"]h$]h&]jAjBuh1jhjLhhhjMhMhubjt)}(h(struct drm_device *dev)h]jz)}(hstruct drm_device *devh](j)}(hjh]hstruct}(hj/MhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj+Mubj)}(h h]h }(hj`. For consistency and better options for code reuse the following guidelines apply:h](hDRM drivers that drive hardware where a logical device consists of a pile of independent hardware blocks are recommended to use the }(hjNhhhNhNubh)}(h*:ref:`component helper library`h]j)}(hjNh]hcomponent helper library}(hjNhhhNhNubah}(h]h ](j stdstd-refeh"]h$]h&]uh1jhjNubah}(h]h ]h"]h$]h&]refdocj refdomainjNreftyperef refexplicitrefwarnj componentuh1hh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:99: ./drivers/gpu/drm/drm_drv.chMhjNubhS. For consistency and better options for code reuse the following guidelines apply:}(hjNhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjNhMhjNhhubj%)}(hX^- The entire device initialization procedure should be run from the :c:type:`component_master_ops.master_bind ` callback, starting with devm_drm_dev_alloc(), then binding all components with component_bind_all() and finishing with drm_dev_register(). - The opaque pointer passed to all components through component_bind_all() should point at :c:type:`struct drm_device ` of the device instance, not some driver specific private structure. - The component helper fills the niche where further standardization of interfaces is not practical. When there already is, or will be, a standardized interface like :c:type:`drm_bridge` or :c:type:`drm_panel`, providing its own functions to find such components at driver load time, like drm_of_find_panel_or_bridge(), then the component helper should not be used. h]h bullet_list)}(hhh](h list_item)}(hXThe entire device initialization procedure should be run from the :c:type:`component_master_ops.master_bind ` callback, starting with devm_drm_dev_alloc(), then binding all components with component_bind_all() and finishing with drm_dev_register(). h]h)}(hXThe entire device initialization procedure should be run from the :c:type:`component_master_ops.master_bind ` callback, starting with devm_drm_dev_alloc(), then binding all components with component_bind_all() and finishing with drm_dev_register().h](hBThe entire device initialization procedure should be run from the }(hjNhhhNhNubh)}(hA:c:type:`component_master_ops.master_bind `h]j)}(hjOh]h component_master_ops.master_bind}(hjOhhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjNubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjjjcomponent_master_opsuh1hh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:99: ./drivers/gpu/drm/drm_drv.chMhjNubh callback, starting with devm_drm_dev_alloc(), then binding all components with component_bind_all() and finishing with drm_dev_register().}(hjNhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjOhMhjNubah}(h]h ]h"]h$]h&]uh1jNhjNubjN)}(hThe opaque pointer passed to all components through component_bind_all() should point at :c:type:`struct drm_device ` of the device instance, not some driver specific private structure. h]h)}(hThe opaque pointer passed to all components through component_bind_all() should point at :c:type:`struct drm_device ` of the device instance, not some driver specific private structure.h](hYThe opaque pointer passed to all components through component_bind_all() should point at }(hj2OhhhNhNubh)}(h(:c:type:`struct drm_device `h]j)}(hjOhhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhj:Oubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjjj drm_deviceuh1hh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:99: ./drivers/gpu/drm/drm_drv.chMhj2OubhD of the device instance, not some driver specific private structure.}(hj2OhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjYOhMhj.Oubah}(h]h ]h"]h$]h&]uh1jNhjNubjN)}(hXmThe component helper fills the niche where further standardization of interfaces is not practical. When there already is, or will be, a standardized interface like :c:type:`drm_bridge` or :c:type:`drm_panel`, providing its own functions to find such components at driver load time, like drm_of_find_panel_or_bridge(), then the component helper should not be used. h]h)}(hXkThe component helper fills the niche where further standardization of interfaces is not practical. When there already is, or will be, a standardized interface like :c:type:`drm_bridge` or :c:type:`drm_panel`, providing its own functions to find such components at driver load time, like drm_of_find_panel_or_bridge(), then the component helper should not be used.h](hThe component helper fills the niche where further standardization of interfaces is not practical. When there already is, or will be, a standardized interface like }(hjnOhhhNhNubh)}(h:c:type:`drm_bridge`h]j)}(hjxOh]h drm_bridge}(hjzOhhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjvOubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjjj drm_bridgeuh1hh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:99: ./drivers/gpu/drm/drm_drv.chMhjnOubh or }(hjnOhhhNhNubh)}(h:c:type:`drm_panel`h]j)}(hjOh]h drm_panel}(hjOhhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjOubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjjj drm_paneluh1hhjOhMhjnOubh, providing its own functions to find such components at driver load time, like drm_of_find_panel_or_bridge(), then the component helper should not be used.}(hjnOhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjOhMhjjOubah}(h]h ]h"]h$]h&]uh1jNhjNubeh}(h]h ]h"]h$]h&]bullet-uh1jNhjOhMhjNubah}(h]h ]h"]h$]h&]uh1j%hjOhMhjNhhubeh}(h]component-helper-usageah ]h"]component helper usageah$]h&]uh1hhjNhhhhhKaubh)}(hhh](h)}(hMemory Manager Initializationh]hMemory Manager Initialization}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjOhhhhhKgubh)}(hXEvery DRM driver requires a memory manager which must be initialized at load time. DRM currently contains two memory managers, the Translation Table Manager (TTM) and the Graphics Execution Manager (GEM). This document describes the use of the GEM memory manager only. See ? for details.h]hXEvery DRM driver requires a memory manager which must be initialized at load time. DRM currently contains two memory managers, the Translation Table Manager (TTM) and the Graphics Execution Manager (GEM). This document describes the use of the GEM memory manager only. See ? for details.}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKihjOhhubeh}(h]memory-manager-initializationah ]h"]memory manager initializationah$]h&]uh1hhjNhhhhhKgubh)}(hhh](h)}(h"Miscellaneous Device Configurationh]h"Miscellaneous Device Configuration}(hj PhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjPhhhhhKpubh)}(hXAnother task that may be necessary for PCI devices during configuration is mapping the video BIOS. On many devices, the VBIOS describes device configuration, LCD panel timings (if any), and contains flags indicating device state. Mapping the BIOS can be done using the pci_map_rom() call, a convenience function that takes care of mapping the actual ROM, whether it has been shadowed into memory (typically at address 0xc0000) or exists on the PCI device in the ROM BAR. Note that after the ROM has been mapped and any necessary information has been extracted, it should be unmapped; on many devices, the ROM address decoder is shared with other BARs, so leaving it mapped could cause undesired behaviour like hangs or memory corruption.h]hXAnother task that may be necessary for PCI devices during configuration is mapping the video BIOS. On many devices, the VBIOS describes device configuration, LCD panel timings (if any), and contains flags indicating device state. Mapping the BIOS can be done using the pci_map_rom() call, a convenience function that takes care of mapping the actual ROM, whether it has been shadowed into memory (typically at address 0xc0000) or exists on the PCI device in the ROM BAR. Note that after the ROM has been mapped and any necessary information has been extracted, it should be unmapped; on many devices, the ROM address decoder is shared with other BARs, so leaving it mapped could cause undesired behaviour like hangs or memory corruption.}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKrhjPhhubeh}(h]"miscellaneous-device-configurationah ]h"]"miscellaneous device configurationah$]h&]uh1hhjNhhhhhKpubeh}(h] driver-loadah ]h"] driver loadah$]h&]uh1hhhhhhhhK^ubh)}(hhh](h)}(hManaged Resourcesh]hManaged Resources}(hj8PhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj5PhhhhhKubh)}(hInspired by struct :c:type:`device` managed resources, but tied to the lifetime of struct :c:type:`drm_device`, which can outlive the underlying physical device, usually when userspace has some open files and other handles to resources still open.h](hInspired by struct }(hjFPhhhNhNubh)}(h:c:type:`device`h]j)}(hjPPh]hdevice}(hjRPhhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjNPubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjjjdeviceuh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:129: ./drivers/gpu/drm/drm_managed.chKhjFPubh7 managed resources, but tied to the lifetime of struct }(hjFPhhhNhNubh)}(h:c:type:`drm_device`h]j)}(hjtPh]h drm_device}(hjvPhhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjrPubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjjj drm_deviceuh1hhjmPhKhjFPubh, which can outlive the underlying physical device, usually when userspace has some open files and other handles to resources still open.}(hjFPhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjmPhKhj5Phhubh)}(hXTRelease actions can be added with drmm_add_action(), memory allocations can be done directly with drmm_kmalloc() and the related functions. Everything will be released on the final drm_dev_put() in reverse order of how the release actions have been added and memory has been allocated since driver loading started with devm_drm_dev_alloc().h]hXTRelease actions can be added with drmm_add_action(), memory allocations can be done directly with drmm_kmalloc() and the related functions. Everything will be released on the final drm_dev_put() in reverse order of how the release actions have been added and memory has been allocated since driver loading started with devm_drm_dev_alloc().}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:129: ./drivers/gpu/drm/drm_managed.chKhj5Phhubh)}(hX3Note that release actions and managed memory can also be added and removed during the lifetime of the driver, all the functions are fully concurrent safe. But it is recommended to use managed resources only for resources that change rarely, if ever, during the lifetime of the :c:type:`drm_device` instance.h](hXNote that release actions and managed memory can also be added and removed during the lifetime of the driver, all the functions are fully concurrent safe. But it is recommended to use managed resources only for resources that change rarely, if ever, during the lifetime of the }(hjPhhhNhNubh)}(h:c:type:`drm_device`h]j)}(hjPh]h drm_device}(hjPhhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjPubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjjj drm_deviceuh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:129: ./drivers/gpu/drm/drm_managed.chK hjPubh instance.}(hjPhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjPhK hj5Phhubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j drmm_release_action (C function)c.drmm_release_actionhNtauh1jhj5PhhhNhNubj)}(hhh](j)}(hVvoid drmm_release_action (struct drm_device *dev, drmres_release_t action, void *data)h]j)}(hUvoid drmm_release_action(struct drm_device *dev, drmres_release_t action, void *data)h](ja()}(hvoidh]hvoid}(hjPhhhNhNubah}(h]h ]jm(ah"]h$]h&]uh1j`(hjPhhh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:132: ./drivers/gpu/drm/drm_managed.chKubj)}(h h]h }(hjQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPhhhjQhKubj)}(hdrmm_release_actionh]j)}(hdrmm_release_actionh]hdrmm_release_action}(hjQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQubah}(h]h ](jjeh"]h$]h&]jAjBuh1jhjPhhhjQhKubjt)}(h=(struct drm_device *dev, drmres_release_t action, void *data)h](jz)}(hstruct drm_device *devh](j)}(hjh]hstruct}(hj2QhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.Qubj)}(h h]h }(hj?QhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.Qubh)}(hhh]j)}(h drm_deviceh]h drm_device}(hjPQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMQubah}(h]h ]h"]h$]h&] refdomainj reftypej/ reftargetjRQmodnameN classnameNjj)}j]j7)}j/jQsbc.drmm_release_actionasbuh1hhj.Qubj)}(h h]h }(hjpQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.QubjL)}(hjOh]h*}(hj~QhhhNhNubah}(h]h ]jXah"]h$]h&]uh1jKhj.Qubj)}(hdevh]hdev}(hjQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.Qubeh}(h]h ]h"]h$]h&]noemphjAjBuh1jyhj*Qubjz)}(hdrmres_release_t actionh](h)}(hhh]j)}(hdrmres_release_th]hdrmres_release_t}(hjQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQubah}(h]h ]h"]h$]h&] refdomainj reftypej/ reftargetjQmodnameN classnameNjj)}j]jlQc.drmm_release_actionasbuh1hhjQubj)}(h h]h }(hjQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQubj)}(hactionh]haction}(hjQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQubeh}(h]h ]h"]h$]h&]noemphjAjBuh1jyhj*Qubjz)}(h void *datah](ja()}(hvoidh]hvoid}(hjQhhhNhNubah}(h]h ]jm(ah"]h$]h&]uh1j`(hjQubj)}(h h]h }(hjQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQubjL)}(hjOh]h*}(hjRhhhNhNubah}(h]h ]jXah"]h$]h&]uh1jKhjQubj)}(hdatah]hdata}(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQubeh}(h]h ]h"]h$]h&]noemphjAjBuh1jyhj*Qubeh}(h]h ]h"]h$]h&]jAjBuh1jshjPhhhjQhKubeh}(h]h ]h"]h$]h&]jAjBjuh1jjjhjPhhhjQhKubah}(h]jPah ](j j!eh"]h$]h&]j%j&)j'huh1jhjQhKhjPhhubj))}(hhh]h)}(h4release a managed action from a :c:type:`drm_device`h](h release a managed action from a }(hj?RhhhNhNubh)}(h:c:type:`drm_device`h]j)}(hjIRh]h drm_device}(hjKRhhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjGRubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjj)}j]jlQc.drmm_release_actionasbj drm_deviceuh1hhjQhKhj?Rubeh}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:132: ./drivers/gpu/drm/drm_managed.chKhjSubah}(h]h ]h"]h$]h&]uh1jhj"Subeh}(h]h ]h"]h$]h&]uh1jhj=ShKhjRubeh}(h]h ]h"]h$]h&]uh1jhjRubh)}(h**Description**h]jZ)}(hjqSh]h Description}(hjsShhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjoSubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:132: ./drivers/gpu/drm/drm_managed.chKhjRubh)}(hThis function calls the **action** previously added by drmm_add_action() immediately. The **action** is removed from the list of cleanup actions for **dev**, which means that it won't be called in the final drm_dev_put().h](hThis function calls the }(hjShhhNhNubjZ)}(h **action**h]haction}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjSubh8 previously added by drmm_add_action() immediately. The }(hjShhhNhNubjZ)}(h **action**h]haction}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjSubh1 is removed from the list of cleanup actions for }(hjShhhNhNubjZ)}(h**dev**h]hdev}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjSubhC, which means that it won’t be called in the final drm_dev_put().}(hjShhhNhNubeh}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:132: ./drivers/gpu/drm/drm_managed.chKhjRubeh}(h]h ] kernelindentah"]h$]h&]uh1jOhj5PhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jdrmm_kmalloc (C function)c.drmm_kmallochNtauh1jhj5PhhhNhNubj)}(hhh](j)}(hDvoid * drmm_kmalloc (struct drm_device *dev, size_t size, gfp_t gfp)h]j)}(hBvoid *drmm_kmalloc(struct drm_device *dev, size_t size, gfp_t gfp)h](ja()}(hvoidh]hvoid}(hjShhhNhNubah}(h]h ]jm(ah"]h$]h&]uh1j`(hjShhh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:132: ./drivers/gpu/drm/drm_managed.chKubj)}(h h]h }(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjShhhjShKubjL))}(hjOh]h*}(hj ThhhNhNubah}(h]h ]jXah"]h$]h&]uh1jKhjShhhjShKubj)}(h drmm_kmalloch]j)}(h drmm_kmalloch]h drmm_kmalloc}(hjThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjTubah}(h]h ](jjeh"]h$]h&]jAjBuh1jhjShhhjShKubjt)}(h0(struct drm_device *dev, size_t size, gfp_t gfp)h](jz)}(hstruct drm_device *devh](j)}(hjh]hstruct}(hj6ThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2Tubj)}(h h]h }(hjCThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2Tubh)}(hhh]j)}(h drm_deviceh]h drm_device}(hjTThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQTubah}(h]h ]h"]h$]h&] refdomainj reftypej/ reftargetjVTmodnameN classnameNjj)}j]j7)}j/jTsbc.drmm_kmallocasbuh1hhj2Tubj)}(h h]h }(hjtThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2TubjL)}(hjOh]h*}(hjThhhNhNubah}(h]h ]jXah"]h$]h&]uh1jKhj2Tubj)}(hdevh]hdev}(hjThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2Tubeh}(h]h ]h"]h$]h&]noemphjAjBuh1jyhj.Tubjz)}(h size_t sizeh](h)}(hhh]j)}(hsize_th]hsize_t}(hjThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjTubah}(h]h ]h"]h$]h&] refdomainj reftypej/ reftargetjTmodnameN classnameNjj)}j]jpTc.drmm_kmallocasbuh1hhjTubj)}(h h]h }(hjThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjTubj)}(hsizeh]hsize}(hjThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjTubeh}(h]h ]h"]h$]h&]noemphjAjBuh1jyhj.Tubjz)}(h gfp_t gfph](h)}(hhh]j)}(hgfp_th]hgfp_t}(hjThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjTubah}(h]h ]h"]h$]h&] refdomainj reftypej/ reftargetjTmodnameN classnameNjj)}j]jpTc.drmm_kmallocasbuh1hhjTubj)}(h h]h }(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjTubj)}(hgfph]hgfp}(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjTubeh}(h]h ]h"]h$]h&]noemphjAjBuh1jyhj.Tubeh}(h]h ]h"]h$]h&]jAjBuh1jshjShhhjShKubeh}(h]h ]h"]h$]h&]jAjBjuh1jjjhjShhhjShKubah}(h]jSah ](j j!eh"]h$]h&]j%j&)j'huh1jhjShKhjShhubj))}(hhh]h)}(h&:c:type:`drm_device` managed kmalloc()h](h)}(h:c:type:`drm_device`h]j)}(hjOUh]h drm_device}(hjQUhhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjMUubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjj)}j]jpTc.drmm_kmallocasbj drm_deviceuh1hhjQhKhjIUubh managed kmalloc()}(hjIUhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:132: ./drivers/gpu/drm/drm_managed.chKhjFUhhubah}(h]h ]h"]h$]h&]uh1j(hjShhhjShKubeh}(h]h ](j functioneh"]h$]h&]jIj jJjUjKjUjLjMjNuh1jhhhj5PhNhNubjP)}(hXv**Parameters** ``struct drm_device *dev`` DRM device ``size_t size`` size of the memory allocation ``gfp_t gfp`` GFP allocation flags **Description** This is a :c:type:`drm_device` managed version of kmalloc(). The allocated memory is automatically freed on the final drm_dev_put(). Memory can also be freed before the final drm_dev_put() by calling drmm_kfree().h](h)}(h**Parameters**h]jZ)}(hjUh]h Parameters}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjUubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:132: ./drivers/gpu/drm/drm_managed.chKhjUubj)}(hhh](j)}(h&``struct drm_device *dev`` DRM device h](j)}(h``struct drm_device *dev``h]j)}(hjUh]hstruct drm_device *dev}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjUubah}(h]h ]h"]h$]h&]uh1jh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:132: ./drivers/gpu/drm/drm_managed.chKhjUubj)}(hhh]h)}(h DRM deviceh]h DRM device}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjUhKhjUubah}(h]h ]h"]h$]h&]uh1jhjUubeh}(h]h ]h"]h$]h&]uh1jhjUhKhjUubj)}(h.``size_t size`` size of the memory allocation h](j)}(h``size_t size``h]j)}(hjUh]h size_t size}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjUubah}(h]h ]h"]h$]h&]uh1jh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:132: ./drivers/gpu/drm/drm_managed.chKhjUubj)}(hhh]h)}(hsize of the memory allocationh]hsize of the memory allocation}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjUhKhjUubah}(h]h ]h"]h$]h&]uh1jhjUubeh}(h]h ]h"]h$]h&]uh1jhjUhKhjUubj)}(h#``gfp_t gfp`` GFP allocation flags h](j)}(h ``gfp_t gfp``h]j)}(hj Vh]h gfp_t gfp}(hj"VhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjVubah}(h]h ]h"]h$]h&]uh1jh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:132: ./drivers/gpu/drm/drm_managed.chKhjVubj)}(hhh]h)}(hGFP allocation flagsh]hGFP allocation flags}(hj9VhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj5VhKhj6Vubah}(h]h ]h"]h$]h&]uh1jhjVubeh}(h]h ]h"]h$]h&]uh1jhj5VhKhjUubeh}(h]h ]h"]h$]h&]uh1jhjUubh)}(h**Description**h]jZ)}(hj[Vh]h Description}(hj]VhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjYVubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:132: ./drivers/gpu/drm/drm_managed.chKhjUubh)}(hThis is a :c:type:`drm_device` managed version of kmalloc(). The allocated memory is automatically freed on the final drm_dev_put(). Memory can also be freed before the final drm_dev_put() by calling drmm_kfree().h](h This is a }(hjqVhhhNhNubh)}(h:c:type:`drm_device`h]j)}(hj{Vh]h drm_device}(hj}VhhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjyVubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjjj drm_deviceuh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:132: ./drivers/gpu/drm/drm_managed.chKhjqVubh managed version of kmalloc(). The allocated memory is automatically freed on the final drm_dev_put(). Memory can also be freed before the final drm_dev_put() by calling drmm_kfree().}(hjqVhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjVhKhjUubeh}(h]h ] kernelindentah"]h$]h&]uh1jOhj5PhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jdrmm_kstrdup (C function)c.drmm_kstrduphNtauh1jhj5PhhhNhNubj)}(hhh](j)}(hFchar * drmm_kstrdup (struct drm_device *dev, const char *s, gfp_t gfp)h]j)}(hDchar *drmm_kstrdup(struct drm_device *dev, const char *s, gfp_t gfp)h](ja()}(hcharh]hchar}(hjVhhhNhNubah}(h]h ]jm(ah"]h$]h&]uh1j`(hjVhhh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:132: ./drivers/gpu/drm/drm_managed.chKubj)}(h h]h }(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVhhhjVhKubjL)}(hjOh]h*}(hjVhhhNhNubah}(h]h ]jXah"]h$]h&]uh1jKhjVhhhjVhKubj)}(h drmm_kstrduph]j)}(h drmm_kstrduph]h drmm_kstrdup}(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVubah}(h]h ](jjeh"]h$]h&]jAjBuh1jhjVhhhjVhKubjt)}(h2(struct drm_device *dev, const char *s, gfp_t gfp)h](jz)}(hstruct drm_device *devh](j)}(hjh]hstruct}(hj WhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj Wubj)}(h h]h }(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj Wubh)}(hhh]j)}(h drm_deviceh]h drm_device}(hj+WhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj(Wubah}(h]h ]h"]h$]h&] refdomainj reftypej/ reftargetj-WmodnameN classnameNjj)}j]j7)}j/jVsbc.drmm_kstrdupasbuh1hhj Wubj)}(h h]h }(hjKWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj WubjL)}(hjOh]h*}(hjYWhhhNhNubah}(h]h ]jXah"]h$]h&]uh1jKhj Wubj)}(hdevh]hdev}(hjfWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj Wubeh}(h]h ]h"]h$]h&]noemphjAjBuh1jyhjWubjz)}(h const char *sh](j)}(hj1*h]hconst}(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj{Wubj)}(h h]h }(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj{Wubja()}(hcharh]hchar}(hjWhhhNhNubah}(h]h ]jm(ah"]h$]h&]uh1j`(hj{Wubj)}(h h]h }(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj{WubjL)}(hjOh]h*}(hjWhhhNhNubah}(h]h ]jXah"]h$]h&]uh1jKhj{Wubj)}(hsh]hs}(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj{Wubeh}(h]h ]h"]h$]h&]noemphjAjBuh1jyhjWubjz)}(h gfp_t gfph](h)}(hhh]j)}(hgfp_th]hgfp_t}(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWubah}(h]h ]h"]h$]h&] refdomainj reftypej/ reftargetjWmodnameN classnameNjj)}j]jGWc.drmm_kstrdupasbuh1hhjWubj)}(h h]h }(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWubj)}(hgfph]hgfp}(hj XhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWubeh}(h]h ]h"]h$]h&]noemphjAjBuh1jyhjWubeh}(h]h ]h"]h$]h&]jAjBuh1jshjVhhhjVhKubeh}(h]h ]h"]h$]h&]jAjBjuh1jjjhjVhhhjVhKubah}(h]jVah ](j j!eh"]h$]h&]j%j&)j'huh1jhjVhKhjVhhubj))}(hhh]h)}(h&:c:type:`drm_device` managed kstrdup()h](h)}(h:c:type:`drm_device`h]j)}(hj;Xh]h drm_device}(hj=XhhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhj9Xubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjj)}j]jGWc.drmm_kstrdupasbj drm_deviceuh1hhjQhKhj5Xubh managed kstrdup()}(hj5XhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:132: ./drivers/gpu/drm/drm_managed.chKhj2Xhhubah}(h]h ]h"]h$]h&]uh1j(hjVhhhjVhKubeh}(h]h ](j functioneh"]h$]h&]jIj jJjqXjKjqXjLjMjNuh1jhhhj5PhNhNubjP)}(hXt**Parameters** ``struct drm_device *dev`` DRM device ``const char *s`` 0-terminated string to be duplicated ``gfp_t gfp`` GFP allocation flags **Description** This is a :c:type:`drm_device` managed version of kstrdup(). The allocated memory is automatically freed on the final drm_dev_put() and works exactly like a memory allocation obtained by drmm_kmalloc().h](h)}(h**Parameters**h]jZ)}(hj{Xh]h Parameters}(hj}XhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjyXubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:132: ./drivers/gpu/drm/drm_managed.chKhjuXubj)}(hhh](j)}(h&``struct drm_device *dev`` DRM device h](j)}(h``struct drm_device *dev``h]j)}(hjXh]hstruct drm_device *dev}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjXubah}(h]h ]h"]h$]h&]uh1jh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:132: ./drivers/gpu/drm/drm_managed.chKhjXubj)}(hhh]h)}(h DRM deviceh]h DRM device}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjXhKhjXubah}(h]h ]h"]h$]h&]uh1jhjXubeh}(h]h ]h"]h$]h&]uh1jhjXhKhjXubj)}(h7``const char *s`` 0-terminated string to be duplicated h](j)}(h``const char *s``h]j)}(hjXh]h const char *s}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjXubah}(h]h ]h"]h$]h&]uh1jh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:132: ./drivers/gpu/drm/drm_managed.chKhjXubj)}(hhh]h)}(h$0-terminated string to be duplicatedh]h$0-terminated string to be duplicated}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjXhKhjXubah}(h]h ]h"]h$]h&]uh1jhjXubeh}(h]h ]h"]h$]h&]uh1jhjXhKhjXubj)}(h#``gfp_t gfp`` GFP allocation flags h](j)}(h ``gfp_t gfp``h]j)}(hj Yh]h gfp_t gfp}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj Yubah}(h]h ]h"]h$]h&]uh1jh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:132: ./drivers/gpu/drm/drm_managed.chKhjYubj)}(hhh]h)}(hGFP allocation flagsh]hGFP allocation flags}(hj%YhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj!YhKhj"Yubah}(h]h ]h"]h$]h&]uh1jhjYubeh}(h]h ]h"]h$]h&]uh1jhj!YhKhjXubeh}(h]h ]h"]h$]h&]uh1jhjuXubh)}(h**Description**h]jZ)}(hjGYh]h Description}(hjIYhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjEYubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:132: ./drivers/gpu/drm/drm_managed.chKhjuXubh)}(hThis is a :c:type:`drm_device` managed version of kstrdup(). The allocated memory is automatically freed on the final drm_dev_put() and works exactly like a memory allocation obtained by drmm_kmalloc().h](h This is a }(hj]YhhhNhNubh)}(h:c:type:`drm_device`h]j)}(hjgYh]h drm_device}(hjiYhhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjeYubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjjj drm_deviceuh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:132: ./drivers/gpu/drm/drm_managed.chKhj]Yubh managed version of kstrdup(). The allocated memory is automatically freed on the final drm_dev_put() and works exactly like a memory allocation obtained by drmm_kmalloc().}(hj]YhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjYhKhjuXubeh}(h]h ] kernelindentah"]h$]h&]uh1jOhj5PhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jdrmm_kfree (C function) c.drmm_kfreehNtauh1jhj5PhhhNhNubj)}(hhh](j)}(h4void drmm_kfree (struct drm_device *dev, void *data)h]j)}(h3void drmm_kfree(struct drm_device *dev, void *data)h](ja()}(hvoidh]hvoid}(hjYhhhNhNubah}(h]h ]jm(ah"]h$]h&]uh1j`(hjYhhh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:132: ./drivers/gpu/drm/drm_managed.chMubj)}(h h]h }(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYhhhjYhMubj)}(h drmm_kfreeh]j)}(h drmm_kfreeh]h drmm_kfree}(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubah}(h]h ](jjeh"]h$]h&]jAjBuh1jhjYhhhjYhMubjt)}(h$(struct drm_device *dev, void *data)h](jz)}(hstruct drm_device *devh](j)}(hjh]hstruct}(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubj)}(h h]h }(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubh)}(hhh]j)}(h drm_deviceh]h drm_device}(hj ZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZubah}(h]h ]h"]h$]h&] refdomainj reftypej/ reftargetj ZmodnameN classnameNjj)}j]j7)}j/jYsb c.drmm_kfreeasbuh1hhjYubj)}(h h]h }(hj*ZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubjL)}(hjOh]h*}(hj8ZhhhNhNubah}(h]h ]jXah"]h$]h&]uh1jKhjYubj)}(hdevh]hdev}(hjEZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubeh}(h]h ]h"]h$]h&]noemphjAjBuh1jyhjYubjz)}(h void *datah](ja()}(hvoidh]hvoid}(hj^ZhhhNhNubah}(h]h ]jm(ah"]h$]h&]uh1j`(hjZZubj)}(h h]h }(hjlZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZZubjL)}(hjOh]h*}(hjzZhhhNhNubah}(h]h ]jXah"]h$]h&]uh1jKhjZZubj)}(hdatah]hdata}(hjZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZZubeh}(h]h ]h"]h$]h&]noemphjAjBuh1jyhjYubeh}(h]h ]h"]h$]h&]jAjBuh1jshjYhhhjYhMubeh}(h]h ]h"]h$]h&]jAjBjuh1jjjhjYhhhjYhMubah}(h]jYah ](j j!eh"]h$]h&]j%j&)j'huh1jhjYhMhjYhhubj))}(hhh]h)}(h$:c:type:`drm_device` managed kfree()h](h)}(h:c:type:`drm_device`h]j)}(hjZh]h drm_device}(hjZhhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjZubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjj)}j]j&Z c.drmm_kfreeasbj drm_deviceuh1hhjQhKhjZubh managed kfree()}(hjZhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:132: ./drivers/gpu/drm/drm_managed.chMhjZhhubah}(h]h ]h"]h$]h&]uh1j(hjYhhhjYhMubeh}(h]h ](j functioneh"]h$]h&]jIj jJjZjKjZjLjMjNuh1jhhhj5PhNhNubjP)}(hXC**Parameters** ``struct drm_device *dev`` DRM device ``void *data`` memory allocation to be freed **Description** This is a :c:type:`drm_device` managed version of kfree() which can be used to release memory allocated through drmm_kmalloc() or any of its related functions before the final drm_dev_put() of **dev**.h](h)}(h**Parameters**h]jZ)}(hjZh]h Parameters}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjZubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:132: ./drivers/gpu/drm/drm_managed.chMhjZubj)}(hhh](j)}(h&``struct drm_device *dev`` DRM device h](j)}(h``struct drm_device *dev``h]j)}(hj[h]hstruct drm_device *dev}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj[ubah}(h]h ]h"]h$]h&]uh1jh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:132: ./drivers/gpu/drm/drm_managed.chMhj[ubj)}(hhh]h)}(h DRM deviceh]h DRM device}(hj/[hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj+[hMhj,[ubah}(h]h ]h"]h$]h&]uh1jhj[ubeh}(h]h ]h"]h$]h&]uh1jhj+[hMhj [ubj)}(h-``void *data`` memory allocation to be freed h](j)}(h``void *data``h]j)}(hjO[h]h void *data}(hjQ[hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjM[ubah}(h]h ]h"]h$]h&]uh1jh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:132: ./drivers/gpu/drm/drm_managed.chMhjI[ubj)}(hhh]h)}(hmemory allocation to be freedh]hmemory allocation to be freed}(hjh[hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjd[hMhje[ubah}(h]h ]h"]h$]h&]uh1jhjI[ubeh}(h]h ]h"]h$]h&]uh1jhjd[hMhj [ubeh}(h]h ]h"]h$]h&]uh1jhjZubh)}(h**Description**h]jZ)}(hj[h]h Description}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj[ubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:132: ./drivers/gpu/drm/drm_managed.chMhjZubh)}(hThis is a :c:type:`drm_device` managed version of kfree() which can be used to release memory allocated through drmm_kmalloc() or any of its related functions before the final drm_dev_put() of **dev**.h](h This is a }(hj[hhhNhNubh)}(h:c:type:`drm_device`h]j)}(hj[h]h drm_device}(hj[hhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhj[ubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjjj drm_deviceuh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:132: ./drivers/gpu/drm/drm_managed.chMhj[ubh managed version of kfree() which can be used to release memory allocated through drmm_kmalloc() or any of its related functions before the final drm_dev_put() of }(hj[hhhNhNubjZ)}(h**dev**h]hdev}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj[ubh.}(hj[hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj[hMhjZubeh}(h]h ] kernelindentah"]h$]h&]uh1jOhj5PhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jdrmm_add_action (C macro)c.drmm_add_actionhNtauh1jhj5PhhhNhNubj)}(hhh](j)}(hdrmm_add_actionh]j)}(hdrmm_add_actionh]j)}(hdrmm_add_actionh]j)}(hj[h]hdrmm_add_action}(hj\hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\ubah}(h]h ](jjeh"]h$]h&]jAjBuh1jhj\hhh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:135: ./include/drm/drm_managed.hhKubah}(h]h ]h"]h$]h&]jAjBjuh1jjjhj[hhhj\hKubah}(h]j[ah ](j j!eh"]h$]h&]j%j&)j'huh1jhj\hKhj[hhubj))}(hhh]h}(h]h ]h"]h$]h&]uh1j(hj[hhhj\hKubeh}(h]h ](j macroeh"]h$]h&]jIj jJj4\jKj4\jLjMjNuh1jhhhj5PhNhNubh)}(h'``drmm_add_action (dev, action, data)``h]j)}(hj:\h]h#drmm_add_action (dev, action, data)}(hj<\hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj8\ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:135: ./include/drm/drm_managed.hhKhj5Phhubj%)}(h7add a managed release action to a :c:type:`drm_device` h]h)}(h6add a managed release action to a :c:type:`drm_device`h](h"add a managed release action to a }(hjT\hhhNhNubh)}(h:c:type:`drm_device`h]j)}(hj^\h]h drm_device}(hj`\hhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhj\\ubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjjj drm_deviceuh1hh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:135: ./include/drm/drm_managed.hhKhjT\ubeh}(h]h ]h"]h$]h&]uh1hhj{\hKhjP\ubah}(h]h ]h"]h$]h&]uh1j%hj{\hKhj5PhhubjP)}(hX**Parameters** ``dev`` DRM device ``action`` function which should be called when **dev** is released ``data`` opaque pointer, passed to **action** **Description** This function adds the **release** action with optional parameter **data** to the list of cleanup actions for **dev**. The cleanup actions will be run in reverse order in the final drm_dev_put() call for **dev**.h](h)}(h**Parameters**h]jZ)}(hj\h]h Parameters}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj\ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:135: ./include/drm/drm_managed.hhKhj\ubj)}(hhh](j)}(h``dev`` DRM device h](j)}(h``dev``h]j)}(hj\h]hdev}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj\ubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:135: ./include/drm/drm_managed.hhKhj\ubj)}(hhh]h)}(h DRM deviceh]h DRM device}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj\hKhj\ubah}(h]h ]h"]h$]h&]uh1jhj\ubeh}(h]h ]h"]h$]h&]uh1jhj\hKhj\ubj)}(hD``action`` function which should be called when **dev** is released h](j)}(h ``action``h]j)}(hj\h]haction}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj\ubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:135: ./include/drm/drm_managed.hhKhj\ubj)}(hhh]h)}(h8function which should be called when **dev** is releasedh](h%function which should be called when }(hj\hhhNhNubjZ)}(h**dev**h]hdev}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj\ubh is released}(hj\hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj\hKhj\ubah}(h]h ]h"]h$]h&]uh1jhj\ubeh}(h]h ]h"]h$]h&]uh1jhj\hKhj\ubj)}(h.``data`` opaque pointer, passed to **action** h](j)}(h``data``h]j)}(hj1]h]hdata}(hj3]hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj/]ubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:135: ./include/drm/drm_managed.hhKhj+]ubj)}(hhh]h)}(h$opaque pointer, passed to **action**h](hopaque pointer, passed to }(hjJ]hhhNhNubjZ)}(h **action**h]haction}(hjR]hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjJ]ubeh}(h]h ]h"]h$]h&]uh1hhjF]hKhjG]ubah}(h]h ]h"]h$]h&]uh1jhj+]ubeh}(h]h ]h"]h$]h&]uh1jhjF]hKhj\ubeh}(h]h ]h"]h$]h&]uh1jhj\ubh)}(h**Description**h]jZ)}(hjz]h]h Description}(hj|]hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjx]ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:135: ./include/drm/drm_managed.hhKhj\ubh)}(hThis function adds the **release** action with optional parameter **data** to the list of cleanup actions for **dev**. The cleanup actions will be run in reverse order in the final drm_dev_put() call for **dev**.h](hThis function adds the }(hj]hhhNhNubjZ)}(h **release**h]hrelease}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj]ubh action with optional parameter }(hj]hhhNhNubjZ)}(h**data**h]hdata}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj]ubh$ to the list of cleanup actions for }(hj]hhhNhNubjZ)}(h**dev**h]hdev}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj]ubhW. The cleanup actions will be run in reverse order in the final drm_dev_put() call for }(hj]hhhNhNubjZ)}(h**dev**h]hdev}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj]ubh.}(hj]hhhNhNubeh}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:135: ./include/drm/drm_managed.hhKhj\ubeh}(h]h ] kernelindentah"]h$]h&]uh1jOhj5PhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j"drmm_add_action_or_reset (C macro)c.drmm_add_action_or_resethNtauh1jhj5PhhhNhNubj)}(hhh](j)}(hdrmm_add_action_or_reseth]j)}(hdrmm_add_action_or_reseth]j)}(hdrmm_add_action_or_reseth]j)}(hj^h]hdrmm_add_action_or_reset}(hj ^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^ubah}(h]h ](jjeh"]h$]h&]jAjBuh1jhj^hhh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:135: ./include/drm/drm_managed.hhK!ubah}(h]h ]h"]h$]h&]jAjBjuh1jjjhj]hhhj^hK!ubah}(h]j]ah ](j j!eh"]h$]h&]j%j&)j'huh1jhj^hK!hj]hhubj))}(hhh]h}(h]h ]h"]h$]h&]uh1j(hj]hhhj^hK!ubeh}(h]h ](j macroeh"]h$]h&]jIj jJj7^jKj7^jLjMjNuh1jhhhj5PhNhNubh)}(h0``drmm_add_action_or_reset (dev, action, data)``h]j)}(hj=^h]h,drmm_add_action_or_reset (dev, action, data)}(hj?^hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj;^ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:135: ./include/drm/drm_managed.hhK#hj5Phhubj%)}(h7add a managed release action to a :c:type:`drm_device` h]h)}(h6add a managed release action to a :c:type:`drm_device`h](h"add a managed release action to a }(hjW^hhhNhNubh)}(h:c:type:`drm_device`h]j)}(hja^h]h drm_device}(hjc^hhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhj_^ubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjjj drm_deviceuh1hh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:135: ./include/drm/drm_managed.hhK!hjW^ubeh}(h]h ]h"]h$]h&]uh1hhj~^hK!hjS^ubah}(h]h ]h"]h$]h&]uh1j%hj~^hK!hj5PhhubjP)}(hXA**Parameters** ``dev`` DRM device ``action`` function which should be called when **dev** is released ``data`` opaque pointer, passed to **action** **Description** Similar to drmm_add_action(), with the only difference that upon failure **action** is directly called for any cleanup work necessary on failures.h](h)}(h**Parameters**h]jZ)}(hj^h]h Parameters}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj^ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:135: ./include/drm/drm_managed.hhK%hj^ubj)}(hhh](j)}(h``dev`` DRM device h](j)}(h``dev``h]j)}(hj^h]hdev}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj^ubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:135: ./include/drm/drm_managed.hhK"hj^ubj)}(hhh]h)}(h DRM deviceh]h DRM device}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj^hK"hj^ubah}(h]h ]h"]h$]h&]uh1jhj^ubeh}(h]h ]h"]h$]h&]uh1jhj^hK"hj^ubj)}(hD``action`` function which should be called when **dev** is released h](j)}(h ``action``h]j)}(hj^h]haction}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj^ubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:135: ./include/drm/drm_managed.hhK#hj^ubj)}(hhh]h)}(h8function which should be called when **dev** is releasedh](h%function which should be called when }(hj_hhhNhNubjZ)}(h**dev**h]hdev}(hj _hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj_ubh is released}(hj_hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj^hK#hj^ubah}(h]h ]h"]h$]h&]uh1jhj^ubeh}(h]h ]h"]h$]h&]uh1jhj^hK#hj^ubj)}(h.``data`` opaque pointer, passed to **action** h](j)}(h``data``h]j)}(hj4_h]hdata}(hj6_hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2_ubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:135: ./include/drm/drm_managed.hhK$hj._ubj)}(hhh]h)}(h$opaque pointer, passed to **action**h](hopaque pointer, passed to }(hjM_hhhNhNubjZ)}(h **action**h]haction}(hjU_hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjM_ubeh}(h]h ]h"]h$]h&]uh1hhjI_hK$hjJ_ubah}(h]h ]h"]h$]h&]uh1jhj._ubeh}(h]h ]h"]h$]h&]uh1jhjI_hK$hj^ubeh}(h]h ]h"]h$]h&]uh1jhj^ubh)}(h**Description**h]jZ)}(hj}_h]h Description}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj{_ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:135: ./include/drm/drm_managed.hhK&hj^ubh)}(hSimilar to drmm_add_action(), with the only difference that upon failure **action** is directly called for any cleanup work necessary on failures.h](hISimilar to drmm_add_action(), with the only difference that upon failure }(hj_hhhNhNubjZ)}(h **action**h]haction}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj_ubh? is directly called for any cleanup work necessary on failures.}(hj_hhhNhNubeh}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:135: ./include/drm/drm_managed.hhK%hj^ubeh}(h]h ] kernelindentah"]h$]h&]uh1jOhj5PhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jdrmm_kzalloc (C function)c.drmm_kzallochNtauh1jhj5PhhhNhNubj)}(hhh](j)}(hDvoid * drmm_kzalloc (struct drm_device *dev, size_t size, gfp_t gfp)h]j)}(hBvoid *drmm_kzalloc(struct drm_device *dev, size_t size, gfp_t gfp)h](ja()}(hvoidh]hvoid}(hj_hhhNhNubah}(h]h ]jm(ah"]h$]h&]uh1j`(hj_hhh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:135: ./include/drm/drm_managed.hhK7ubj)}(h h]h }(hj_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj_hhhj_hK7ubjL)}(hjOh]h*}(hj_hhhNhNubah}(h]h ]jXah"]h$]h&]uh1jKhj_hhhj_hK7ubj)}(h drmm_kzalloch]j)}(h drmm_kzalloch]h drmm_kzalloc}(hj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj_ubah}(h]h ](jjeh"]h$]h&]jAjBuh1jhj_hhhj_hK7ubjt)}(h0(struct drm_device *dev, size_t size, gfp_t gfp)h](jz)}(hstruct drm_device *devh](j)}(hjh]hstruct}(hj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`ubj)}(h h]h }(hj+`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`ubh)}(hhh]j)}(h drm_deviceh]h drm_device}(hj<`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9`ubah}(h]h ]h"]h$]h&] refdomainj reftypej/ reftargetj>`modnameN classnameNjj)}j]j7)}j/j`sbc.drmm_kzallocasbuh1hhj`ubj)}(h h]h }(hj\`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`ubjL)}(hjOh]h*}(hjj`hhhNhNubah}(h]h ]jXah"]h$]h&]uh1jKhj`ubj)}(hdevh]hdev}(hjw`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`ubeh}(h]h ]h"]h$]h&]noemphjAjBuh1jyhj`ubjz)}(h size_t sizeh](h)}(hhh]j)}(hsize_th]hsize_t}(hj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`ubah}(h]h ]h"]h$]h&] refdomainj reftypej/ reftargetj`modnameN classnameNjj)}j]jX`c.drmm_kzallocasbuh1hhj`ubj)}(h h]h }(hj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`ubj)}(hsizeh]hsize}(hj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`ubeh}(h]h ]h"]h$]h&]noemphjAjBuh1jyhj`ubjz)}(h gfp_t gfph](h)}(hhh]j)}(hgfp_th]hgfp_t}(hj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`ubah}(h]h ]h"]h$]h&] refdomainj reftypej/ reftargetj`modnameN classnameNjj)}j]jX`c.drmm_kzallocasbuh1hhj`ubj)}(h h]h }(hj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`ubj)}(hgfph]hgfp}(hjahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`ubeh}(h]h ]h"]h$]h&]noemphjAjBuh1jyhj`ubeh}(h]h ]h"]h$]h&]jAjBuh1jshj_hhhj_hK7ubeh}(h]h ]h"]h$]h&]jAjBjuh1jjjhj_hhhj_hK7ubah}(h]j_ah ](j j!eh"]h$]h&]j%j&)j'huh1jhj_hK7hj_hhubj))}(hhh]h)}(h&:c:type:`drm_device` managed kzalloc()h](h)}(h:c:type:`drm_device`h]j)}(hj7ah]h drm_device}(hj9ahhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhj5aubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjj)}j]jX`c.drmm_kzallocasbj drm_deviceuh1hhj\hKhj1aubh managed kzalloc()}(hj1ahhhNhNubeh}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:135: ./include/drm/drm_managed.hhK7hj.ahhubah}(h]h ]h"]h$]h&]uh1j(hj_hhhj_hK7ubeh}(h]h ](j functioneh"]h$]h&]jIj jJjmajKjmajLjMjNuh1jhhhj5PhNhNubjP)}(hXv**Parameters** ``struct drm_device *dev`` DRM device ``size_t size`` size of the memory allocation ``gfp_t gfp`` GFP allocation flags **Description** This is a :c:type:`drm_device` managed version of kzalloc(). The allocated memory is automatically freed on the final drm_dev_put(). Memory can also be freed before the final drm_dev_put() by calling drmm_kfree().h](h)}(h**Parameters**h]jZ)}(hjwah]h Parameters}(hjyahhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjuaubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:135: ./include/drm/drm_managed.hhK;hjqaubj)}(hhh](j)}(h&``struct drm_device *dev`` DRM device h](j)}(h``struct drm_device *dev``h]j)}(hjah]hstruct drm_device *dev}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jhjaubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:135: ./include/drm/drm_managed.hhK8hjaubj)}(hhh]h)}(h DRM deviceh]h DRM device}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1hhjahK8hjaubah}(h]h ]h"]h$]h&]uh1jhjaubeh}(h]h ]h"]h$]h&]uh1jhjahK8hjaubj)}(h.``size_t size`` size of the memory allocation h](j)}(h``size_t size``h]j)}(hjah]h size_t size}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jhjaubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:135: ./include/drm/drm_managed.hhK9hjaubj)}(hhh]h)}(hsize of the memory allocationh]hsize of the memory allocation}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1hhjahK9hjaubah}(h]h ]h"]h$]h&]uh1jhjaubeh}(h]h ]h"]h$]h&]uh1jhjahK9hjaubj)}(h#``gfp_t gfp`` GFP allocation flags h](j)}(h ``gfp_t gfp``h]j)}(hjbh]h gfp_t gfp}(hj bhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjbubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:135: ./include/drm/drm_managed.hhK:hjbubj)}(hhh]h)}(hGFP allocation flagsh]hGFP allocation flags}(hj!bhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjbhK:hjbubah}(h]h ]h"]h$]h&]uh1jhjbubeh}(h]h ]h"]h$]h&]uh1jhjbhK:hjaubeh}(h]h ]h"]h$]h&]uh1jhjqaubh)}(h**Description**h]jZ)}(hjCbh]h Description}(hjEbhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjAbubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:135: ./include/drm/drm_managed.hhKhubj)}(hhh]h)}(h$number of array elements to allocateh]h$number of array elements to allocate}(hj]hhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjYhhK^hjZhubah}(h]h ]h"]h$]h&]uh1jhj>hubeh}(h]h ]h"]h$]h&]uh1jhjYhhK^hjhubj)}(h%``size_t size`` size of array member h](j)}(h``size_t size``h]j)}(hj}hh]h size_t size}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj{hubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:135: ./include/drm/drm_managed.hhK_hjwhubj)}(hhh]h)}(hsize of array memberh]hsize of array member}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhK_hjhubah}(h]h ]h"]h$]h&]uh1jhjwhubeh}(h]h ]h"]h$]h&]uh1jhjhhK_hjhubj)}(h%``gfp_t flags`` GFP allocation flags h](j)}(h``gfp_t flags``h]j)}(hjhh]h gfp_t flags}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:135: ./include/drm/drm_managed.hhK`hjhubj)}(hhh]h)}(hGFP allocation flagsh]hGFP allocation flags}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhK`hjhubah}(h]h ]h"]h$]h&]uh1jhjhubeh}(h]h ]h"]h$]h&]uh1jhjhhK`hjhubeh}(h]h ]h"]h$]h&]uh1jhjgubh)}(h**Description**h]jZ)}(hjhh]h Description}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjhubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:135: ./include/drm/drm_managed.hhKbhjgubh)}(hThis is a :c:type:`drm_device` managed version of kcalloc(). The allocated memory is automatically freed on the final drm_dev_put() and works exactly like a memory allocation obtained by drmm_kmalloc().h](h This is a }(hjihhhNhNubh)}(h:c:type:`drm_device`h]j)}(hjih]h drm_device}(hjihhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjiubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjjj drm_deviceuh1hh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:135: ./include/drm/drm_managed.hhKahjiubh managed version of kcalloc(). The allocated memory is automatically freed on the final drm_dev_put() and works exactly like a memory allocation obtained by drmm_kmalloc().}(hjihhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj.ihKahjgubeh}(h]h ] kernelindentah"]h$]h&]uh1jOhj5PhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jdrmm_mutex_init (C macro)c.drmm_mutex_inithNtauh1jhj5PhhhNhNubj)}(hhh](j)}(hdrmm_mutex_inith]j)}(hdrmm_mutex_inith]j)}(hdrmm_mutex_inith]j)}(hjSih]hdrmm_mutex_init}(hj]ihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYiubah}(h]h ](jjeh"]h$]h&]jAjBuh1jhjUihhh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:135: ./include/drm/drm_managed.hhKsubah}(h]h ]h"]h$]h&]jAjBjuh1jjjhjQihhhjpihKsubah}(h]jLiah ](j j!eh"]h$]h&]j%j&)j'huh1jhjpihKshjNihhubj))}(hhh]h}(h]h ]h"]h$]h&]uh1j(hjNihhhjpihKsubeh}(h]h ](j macroeh"]h$]h&]jIj jJjijKjijLjMjNuh1jhhhj5PhNhNubh)}(h``drmm_mutex_init (dev, lock)``h]j)}(hjih]hdrmm_mutex_init (dev, lock)}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jhjiubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:135: ./include/drm/drm_managed.hhKuhj5Phhubj%)}(h*:c:type:`drm_device`-managed mutex_init() h]h)}(h):c:type:`drm_device`-managed mutex_init()h](h)}(h:c:type:`drm_device`h]j)}(hjih]h drm_device}(hjihhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjiubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjjj drm_deviceuh1hh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:135: ./include/drm/drm_managed.hhKshjiubh-managed mutex_init()}(hjihhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjihKshjiubah}(h]h ]h"]h$]h&]uh1j%hjihKshj5PhhubjP)}(hX$**Parameters** ``dev`` DRM device ``lock`` lock to be initialized **Return** 0 on success, or a negative errno code otherwise. **Description** This is a :c:type:`drm_device`-managed version of mutex_init(). The initialized lock is automatically destroyed on the final drm_dev_put().h](h)}(h**Parameters**h]jZ)}(hjih]h Parameters}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjiubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:135: ./include/drm/drm_managed.hhKwhjiubj)}(hhh](j)}(h``dev`` DRM device h](j)}(h``dev``h]j)}(hjjh]hdev}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjjubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:135: ./include/drm/drm_managed.hhKthjiubj)}(hhh]h)}(h DRM deviceh]h DRM device}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjjhKthjjubah}(h]h ]h"]h$]h&]uh1jhjiubeh}(h]h ]h"]h$]h&]uh1jhjjhKthjiubj)}(h ``lock`` lock to be initialized h](j)}(h``lock``h]j)}(hj;jh]hlock}(hj=jhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj9jubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:135: ./include/drm/drm_managed.hhKuhj5jubj)}(hhh]h)}(hlock to be initializedh]hlock to be initialized}(hjTjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjPjhKuhjQjubah}(h]h ]h"]h$]h&]uh1jhj5jubeh}(h]h ]h"]h$]h&]uh1jhjPjhKuhjiubeh}(h]h ]h"]h$]h&]uh1jhjiubh)}(h **Return**h]jZ)}(hjvjh]hReturn}(hjxjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjtjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:135: ./include/drm/drm_managed.hhKwhjiubh)}(h10 on success, or a negative errno code otherwise.h]h10 on success, or a negative errno code otherwise.}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:135: ./include/drm/drm_managed.hhKwhjiubh)}(h**Description**h]jZ)}(hjjh]h Description}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:135: ./include/drm/drm_managed.hhKyhjiubh)}(hThis is a :c:type:`drm_device`-managed version of mutex_init(). The initialized lock is automatically destroyed on the final drm_dev_put().h](h This is a }(hjjhhhNhNubh)}(h:c:type:`drm_device`h]j)}(hjjh]h drm_device}(hjjhhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjjubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjjj drm_deviceuh1hh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:135: ./include/drm/drm_managed.hhKyhjjubhm-managed version of mutex_init(). The initialized lock is automatically destroyed on the final drm_dev_put().}(hjjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjjhKyhjiubeh}(h]h ] kernelindentah"]h$]h&]uh1jOhj5PhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j&drmm_alloc_ordered_workqueue (C macro)c.drmm_alloc_ordered_workqueuehNtauh1jhj5PhhhNhNubj)}(hhh](j)}(hdrmm_alloc_ordered_workqueueh]j)}(hdrmm_alloc_ordered_workqueueh]j)}(hdrmm_alloc_ordered_workqueueh]j)}(hjjh]hdrmm_alloc_ordered_workqueue}(hj khhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkubah}(h]h ](jjeh"]h$]h&]jAjBuh1jhjkhhh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:135: ./include/drm/drm_managed.hhKubah}(h]h ]h"]h$]h&]jAjBjuh1jjjhjjhhhjkhKubah}(h]jjah ](j j!eh"]h$]h&]j%j&)j'huh1jhjkhKhjjhhubj))}(hhh]h}(h]h ]h"]h$]h&]uh1j(hjjhhhjkhKubeh}(h]h ](j macroeh"]h$]h&]jIj jJj5kjKj5kjLjMjNuh1jhhhj5PhNhNubh)}(h;``drmm_alloc_ordered_workqueue (dev, fmt, flags, args...)``h]j)}(hj;kh]h7drmm_alloc_ordered_workqueue (dev, fmt, flags, args...)}(hj=khhhNhNubah}(h]h ]h"]h$]h&]uh1jhj9kubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:135: ./include/drm/drm_managed.hhKhj5Phhubj%)}(h7:c:type:`drm_device` managed alloc_ordered_workqueue() h]h)}(h6:c:type:`drm_device` managed alloc_ordered_workqueue()h](h)}(h:c:type:`drm_device`h]j)}(hj[kh]h drm_device}(hj]khhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjYkubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjjj drm_deviceuh1hh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:135: ./include/drm/drm_managed.hhKhjUkubh" managed alloc_ordered_workqueue()}(hjUkhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjxkhKhjQkubah}(h]h ]h"]h$]h&]uh1j%hjxkhKhj5PhhubjP)}(hX**Parameters** ``dev`` DRM device ``fmt`` printf format for the name of the workqueue ``flags`` WQ_* flags (only WQ_FREEZABLE and WQ_MEM_RECLAIM are meaningful) ``args...`` args for **fmt** **Description** This is a :c:type:`drm_device`-managed version of alloc_ordered_workqueue(). The allocated workqueue is automatically destroyed on the final drm_dev_put(). **Return** workqueue on success, negative ERR_PTR otherwise.h](h)}(h**Parameters**h]jZ)}(hjkh]h Parameters}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjkubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:135: ./include/drm/drm_managed.hhKhjkubj)}(hhh](j)}(h``dev`` DRM device h](j)}(h``dev``h]j)}(hjkh]hdev}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjkubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:135: ./include/drm/drm_managed.hhKhjkubj)}(hhh]h)}(h DRM deviceh]h DRM device}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjkhKhjkubah}(h]h ]h"]h$]h&]uh1jhjkubeh}(h]h ]h"]h$]h&]uh1jhjkhKhjkubj)}(h4``fmt`` printf format for the name of the workqueue h](j)}(h``fmt``h]j)}(hjkh]hfmt}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjkubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:135: ./include/drm/drm_managed.hhKhjkubj)}(hhh]h)}(h+printf format for the name of the workqueueh]h+printf format for the name of the workqueue}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjkhKhjkubah}(h]h ]h"]h$]h&]uh1jhjkubeh}(h]h ]h"]h$]h&]uh1jhjkhKhjkubj)}(hK``flags`` WQ_* flags (only WQ_FREEZABLE and WQ_MEM_RECLAIM are meaningful) h](j)}(h ``flags``h]j)}(hj lh]hflags}(hj"lhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjlubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:135: ./include/drm/drm_managed.hhKhjlubj)}(hhh]h)}(h@WQ_* flags (only WQ_FREEZABLE and WQ_MEM_RECLAIM are meaningful)h]h@WQ_* flags (only WQ_FREEZABLE and WQ_MEM_RECLAIM are meaningful)}(hj9lhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj5lhKhj6lubah}(h]h ]h"]h$]h&]uh1jhjlubeh}(h]h ]h"]h$]h&]uh1jhj5lhKhjkubj)}(h``args...`` args for **fmt** h](j)}(h ``args...``h]j)}(hjYlh]hargs...}(hj[lhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjWlubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:135: ./include/drm/drm_managed.hhKhjSlubj)}(hhh]h)}(hargs for **fmt**h](h args for }(hjrlhhhNhNubjZ)}(h**fmt**h]hfmt}(hjzlhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjrlubeh}(h]h ]h"]h$]h&]uh1hhjnlhKhjolubah}(h]h ]h"]h$]h&]uh1jhjSlubeh}(h]h ]h"]h$]h&]uh1jhjnlhKhjkubeh}(h]h ]h"]h$]h&]uh1jhjkubh)}(h**Description**h]jZ)}(hjlh]h Description}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjlubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:135: ./include/drm/drm_managed.hhKhjkubh)}(hThis is a :c:type:`drm_device`-managed version of alloc_ordered_workqueue(). The allocated workqueue is automatically destroyed on the final drm_dev_put().h](h This is a }(hjlhhhNhNubh)}(h:c:type:`drm_device`h]j)}(hjlh]h drm_device}(hjlhhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjlubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjjj drm_deviceuh1hh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:135: ./include/drm/drm_managed.hhKhjlubh}-managed version of alloc_ordered_workqueue(). The allocated workqueue is automatically destroyed on the final drm_dev_put().}(hjlhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjlhKhjkubh)}(h **Return**h]jZ)}(hjlh]hReturn}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjlubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:135: ./include/drm/drm_managed.hhKhjkubh)}(h1workqueue on success, negative ERR_PTR otherwise.h]h1workqueue on success, negative ERR_PTR otherwise.}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:135: ./include/drm/drm_managed.hhKhjkubeh}(h]h ] kernelindentah"]h$]h&]uh1jOhj5PhhhNhNubeh}(h]managed-resourcesah ]h"]managed resourcesah$]h&]uh1hhhhhhhhKubeh}(h]driver-initializationah ]h"]driver initializationah$]h&]uh1hhhhhhhhKubh)}(hhh](h)}(h&Open/Close, File Operations and IOCTLsh]h&Open/Close, File Operations and IOCTLs}(hj+mhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj(mhhhhhKubhtarget)}(h.. _drm_driver_fops:h]h}(h]h ]h"]h$]h&]refiddrm-driver-fopsuh1j9mhKhj(mhhhhubh)}(hhh](h)}(hFile Operationsh]hFile Operations}(hjJmhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjGmhhhhhKubh)}(hXDrivers must define the file operations structure that forms the DRM userspace API entry point, even though most of those operations are implemented in the DRM core. The resulting :c:type:`struct file_operations ` must be stored in the :c:type:`drm_driver.fops ` field. The mandatory functions are drm_open(), drm_read(), drm_ioctl() and drm_compat_ioctl() if CONFIG_COMPAT is enabled Note that drm_compat_ioctl will be NULL if CONFIG_COMPAT=n, so there's no need to sprinkle #ifdef into the code. Drivers which implement private ioctls that require 32/64 bit compatibility support must provide their own :c:type:`file_operations.compat_ioctl ` handler that processes private ioctls and calls drm_compat_ioctl() for core ioctls.h](hDrivers must define the file operations structure that forms the DRM userspace API entry point, even though most of those operations are implemented in the DRM core. The resulting }(hjXmhhhNhNubh)}(h2:c:type:`struct file_operations `h]j)}(hjbmh]hstruct file_operations}(hjdmhhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhj`mubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjjjfile_operationsuh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:146: ./drivers/gpu/drm/drm_file.chKHhjXmubh must be stored in the }(hjXmhhhNhNubh)}(h&:c:type:`drm_driver.fops `h]j)}(hjmh]hdrm_driver.fops}(hjmhhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjmubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjjj drm_driveruh1hhjmhKHhjXmubhXY field. The mandatory functions are drm_open(), drm_read(), drm_ioctl() and drm_compat_ioctl() if CONFIG_COMPAT is enabled Note that drm_compat_ioctl will be NULL if CONFIG_COMPAT=n, so there’s no need to sprinkle #ifdef into the code. Drivers which implement private ioctls that require 32/64 bit compatibility support must provide their own }(hjXmhhhNhNubh)}(h8:c:type:`file_operations.compat_ioctl `h]j)}(hjmh]hfile_operations.compat_ioctl}(hjmhhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjmubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjjjfile_operationsuh1hhjmhKHhjXmubhT handler that processes private ioctls and calls drm_compat_ioctl() for core ioctls.}(hjXmhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjmhKHhjGmhhubh)}(hX_In addition drm_read() and drm_poll() provide support for DRM events. DRM events are a generic and extensible means to send asynchronous events to userspace through the file descriptor. They are used to send vblank event and page flip completions by the KMS API. But drivers can also use it for their own needs, e.g. to signal completion of rendering.h]hX_In addition drm_read() and drm_poll() provide support for DRM events. DRM events are a generic and extensible means to send asynchronous events to userspace through the file descriptor. They are used to send vblank event and page flip completions by the KMS API. But drivers can also use it for their own needs, e.g. to signal completion of rendering.}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:146: ./drivers/gpu/drm/drm_file.chKShjGmhhubh)}(hrFor the driver-side event interface see drm_event_reserve_init() and drm_send_event() as the main starting points.h]hrFor the driver-side event interface see drm_event_reserve_init() and drm_send_event() as the main starting points.}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:146: ./drivers/gpu/drm/drm_file.chKYhjGmhhubh)}(hThe memory mapping implementation will vary depending on how the driver manages memory. For GEM-based drivers this is drm_gem_mmap().h]hThe memory mapping implementation will vary depending on how the driver manages memory. For GEM-based drivers this is drm_gem_mmap().}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:146: ./drivers/gpu/drm/drm_file.chK\hjGmhhubh)}(hNo other file operations are supported by the DRM userspace API. Overall the following is an example :c:type:`file_operations` structure::h](heNo other file operations are supported by the DRM userspace API. Overall the following is an example }(hjmhhhNhNubh)}(h:c:type:`file_operations`h]j)}(hjnh]hfile_operations}(hj nhhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjnubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjjjfile_operationsuh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:146: ./drivers/gpu/drm/drm_file.chK_hjmubh structure:}(hjmhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj$nhK_hjGmhhubj2)}(hX8static const example_drm_fops = { .owner = THIS_MODULE, .open = drm_open, .release = drm_release, .unlocked_ioctl = drm_ioctl, .compat_ioctl = drm_compat_ioctl, // NULL if CONFIG_COMPAT=n .poll = drm_poll, .read = drm_read, .mmap = drm_gem_mmap, };h]hX8static const example_drm_fops = { .owner = THIS_MODULE, .open = drm_open, .release = drm_release, .unlocked_ioctl = drm_ioctl, .compat_ioctl = drm_compat_ioctl, // NULL if CONFIG_COMPAT=n .poll = drm_poll, .read = drm_read, .mmap = drm_gem_mmap, };}hj/nsbah}(h]h ]h"]h$]h&]jAjBuh1j1h]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:146: ./drivers/gpu/drm/drm_file.chKbhjGmhhubh)}(hFor plain GEM based drivers there is the DEFINE_DRM_GEM_FOPS() macro, and for DMA based drivers there is the DEFINE_DRM_GEM_DMA_FOPS() macro to make this simpler.h]hFor plain GEM based drivers there is the DEFINE_DRM_GEM_FOPS() macro, and for DMA based drivers there is the DEFINE_DRM_GEM_DMA_FOPS() macro to make this simpler.}(hj>nhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:146: ./drivers/gpu/drm/drm_file.chKmhjGmhhubh)}(h`The driver's :c:type:`file_operations` must be stored in :c:type:`drm_driver.fops `.h](hThe driver’s }(hjMnhhhNhNubh)}(h:c:type:`file_operations`h]j)}(hjWnh]hfile_operations}(hjYnhhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjUnubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjjjfile_operationsuh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:146: ./drivers/gpu/drm/drm_file.chKqhjMnubh must be stored in }(hjMnhhhNhNubh)}(h&:c:type:`drm_driver.fops `h]j)}(hj{nh]hdrm_driver.fops}(hj}nhhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjynubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjjj drm_driveruh1hhjtnhKqhjMnubh.}(hjMnhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjtnhKqhjGmhhubh)}(hFor driver-private IOCTL handling see the more detailed discussion in :ref:`IOCTL support in the userland interfaces chapter`.h](hFFor driver-private IOCTL handling see the more detailed discussion in }(hjnhhhNhNubh)}(hI:ref:`IOCTL support in the userland interfaces chapter`h]j)}(hjnh]h0IOCTL support in the userland interfaces chapter}(hjnhhhNhNubah}(h]h ](j stdstd-refeh"]h$]h&]uh1jhjnubah}(h]h ]h"]h$]h&]refdocj refdomainjnreftyperef refexplicitrefwarnjdrm_driver_ioctluh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:146: ./drivers/gpu/drm/drm_file.chKshjnubh.}(hjnhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjnhKshjGmhhubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jdrm_minor (C struct) c.drm_minorhNtauh1jhjGmhhhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhNubj)}(hhh](j)}(h drm_minorh]j)}(hstruct drm_minorh](j)}(hjh]hstruct}(hjnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnhhhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhKubj)}(h h]h }(hjnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnhhhjnhKubj)}(h drm_minorh]j)}(hjnh]h drm_minor}(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj oubah}(h]h ](jjeh"]h$]h&]jAjBuh1jhjnhhhjnhKubeh}(h]h ]h"]h$]h&]jAjBjuh1jjjhjnhhhjnhKubah}(h]jnah ](j j!eh"]h$]h&]j%j&)j'huh1jhjnhKhjnhhubj))}(hhh]h)}(hDRM device minor structureh]hDRM device minor structure}(hj1ohhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhKEhj.ohhubah}(h]h ]h"]h$]h&]uh1j(hjnhhhjnhKubeh}(h]h ](j structeh"]h$]h&]jIj jJjIojKjIojLjMjNuh1jhhhjGmhjnhNubjP)}(h8**Definition**:: struct drm_minor { }; **Members**h](h)}(h**Definition**::h](jZ)}(h**Definition**h]h Definition}(hjUohhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjQoubh:}(hjQohhhNhNubeh}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhKIhjMoubj2)}(hstruct drm_minor { };h]hstruct drm_minor { };}hjnosbah}(h]h ]h"]h$]h&]jAjBuh1j1hY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhKKhjMoubh)}(h **Members**h]jZ)}(hjoh]hMembers}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj}oubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhKNhjMoubeh}(h]h ] kernelindentah"]h$]h&]uh1jOhjGmhhhjnhNubh)}(h**Description**h]jZ)}(hjoh]h Description}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjoubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhKQhjGmhhubh)}(hXeThis structure represents a DRM minor number for device nodes in /dev. Entirely opaque to drivers and should never be inspected directly by drivers. Drivers instead should only interact with :c:type:`struct drm_file ` and of course :c:type:`struct drm_device `, which is also where driver-private data and resources can be attached to.h](hThis structure represents a DRM minor number for device nodes in /dev. Entirely opaque to drivers and should never be inspected directly by drivers. Drivers instead should only interact with }(hjohhhNhNubh)}(h$:c:type:`struct drm_file `h]j)}(hjoh]hstruct drm_file}(hjohhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjoubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjjjdrm_fileuh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhKFhjoubh and of course }(hjohhhNhNubh)}(h(:c:type:`struct drm_device `h]j)}(hjoh]hstruct drm_device}(hjohhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjoubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjjj drm_deviceuh1hhjohKFhjoubhK, which is also where driver-private data and resources can be attached to.}(hjohhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjohKFhjGmhhubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jdrm_pending_event (C struct)c.drm_pending_eventhNtauh1jhjGmhhhjnhNubj)}(hhh](j)}(hdrm_pending_eventh]j)}(hstruct drm_pending_eventh](j)}(hjh]hstruct}(hj"phhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjphhhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhKOubj)}(h h]h }(hj0phhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjphhhj/phKOubj)}(hdrm_pending_eventh]j)}(hjph]hdrm_pending_event}(hjBphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>pubah}(h]h ](jjeh"]h$]h&]jAjBuh1jhjphhhj/phKOubeh}(h]h ]h"]h$]h&]jAjBjuh1jjjhjphhhj/phKOubah}(h]jpah ](j j!eh"]h$]h&]j%j&)j'huh1jhj/phKOhjphhubj))}(hhh]h)}(h%Event queued up for userspace to readh]h%Event queued up for userspace to read}(hjdphhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhKYhjaphhubah}(h]h ]h"]h$]h&]uh1j(hjphhhj/phKOubeh}(h]h ](j structeh"]h$]h&]jIj jJj|pjKj|pjLjMjNuh1jhhhjGmhjnhNubjP)}(hXu**Definition**:: struct drm_pending_event { struct completion *completion; void (*completion_release)(struct completion *completion); struct drm_event *event; struct dma_fence *fence; struct drm_file *file_priv; struct list_head link; struct list_head pending_link; }; **Members** ``completion`` Optional pointer to a kernel internal completion signalled when drm_send_event() is called, useful to internally synchronize with nonblocking operations. ``completion_release`` Optional callback currently only used by the atomic modeset helpers to clean up the reference count for the structure **completion** is stored in. ``event`` Pointer to the actual event that should be sent to userspace to be read using drm_read(). Can be optional, since nowadays events are also used to signal kernel internal threads with **completion** or DMA transactions using **fence**. ``fence`` Optional DMA fence to unblock other hardware transactions which depend upon the nonblocking DRM operation this event represents. ``file_priv`` :c:type:`struct drm_file ` where **event** should be delivered to. Only set when **event** is set. ``link`` Double-linked list to keep track of this event. Can be used by the driver up to the point when it calls drm_send_event(), after that this list entry is owned by the core for its own book-keeping. ``pending_link`` Entry on :c:type:`drm_file.pending_event_list `, to keep track of all pending events for **file_priv**, to allow correct unwinding of them when userspace closes the file before the event is delivered.h](h)}(h**Definition**::h](jZ)}(h**Definition**h]h Definition}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjpubh:}(hjphhhNhNubeh}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhK]hjpubj2)}(hXstruct drm_pending_event { struct completion *completion; void (*completion_release)(struct completion *completion); struct drm_event *event; struct dma_fence *fence; struct drm_file *file_priv; struct list_head link; struct list_head pending_link; };h]hXstruct drm_pending_event { struct completion *completion; void (*completion_release)(struct completion *completion); struct drm_event *event; struct dma_fence *fence; struct drm_file *file_priv; struct list_head link; struct list_head pending_link; };}hjpsbah}(h]h ]h"]h$]h&]jAjBuh1j1hY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhK_hjpubh)}(h **Members**h]jZ)}(hjph]hMembers}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjpubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhKihjpubj)}(hhh](j)}(h``completion`` Optional pointer to a kernel internal completion signalled when drm_send_event() is called, useful to internally synchronize with nonblocking operations. h](j)}(h``completion``h]j)}(hjph]h completion}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jhjpubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhKdhjpubj)}(hhh]h)}(hOptional pointer to a kernel internal completion signalled when drm_send_event() is called, useful to internally synchronize with nonblocking operations.h]hOptional pointer to a kernel internal completion signalled when drm_send_event() is called, useful to internally synchronize with nonblocking operations.}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhKbhjpubah}(h]h ]h"]h$]h&]uh1jhjpubeh}(h]h ]h"]h$]h&]uh1jhjphKdhjpubj)}(h``completion_release`` Optional callback currently only used by the atomic modeset helpers to clean up the reference count for the structure **completion** is stored in. h](j)}(h``completion_release``h]j)}(hj qh]hcompletion_release}(hj qhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj qubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhKmhjqubj)}(hhh]h)}(hOptional callback currently only used by the atomic modeset helpers to clean up the reference count for the structure **completion** is stored in.h](hvOptional callback currently only used by the atomic modeset helpers to clean up the reference count for the structure }(hj$qhhhNhNubjZ)}(h**completion**h]h completion}(hj,qhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj$qubh is stored in.}(hj$qhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhKkhj!qubah}(h]h ]h"]h$]h&]uh1jhjqubeh}(h]h ]h"]h$]h&]uh1jhj qhKmhjpubj)}(h``event`` Pointer to the actual event that should be sent to userspace to be read using drm_read(). Can be optional, since nowadays events are also used to signal kernel internal threads with **completion** or DMA transactions using **fence**. h](j)}(h ``event``h]j)}(hjWqh]hevent}(hjYqhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjUqubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhKwhjQqubj)}(hhh]h)}(hPointer to the actual event that should be sent to userspace to be read using drm_read(). Can be optional, since nowadays events are also used to signal kernel internal threads with **completion** or DMA transactions using **fence**.h](hPointer to the actual event that should be sent to userspace to be read using drm_read(). Can be optional, since nowadays events are also used to signal kernel internal threads with }(hjpqhhhNhNubjZ)}(h**completion**h]h completion}(hjxqhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjpqubh or DMA transactions using }(hjpqhhhNhNubjZ)}(h **fence**h]hfence}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjpqubh.}(hjpqhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhKthjmqubah}(h]h ]h"]h$]h&]uh1jhjQqubeh}(h]h ]h"]h$]h&]uh1jhjlqhKwhjpubj)}(h``fence`` Optional DMA fence to unblock other hardware transactions which depend upon the nonblocking DRM operation this event represents. h](j)}(h ``fence``h]j)}(hjqh]hfence}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjqubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhKhjqubj)}(hhh]h)}(hOptional DMA fence to unblock other hardware transactions which depend upon the nonblocking DRM operation this event represents.h]hOptional DMA fence to unblock other hardware transactions which depend upon the nonblocking DRM operation this event represents.}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhK~hjqubah}(h]h ]h"]h$]h&]uh1jhjqubeh}(h]h ]h"]h$]h&]uh1jhjqhKhjpubj)}(h{``file_priv`` :c:type:`struct drm_file ` where **event** should be delivered to. Only set when **event** is set. h](j)}(h ``file_priv``h]j)}(hjqh]h file_priv}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjqubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhKhjqubj)}(hhh]h)}(hl:c:type:`struct drm_file ` where **event** should be delivered to. Only set when **event** is set.h](h)}(h$:c:type:`struct drm_file `h]j)}(hjrh]hstruct drm_file}(hjrhhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhj rubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjjjdrm_fileuh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhKhjrubh where }(hjrhhhNhNubjZ)}(h **event**h]hevent}(hj0rhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjrubh' should be delivered to. Only set when }(hjrhhhNhNubjZ)}(h **event**h]hevent}(hjBrhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjrubh is set.}(hjrhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj+rhKhjrubah}(h]h ]h"]h$]h&]uh1jhjqubeh}(h]h ]h"]h$]h&]uh1jhjrhKhjpubj)}(h``link`` Double-linked list to keep track of this event. Can be used by the driver up to the point when it calls drm_send_event(), after that this list entry is owned by the core for its own book-keeping. h](j)}(h``link``h]j)}(hjlrh]hlink}(hjnrhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjjrubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhKhjfrubj)}(hhh]h)}(hDouble-linked list to keep track of this event. Can be used by the driver up to the point when it calls drm_send_event(), after that this list entry is owned by the core for its own book-keeping.h]hDouble-linked list to keep track of this event. Can be used by the driver up to the point when it calls drm_send_event(), after that this list entry is owned by the core for its own book-keeping.}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhKhjrubah}(h]h ]h"]h$]h&]uh1jhjfrubeh}(h]h ]h"]h$]h&]uh1jhjrhKhjpubj)}(h``pending_link`` Entry on :c:type:`drm_file.pending_event_list `, to keep track of all pending events for **file_priv**, to allow correct unwinding of them when userspace closes the file before the event is delivered.h](j)}(h``pending_link``h]j)}(hjrh]h pending_link}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjrubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhKhjrubj)}(hhh]h)}(hEntry on :c:type:`drm_file.pending_event_list `, to keep track of all pending events for **file_priv**, to allow correct unwinding of them when userspace closes the file before the event is delivered.h](h Entry on }(hjrhhhNhNubh)}(h0:c:type:`drm_file.pending_event_list `h]j)}(hjrh]hdrm_file.pending_event_list}(hjrhhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjrubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjjjdrm_fileuh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhKhjrubh*, to keep track of all pending events for }(hjrhhhNhNubjZ)}(h **file_priv**h]h file_priv}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjrubhb, to allow correct unwinding of them when userspace closes the file before the event is delivered.}(hjrhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjrhKhjrubah}(h]h ]h"]h$]h&]uh1jhjrubeh}(h]h ]h"]h$]h&]uh1jhjrhKhjpubeh}(h]h ]h"]h$]h&]uh1jhjpubeh}(h]h ] kernelindentah"]h$]h&]uh1jOhjGmhhhjnhNubh)}(h**Description**h]jZ)}(hjsh]h Description}(hj shhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjsubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhKhjGmhhubh)}(hXThis represents a DRM event. Drivers can use this as a generic completion mechanism, which supports kernel-internal :c:type:`struct completion `, :c:type:`struct dma_fence ` and also the DRM-specific :c:type:`struct drm_event ` delivery mechanism.h](htThis represents a DRM event. Drivers can use this as a generic completion mechanism, which supports kernel-internal }(hj4shhhNhNubh)}(h(:c:type:`struct completion `h]j)}(hj>sh]hstruct completion}(hj@shhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhj`h]j)}(hjbsh]hstruct dma_fence}(hjdshhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhj`subah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjjj dma_fenceuh1hhj[shKZhj4subh and also the DRM-specific }(hj4shhhNhNubh)}(h&:c:type:`struct drm_event `h]j)}(hjsh]hstruct drm_event}(hjshhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjsubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjjj drm_eventuh1hhj[shKZhj4subh delivery mechanism.}(hj4shhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj[shKZhjGmhhubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jdrm_file (C struct) c.drm_filehNtauh1jhjGmhhhjnhNubj)}(hhh](j)}(hdrm_fileh]j)}(hstruct drm_fileh](j)}(hjh]hstruct}(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjshhhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhKaubj)}(h h]h }(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjshhhjshKaubj)}(hdrm_fileh]j)}(hjsh]hdrm_file}(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsubah}(h]h ](jjeh"]h$]h&]jAjBuh1jhjshhhjshKaubeh}(h]h ]h"]h$]h&]jAjBjuh1jjjhjshhhjshKaubah}(h]jsah ](j j!eh"]h$]h&]j%j&)j'huh1jhjshKahjshhubj))}(hhh]h)}(hDRM file private datah]hDRM file private data}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhKhjthhubah}(h]h ]h"]h$]h&]uh1j(hjshhhjshKaubeh}(h]h ](j structeh"]h$]h&]jIj jJjtjKjtjLjMjNuh1jhhhjGmhjnhNubjP)}(hX**Definition**:: struct drm_file { bool authenticated; bool stereo_allowed; bool universal_planes; bool atomic; bool aspect_ratio_allowed; bool writeback_connectors; bool was_master; bool is_master; bool supports_virtualized_cursor_plane; struct drm_master *master; spinlock_t master_lookup_lock; struct pid __rcu *pid; u64 client_id; drm_magic_t magic; struct list_head lhead; struct drm_minor *minor; struct idr object_idr; spinlock_t table_lock; struct idr syncobj_idr; spinlock_t syncobj_table_lock; struct file *filp; void *driver_priv; struct list_head fbs; struct mutex fbs_lock; struct list_head blobs; wait_queue_head_t event_wait; struct list_head pending_event_list; struct list_head event_list; int event_space; struct mutex event_read_lock; struct drm_prime_file_private prime; const char *client_name; struct mutex client_name_lock; struct dentry *debugfs_client; }; **Members** ``authenticated`` Whether the client is allowed to submit rendering, which for legacy nodes means it must be authenticated. See also the :ref:`section on primary nodes and authentication `. ``stereo_allowed`` True when the client has asked us to expose stereo 3D mode flags. ``universal_planes`` True if client understands CRTC primary planes and cursor planes in the plane list. Automatically set when **atomic** is set. ``atomic`` True if client understands atomic properties. ``aspect_ratio_allowed`` True, if client can handle picture aspect ratios, and has requested to pass this information along with the mode. ``writeback_connectors`` True if client understands writeback connectors ``was_master`` This client has or had, master capability. Protected by struct :c:type:`drm_device.master_mutex `. This is used to ensure that CAP_SYS_ADMIN is not enforced, if the client is or was master in the past. ``is_master`` This client is the creator of **master**. Protected by struct :c:type:`drm_device.master_mutex `. See also the :ref:`section on primary nodes and authentication `. ``supports_virtualized_cursor_plane`` This client is capable of handling the cursor plane with the restrictions imposed on it by the virtualized drivers. This implies that the cursor plane has to behave like a cursor i.e. track cursor movement. It also requires setting of the hotspot properties by the client on the cursor plane. ``master`` Master this node is currently associated with. Protected by struct :c:type:`drm_device.master_mutex `, and serialized by **master_lookup_lock**. Only relevant if drm_is_primary_client() returns true. Note that this only matches :c:type:`drm_device.master ` if the master is the currently active one. To update **master**, both :c:type:`drm_device.master_mutex ` and **master_lookup_lock** need to be held, therefore holding either of them is safe and enough for the read side. When dereferencing this pointer, either hold struct :c:type:`drm_device.master_mutex ` for the duration of the pointer's use, or use drm_file_get_master() if struct :c:type:`drm_device.master_mutex ` is not currently held and there is no other need to hold it. This prevents **master** from being freed during use. See also **authentication** and **is_master** and the :ref:`section on primary nodes and authentication `. ``master_lookup_lock`` Serializes **master**. ``pid`` Process that is using this file. Must only be dereferenced under a rcu_read_lock or equivalent. Updates are guarded with dev->filelist_mutex and reference must be dropped after a RCU grace period to accommodate lockless readers. ``client_id`` A unique id for fdinfo ``magic`` Authentication magic, see **authenticated**. ``lhead`` List of all open files of a DRM device, linked into :c:type:`drm_device.filelist `. Protected by :c:type:`drm_device.filelist_mutex `. ``minor`` :c:type:`struct drm_minor ` for this file. ``object_idr`` Mapping of mm object handles to object pointers. Used by the GEM subsystem. Protected by **table_lock**. Note that allocated entries might be NULL as a transient state when creating or deleting a handle. ``table_lock`` Protects **object_idr**. ``syncobj_idr`` Mapping of sync object handles to object pointers. ``syncobj_table_lock`` Protects **syncobj_idr**. ``filp`` Pointer to the core file structure. ``driver_priv`` Optional pointer for driver private data. Can be allocated in :c:type:`drm_driver.open ` and should be freed in :c:type:`drm_driver.postclose `. ``fbs`` List of :c:type:`struct drm_framebuffer ` associated with this file, using the :c:type:`drm_framebuffer.filp_head ` entry. Protected by **fbs_lock**. Note that the **fbs** list holds a reference on the framebuffer object to prevent it from untimely disappearing. ``fbs_lock`` Protects **fbs**. ``blobs`` User-created blob properties; this retains a reference on the property. Protected by **drm_mode_config.blob_lock**; ``event_wait`` Waitqueue for new events added to **event_list**. ``pending_event_list`` List of pending :c:type:`struct drm_pending_event `, used to clean up pending events in case this file gets closed before the event is signalled. Uses the :c:type:`drm_pending_event.pending_link ` entry. Protect by :c:type:`drm_device.event_lock `. ``event_list`` List of :c:type:`struct drm_pending_event `, ready for delivery to userspace through drm_read(). Uses the :c:type:`drm_pending_event.link ` entry. Protect by :c:type:`drm_device.event_lock `. ``event_space`` Available event space to prevent userspace from exhausting kernel memory. Currently limited to the fairly arbitrary value of 4KB. ``event_read_lock`` Serializes drm_read(). ``prime`` Per-file buffer caches used by the PRIME buffer sharing code. ``client_name`` Userspace-provided name; useful for accounting and debugging. ``client_name_lock`` Protects **client_name**. ``debugfs_client`` debugfs directory for each client under a drm node.h](h)}(h**Definition**::h](jZ)}(h**Definition**h]h Definition}(hj+thhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj'tubh:}(hj'thhhNhNubeh}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhKhj#tubj2)}(hXstruct drm_file { bool authenticated; bool stereo_allowed; bool universal_planes; bool atomic; bool aspect_ratio_allowed; bool writeback_connectors; bool was_master; bool is_master; bool supports_virtualized_cursor_plane; struct drm_master *master; spinlock_t master_lookup_lock; struct pid __rcu *pid; u64 client_id; drm_magic_t magic; struct list_head lhead; struct drm_minor *minor; struct idr object_idr; spinlock_t table_lock; struct idr syncobj_idr; spinlock_t syncobj_table_lock; struct file *filp; void *driver_priv; struct list_head fbs; struct mutex fbs_lock; struct list_head blobs; wait_queue_head_t event_wait; struct list_head pending_event_list; struct list_head event_list; int event_space; struct mutex event_read_lock; struct drm_prime_file_private prime; const char *client_name; struct mutex client_name_lock; struct dentry *debugfs_client; };h]hXstruct drm_file { bool authenticated; bool stereo_allowed; bool universal_planes; bool atomic; bool aspect_ratio_allowed; bool writeback_connectors; bool was_master; bool is_master; bool supports_virtualized_cursor_plane; struct drm_master *master; spinlock_t master_lookup_lock; struct pid __rcu *pid; u64 client_id; drm_magic_t magic; struct list_head lhead; struct drm_minor *minor; struct idr object_idr; spinlock_t table_lock; struct idr syncobj_idr; spinlock_t syncobj_table_lock; struct file *filp; void *driver_priv; struct list_head fbs; struct mutex fbs_lock; struct list_head blobs; wait_queue_head_t event_wait; struct list_head pending_event_list; struct list_head event_list; int event_space; struct mutex event_read_lock; struct drm_prime_file_private prime; const char *client_name; struct mutex client_name_lock; struct dentry *debugfs_client; };}hjDtsbah}(h]h ]h"]h$]h&]jAjBuh1j1hY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhKhj#tubh)}(h **Members**h]jZ)}(hjUth]hMembers}(hjWthhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjStubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhKhj#tubj)}(hhh](j)}(h``authenticated`` Whether the client is allowed to submit rendering, which for legacy nodes means it must be authenticated. See also the :ref:`section on primary nodes and authentication `. h](j)}(h``authenticated``h]j)}(hjtth]h authenticated}(hjvthhhNhNubah}(h]h ]h"]h$]h&]uh1jhjrtubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhKhjntubj)}(hhh](h)}(hiWhether the client is allowed to submit rendering, which for legacy nodes means it must be authenticated.h]hiWhether the client is allowed to submit rendering, which for legacy nodes means it must be authenticated.}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhKhjtubh)}(hSSee also the :ref:`section on primary nodes and authentication `.h](h See also the }(hjthhhNhNubh)}(hE:ref:`section on primary nodes and authentication `h]j)}(hjth]h+section on primary nodes and authentication}(hjthhhNhNubah}(h]h ](j stdstd-refeh"]h$]h&]uh1jhjtubah}(h]h ]h"]h$]h&]refdocj refdomainjtreftyperef refexplicitrefwarnjdrm_primary_nodeuh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhKhjtubh.}(hjthhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjthKhjtubeh}(h]h ]h"]h$]h&]uh1jhjntubeh}(h]h ]h"]h$]h&]uh1jhjthKhjktubj)}(hU``stereo_allowed`` True when the client has asked us to expose stereo 3D mode flags. h](j)}(h``stereo_allowed``h]j)}(hjth]hstereo_allowed}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jhjtubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhKhjtubj)}(hhh]h)}(hATrue when the client has asked us to expose stereo 3D mode flags.h]hATrue when the client has asked us to expose stereo 3D mode flags.}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1hhjthKhjtubah}(h]h ]h"]h$]h&]uh1jhjtubeh}(h]h ]h"]h$]h&]uh1jhjthKhjktubj)}(h``universal_planes`` True if client understands CRTC primary planes and cursor planes in the plane list. Automatically set when **atomic** is set. h](j)}(h``universal_planes``h]j)}(hjuh]huniversal_planes}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjuubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhKhjuubj)}(hhh]h)}(h}True if client understands CRTC primary planes and cursor planes in the plane list. Automatically set when **atomic** is set.h](hkTrue if client understands CRTC primary planes and cursor planes in the plane list. Automatically set when }(hj3uhhhNhNubjZ)}(h **atomic**h]hatomic}(hj;uhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj3uubh is set.}(hj3uhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhKhj0uubah}(h]h ]h"]h$]h&]uh1jhjuubeh}(h]h ]h"]h$]h&]uh1jhj/uhKhjktubj)}(h9``atomic`` True if client understands atomic properties. h](j)}(h ``atomic``h]j)}(hjfuh]hatomic}(hjhuhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjduubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhKhj`uubj)}(hhh]h)}(h-True if client understands atomic properties.h]h-True if client understands atomic properties.}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj{uhKhj|uubah}(h]h ]h"]h$]h&]uh1jhj`uubeh}(h]h ]h"]h$]h&]uh1jhj{uhKhjktubj)}(h``aspect_ratio_allowed`` True, if client can handle picture aspect ratios, and has requested to pass this information along with the mode. h](j)}(h``aspect_ratio_allowed``h]j)}(hjuh]haspect_ratio_allowed}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjuubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhKhjuubj)}(hhh]h)}(hqTrue, if client can handle picture aspect ratios, and has requested to pass this information along with the mode.h]hqTrue, if client can handle picture aspect ratios, and has requested to pass this information along with the mode.}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhKhjuubah}(h]h ]h"]h$]h&]uh1jhjuubeh}(h]h ]h"]h$]h&]uh1jhjuhKhjktubj)}(hI``writeback_connectors`` True if client understands writeback connectors h](j)}(h``writeback_connectors``h]j)}(hjuh]hwriteback_connectors}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjuubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhKhjuubj)}(hhh]h)}(h/True if client understands writeback connectorsh]h/True if client understands writeback connectors}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjuhKhjuubah}(h]h ]h"]h$]h&]uh1jhjuubeh}(h]h ]h"]h$]h&]uh1jhjuhKhjktubj)}(h``was_master`` This client has or had, master capability. Protected by struct :c:type:`drm_device.master_mutex `. This is used to ensure that CAP_SYS_ADMIN is not enforced, if the client is or was master in the past. h](j)}(h``was_master``h]j)}(hjvh]h was_master}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjvubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhKhj vubj)}(hhh](h)}(hnThis client has or had, master capability. Protected by struct :c:type:`drm_device.master_mutex `.h](h?This client has or had, master capability. Protected by struct }(hj+vhhhNhNubh)}(h.:c:type:`drm_device.master_mutex `h]j)}(hj5vh]hdrm_device.master_mutex}(hj7vhhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhj3vubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjjj drm_deviceuh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhKhj+vubh.}(hj+vhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjRvhKhj(vubh)}(hfThis is used to ensure that CAP_SYS_ADMIN is not enforced, if the client is or was master in the past.h]hfThis is used to ensure that CAP_SYS_ADMIN is not enforced, if the client is or was master in the past.}(hj]vhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhKhj(vubeh}(h]h ]h"]h$]h&]uh1jhj vubeh}(h]h ]h"]h$]h&]uh1jhj'vhKhjktubj)}(h``is_master`` This client is the creator of **master**. Protected by struct :c:type:`drm_device.master_mutex `. See also the :ref:`section on primary nodes and authentication `. h](j)}(h ``is_master``h]j)}(hj~vh]h is_master}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj|vubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhKhjxvubj)}(hhh](h)}(hmThis client is the creator of **master**. Protected by struct :c:type:`drm_device.master_mutex `.h](hThis client is the creator of }(hjvhhhNhNubjZ)}(h **master**h]hmaster}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjvubh. Protected by struct }(hjvhhhNhNubh)}(h.:c:type:`drm_device.master_mutex `h]j)}(hjvh]hdrm_device.master_mutex}(hjvhhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjvubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjjj drm_deviceuh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhKhjvubh.}(hjvhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjvhKhjvubh)}(hSSee also the :ref:`section on primary nodes and authentication `.h](h See also the }(hjvhhhNhNubh)}(hE:ref:`section on primary nodes and authentication `h]j)}(hjvh]h+section on primary nodes and authentication}(hjvhhhNhNubah}(h]h ](j stdstd-refeh"]h$]h&]uh1jhjvubah}(h]h ]h"]h$]h&]refdocj refdomainjvreftyperef refexplicitrefwarnjdrm_primary_nodeuh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhKhjvubh.}(hjvhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjwhKhjvubeh}(h]h ]h"]h$]h&]uh1jhjxvubeh}(h]h ]h"]h$]h&]uh1jhjvhKhjktubj)}(hXL``supports_virtualized_cursor_plane`` This client is capable of handling the cursor plane with the restrictions imposed on it by the virtualized drivers. This implies that the cursor plane has to behave like a cursor i.e. track cursor movement. It also requires setting of the hotspot properties by the client on the cursor plane. h](j)}(h%``supports_virtualized_cursor_plane``h]j)}(hj wh]h!supports_virtualized_cursor_plane}(hj"whhhNhNubah}(h]h ]h"]h$]h&]uh1jhjwubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhKhjwubj)}(hhh](h)}(hsThis client is capable of handling the cursor plane with the restrictions imposed on it by the virtualized drivers.h]hsThis client is capable of handling the cursor plane with the restrictions imposed on it by the virtualized drivers.}(hj9whhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhKhj6wubh)}(hThis implies that the cursor plane has to behave like a cursor i.e. track cursor movement. It also requires setting of the hotspot properties by the client on the cursor plane.h]hThis implies that the cursor plane has to behave like a cursor i.e. track cursor movement. It also requires setting of the hotspot properties by the client on the cursor plane.}(hjHwhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhKhj6wubeh}(h]h ]h"]h$]h&]uh1jhjwubeh}(h]h ]h"]h$]h&]uh1jhj5whKhjktubj)}(hX``master`` Master this node is currently associated with. Protected by struct :c:type:`drm_device.master_mutex `, and serialized by **master_lookup_lock**. Only relevant if drm_is_primary_client() returns true. Note that this only matches :c:type:`drm_device.master ` if the master is the currently active one. To update **master**, both :c:type:`drm_device.master_mutex ` and **master_lookup_lock** need to be held, therefore holding either of them is safe and enough for the read side. When dereferencing this pointer, either hold struct :c:type:`drm_device.master_mutex ` for the duration of the pointer's use, or use drm_file_get_master() if struct :c:type:`drm_device.master_mutex ` is not currently held and there is no other need to hold it. This prevents **master** from being freed during use. See also **authentication** and **is_master** and the :ref:`section on primary nodes and authentication `. h](j)}(h ``master``h]j)}(hjiwh]hmaster}(hjkwhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjgwubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhMhjcwubj)}(hhh](h)}(hMaster this node is currently associated with. Protected by struct :c:type:`drm_device.master_mutex `, and serialized by **master_lookup_lock**.h](hCMaster this node is currently associated with. Protected by struct }(hjwhhhNhNubh)}(h.:c:type:`drm_device.master_mutex `h]j)}(hjwh]hdrm_device.master_mutex}(hjwhhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjwubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjjj drm_deviceuh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhKhjwubh, and serialized by }(hjwhhhNhNubjZ)}(h**master_lookup_lock**h]hmaster_lookup_lock}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjwubh.}(hjwhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjwhKhjwubh)}(hOnly relevant if drm_is_primary_client() returns true. Note that this only matches :c:type:`drm_device.master ` if the master is the currently active one.h](hSOnly relevant if drm_is_primary_client() returns true. Note that this only matches }(hjwhhhNhNubh)}(h(:c:type:`drm_device.master `h]j)}(hjwh]hdrm_device.master}(hjwhhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjwubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjjj drm_deviceuh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhKhjwubh+ if the master is the currently active one.}(hjwhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjwhKhjwubh)}(hTo update **master**, both :c:type:`drm_device.master_mutex ` and **master_lookup_lock** need to be held, therefore holding either of them is safe and enough for the read side.h](h To update }(hjwhhhNhNubjZ)}(h **master**h]hmaster}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjwubh, both }(hjwhhhNhNubh)}(h.:c:type:`drm_device.master_mutex `h]j)}(hjxh]hdrm_device.master_mutex}(hjxhhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjxubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjjj drm_deviceuh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhKhjwubh and }(hjwhhhNhNubjZ)}(h**master_lookup_lock**h]hmaster_lookup_lock}(hj6xhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjwubhX need to be held, therefore holding either of them is safe and enough for the read side.}(hjwhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj1xhKhjwubh)}(hXRWhen dereferencing this pointer, either hold struct :c:type:`drm_device.master_mutex ` for the duration of the pointer's use, or use drm_file_get_master() if struct :c:type:`drm_device.master_mutex ` is not currently held and there is no other need to hold it. This prevents **master** from being freed during use.h](h4When dereferencing this pointer, either hold struct }(hjNxhhhNhNubh)}(h.:c:type:`drm_device.master_mutex `h]j)}(hjXxh]hdrm_device.master_mutex}(hjZxhhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjVxubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjjj drm_deviceuh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhMhjNxubhQ for the duration of the pointer’s use, or use drm_file_get_master() if struct }(hjNxhhhNhNubh)}(h.:c:type:`drm_device.master_mutex `h]j)}(hj|xh]hdrm_device.master_mutex}(hj~xhhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjzxubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjjj drm_deviceuh1hhjuxhMhjNxubhL is not currently held and there is no other need to hold it. This prevents }(hjNxhhhNhNubjZ)}(h **master**h]hmaster}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjNxubh from being freed during use.}(hjNxhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjuxhMhjwubh)}(h|See also **authentication** and **is_master** and the :ref:`section on primary nodes and authentication `.h](h See also }(hjxhhhNhNubjZ)}(h**authentication**h]hauthentication}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjxubh and }(hjxhhhNhNubjZ)}(h **is_master**h]h is_master}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjxubh and the }(hjxhhhNhNubh)}(hE:ref:`section on primary nodes and authentication `h]j)}(hjxh]h+section on primary nodes and authentication}(hjxhhhNhNubah}(h]h ](j stdstd-refeh"]h$]h&]uh1jhjxubah}(h]h ]h"]h$]h&]refdocj refdomainjxreftyperef refexplicitrefwarnjdrm_primary_nodeuh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhMhjxubh.}(hjxhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjyhMhjwubeh}(h]h ]h"]h$]h&]uh1jhjcwubeh}(h]h ]h"]h$]h&]uh1jhj~whMhjktubj)}(h.``master_lookup_lock`` Serializes **master**. h](j)}(h``master_lookup_lock``h]j)}(hjyh]hmaster_lookup_lock}(hj yhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjyubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhM hjyubj)}(hhh]h)}(hSerializes **master**.h](h Serializes }(hj7yhhhNhNubjZ)}(h **master**h]hmaster}(hj?yhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj7yubh.}(hj7yhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj3yhM hj4yubah}(h]h ]h"]h$]h&]uh1jhjyubeh}(h]h ]h"]h$]h&]uh1jhj3yhM hjktubj)}(h``pid`` Process that is using this file. Must only be dereferenced under a rcu_read_lock or equivalent. Updates are guarded with dev->filelist_mutex and reference must be dropped after a RCU grace period to accommodate lockless readers. h](j)}(h``pid``h]j)}(hjiyh]hpid}(hjkyhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjgyubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhMhjcyubj)}(hhh](h)}(h Process that is using this file.h]h Process that is using this file.}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhMhjyubh)}(h>Must only be dereferenced under a rcu_read_lock or equivalent.h]h>Must only be dereferenced under a rcu_read_lock or equivalent.}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhMhjyubh)}(hUpdates are guarded with dev->filelist_mutex and reference must be dropped after a RCU grace period to accommodate lockless readers.h]hUpdates are guarded with dev->filelist_mutex and reference must be dropped after a RCU grace period to accommodate lockless readers.}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhMhjyubeh}(h]h ]h"]h$]h&]uh1jhjcyubeh}(h]h ]h"]h$]h&]uh1jhj~yhMhjktubj)}(h%``client_id`` A unique id for fdinfo h](j)}(h ``client_id``h]j)}(hjyh]h client_id}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjyubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhMhjyubj)}(hhh]h)}(hA unique id for fdinfoh]hA unique id for fdinfo}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjyhMhjyubah}(h]h ]h"]h$]h&]uh1jhjyubeh}(h]h ]h"]h$]h&]uh1jhjyhMhjktubj)}(h7``magic`` Authentication magic, see **authenticated**. h](j)}(h ``magic``h]j)}(hjyh]hmagic}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjyubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhMhjyubj)}(hhh]h)}(h,Authentication magic, see **authenticated**.h](hAuthentication magic, see }(hjzhhhNhNubjZ)}(h**authenticated**h]h authenticated}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjzubh.}(hjzhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjzhMhjzubah}(h]h ]h"]h$]h&]uh1jhjyubeh}(h]h ]h"]h$]h&]uh1jhjzhMhjktubj)}(h``lhead`` List of all open files of a DRM device, linked into :c:type:`drm_device.filelist `. Protected by :c:type:`drm_device.filelist_mutex `. h](j)}(h ``lhead``h]j)}(hjEzh]hlhead}(hjGzhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjCzubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhM"hj?zubj)}(hhh]h)}(hList of all open files of a DRM device, linked into :c:type:`drm_device.filelist `. Protected by :c:type:`drm_device.filelist_mutex `.h](h4List of all open files of a DRM device, linked into }(hj^zhhhNhNubh)}(h*:c:type:`drm_device.filelist `h]j)}(hjhzh]hdrm_device.filelist}(hjjzhhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjfzubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjjj drm_deviceuh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhM!hj^zubh. Protected by }(hj^zhhhNhNubh)}(h0:c:type:`drm_device.filelist_mutex `h]j)}(hjzh]hdrm_device.filelist_mutex}(hjzhhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjzubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjjj drm_deviceuh1hhjzhM!hj^zubh.}(hj^zhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjzhM!hj[zubah}(h]h ]h"]h$]h&]uh1jhj?zubeh}(h]h ]h"]h$]h&]uh1jhjZzhM"hjktubj)}(h@``minor`` :c:type:`struct drm_minor ` for this file. h](j)}(h ``minor``h]j)}(hjzh]hminor}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjzubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhM(hjzubj)}(hhh]h)}(h5:c:type:`struct drm_minor ` for this file.h](h)}(h&:c:type:`struct drm_minor `h]j)}(hjzh]hstruct drm_minor}(hjzhhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjzubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjjj drm_minoruh1hhjzhM(hjzubh for this file.}(hjzhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjzhM(hjzubah}(h]h ]h"]h$]h&]uh1jhjzubeh}(h]h ]h"]h$]h&]uh1jhjzhM(hjktubj)}(h``object_idr`` Mapping of mm object handles to object pointers. Used by the GEM subsystem. Protected by **table_lock**. Note that allocated entries might be NULL as a transient state when creating or deleting a handle. h](j)}(h``object_idr``h]j)}(hj{h]h object_idr}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj{ubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhM0hj{ubj)}(hhh](h)}(hhMapping of mm object handles to object pointers. Used by the GEM subsystem. Protected by **table_lock**.h](hYMapping of mm object handles to object pointers. Used by the GEM subsystem. Protected by }(hj6{hhhNhNubjZ)}(h**table_lock**h]h table_lock}(hj>{hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj6{ubh.}(hj6{hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhM,hj3{ubh)}(hbNote that allocated entries might be NULL as a transient state when creating or deleting a handle.h]hbNote that allocated entries might be NULL as a transient state when creating or deleting a handle.}(hjW{hhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhM/hj3{ubeh}(h]h ]h"]h$]h&]uh1jhj{ubeh}(h]h ]h"]h$]h&]uh1jhj2{hM0hjktubj)}(h(``table_lock`` Protects **object_idr**. h](j)}(h``table_lock``h]j)}(hjx{h]h table_lock}(hjz{hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjv{ubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhM6hjr{ubj)}(hhh]h)}(hProtects **object_idr**.h](h Protects }(hj{hhhNhNubjZ)}(h**object_idr**h]h object_idr}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj{ubh.}(hj{hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj{hM6hj{ubah}(h]h ]h"]h$]h&]uh1jhjr{ubeh}(h]h ]h"]h$]h&]uh1jhj{hM6hjktubj)}(hC``syncobj_idr`` Mapping of sync object handles to object pointers. h](j)}(h``syncobj_idr``h]j)}(hj{h]h syncobj_idr}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj{ubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhM9hj{ubj)}(hhh]h)}(h2Mapping of sync object handles to object pointers.h]h2Mapping of sync object handles to object pointers.}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj{hM9hj{ubah}(h]h ]h"]h$]h&]uh1jhj{ubeh}(h]h ]h"]h$]h&]uh1jhj{hM9hjktubj)}(h1``syncobj_table_lock`` Protects **syncobj_idr**. h](j)}(h``syncobj_table_lock``h]j)}(hj{h]hsyncobj_table_lock}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj{ubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhM;hj{ubj)}(hhh]h)}(hProtects **syncobj_idr**.h](h Protects }(hj|hhhNhNubjZ)}(h**syncobj_idr**h]h syncobj_idr}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj|ubh.}(hj|hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj|hM;hj|ubah}(h]h ]h"]h$]h&]uh1jhj{ubeh}(h]h ]h"]h$]h&]uh1jhj|hM;hjktubj)}(h-``filp`` Pointer to the core file structure. h](j)}(h``filp``h]j)}(hjG|h]hfilp}(hjI|hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjE|ubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhM>hjA|ubj)}(hhh]h)}(h#Pointer to the core file structure.h]h#Pointer to the core file structure.}(hj`|hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj\|hM>hj]|ubah}(h]h ]h"]h$]h&]uh1jhjA|ubeh}(h]h ]h"]h$]h&]uh1jhj\|hM>hjktubj)}(h``driver_priv`` Optional pointer for driver private data. Can be allocated in :c:type:`drm_driver.open ` and should be freed in :c:type:`drm_driver.postclose `. h](j)}(h``driver_priv``h]j)}(hj|h]h driver_priv}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj~|ubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhMChjz|ubj)}(hhh]h)}(hOptional pointer for driver private data. Can be allocated in :c:type:`drm_driver.open ` and should be freed in :c:type:`drm_driver.postclose `.h](h>Optional pointer for driver private data. Can be allocated in }(hj|hhhNhNubh)}(h&:c:type:`drm_driver.open `h]j)}(hj|h]hdrm_driver.open}(hj|hhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhj|ubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjjj drm_driveruh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhMBhj|ubh and should be freed in }(hj|hhhNhNubh)}(h+:c:type:`drm_driver.postclose `h]j)}(hj|h]hdrm_driver.postclose}(hj|hhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhj|ubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjjj drm_driveruh1hhj|hMBhj|ubh.}(hj|hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj|hMBhj|ubah}(h]h ]h"]h$]h&]uh1jhjz|ubeh}(h]h ]h"]h$]h&]uh1jhj|hMChjktubj)}(hX2``fbs`` List of :c:type:`struct drm_framebuffer ` associated with this file, using the :c:type:`drm_framebuffer.filp_head ` entry. Protected by **fbs_lock**. Note that the **fbs** list holds a reference on the framebuffer object to prevent it from untimely disappearing. h](j)}(h``fbs``h]j)}(hj}h]hfbs}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj|ubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhMNhj|ubj)}(hhh](h)}(hList of :c:type:`struct drm_framebuffer ` associated with this file, using the :c:type:`drm_framebuffer.filp_head ` entry.h](hList of }(hj}hhhNhNubh)}(h2:c:type:`struct drm_framebuffer `h]j)}(hj#}h]hstruct drm_framebuffer}(hj%}hhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhj!}ubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjjjdrm_framebufferuh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhMJhj}ubh& associated with this file, using the }(hj}hhhNhNubh)}(h5:c:type:`drm_framebuffer.filp_head `h]j)}(hjG}h]hdrm_framebuffer.filp_head}(hjI}hhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjE}ubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjjjdrm_framebufferuh1hhj@}hMJhj}ubh entry.}(hj}hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj@}hMJhj}ubh)}(hProtected by **fbs_lock**. Note that the **fbs** list holds a reference on the framebuffer object to prevent it from untimely disappearing.h](h Protected by }(hjn}hhhNhNubjZ)}(h **fbs_lock**h]hfbs_lock}(hjv}hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjn}ubh. Note that the }(hjn}hhhNhNubjZ)}(h**fbs**h]hfbs}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjn}ubh[ list holds a reference on the framebuffer object to prevent it from untimely disappearing.}(hjn}hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhMMhj}ubeh}(h]h ]h"]h$]h&]uh1jhj|ubeh}(h]h ]h"]h$]h&]uh1jhj}hMNhjktubj)}(h``fbs_lock`` Protects **fbs**. h](j)}(h ``fbs_lock``h]j)}(hj}h]hfbs_lock}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj}ubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhMThj}ubj)}(hhh]h)}(hProtects **fbs**.h](h Protects }(hj}hhhNhNubjZ)}(h**fbs**h]hfbs}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj}ubh.}(hj}hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj}hMThj}ubah}(h]h ]h"]h$]h&]uh1jhj}ubeh}(h]h ]h"]h$]h&]uh1jhj}hMThjktubj)}(h``blobs`` User-created blob properties; this retains a reference on the property. Protected by **drm_mode_config.blob_lock**; h](j)}(h ``blobs``h]j)}(hj}h]hblobs}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj}ubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhM[hj}ubj)}(hhh](h)}(hGUser-created blob properties; this retains a reference on the property.h]hGUser-created blob properties; this retains a reference on the property.}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhMXhj~ubh)}(h+Protected by **drm_mode_config.blob_lock**;h](h Protected by }(hj&~hhhNhNubjZ)}(h**drm_mode_config.blob_lock**h]hdrm_mode_config.blob_lock}(hj.~hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj&~ubh;}(hj&~hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj~hM[hj~ubeh}(h]h ]h"]h$]h&]uh1jhj}ubeh}(h]h ]h"]h$]h&]uh1jhj~hM[hjktubj)}(hA``event_wait`` Waitqueue for new events added to **event_list**. h](j)}(h``event_wait``h]j)}(hjX~h]h event_wait}(hjZ~hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjV~ubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhMahjR~ubj)}(hhh]h)}(h1Waitqueue for new events added to **event_list**.h](h"Waitqueue for new events added to }(hjq~hhhNhNubjZ)}(h**event_list**h]h event_list}(hjy~hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjq~ubh.}(hjq~hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjm~hMahjn~ubah}(h]h ]h"]h$]h&]uh1jhjR~ubeh}(h]h ]h"]h$]h&]uh1jhjm~hMahjktubj)}(hXC``pending_event_list`` List of pending :c:type:`struct drm_pending_event `, used to clean up pending events in case this file gets closed before the event is signalled. Uses the :c:type:`drm_pending_event.pending_link ` entry. Protect by :c:type:`drm_device.event_lock `. h](j)}(h``pending_event_list``h]j)}(hj~h]hpending_event_list}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj~ubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhMihj~ubj)}(hhh](h)}(hList of pending :c:type:`struct drm_pending_event `, used to clean up pending events in case this file gets closed before the event is signalled. Uses the :c:type:`drm_pending_event.pending_link ` entry.h](hList of pending }(hj~hhhNhNubh)}(h6:c:type:`struct drm_pending_event `h]j)}(hj~h]hstruct drm_pending_event}(hj~hhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhj~ubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjjjdrm_pending_eventuh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhMehj~ubhh, used to clean up pending events in case this file gets closed before the event is signalled. Uses the }(hj~hhhNhNubh)}(h<:c:type:`drm_pending_event.pending_link `h]j)}(hj~h]hdrm_pending_event.pending_link}(hj~hhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhj~ubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjjjdrm_pending_eventuh1hhj~hMehj~ubh entry.}(hj~hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj~hMehj~ubh)}(h8Protect by :c:type:`drm_device.event_lock `.h](h Protect by }(hjhhhNhNubh)}(h,:c:type:`drm_device.event_lock `h]j)}(hjh]hdrm_device.event_lock}(hjhhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjjj drm_deviceuh1hhj~hMihjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj~hMihj~ubeh}(h]h ]h"]h$]h&]uh1jhj~ubeh}(h]h ]h"]h$]h&]uh1jhj~hMihjktubj)}(hX``event_list`` List of :c:type:`struct drm_pending_event `, ready for delivery to userspace through drm_read(). Uses the :c:type:`drm_pending_event.link ` entry. Protect by :c:type:`drm_device.event_lock `. h](j)}(h``event_list``h]j)}(hjTh]h event_list}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjRubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhMshjNubj)}(hhh](h)}(hList of :c:type:`struct drm_pending_event `, ready for delivery to userspace through drm_read(). Uses the :c:type:`drm_pending_event.link ` entry.h](hList of }(hjmhhhNhNubh)}(h6:c:type:`struct drm_pending_event `h]j)}(hjwh]hstruct drm_pending_event}(hjyhhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjuubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjjjdrm_pending_eventuh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhMphjmubh?, ready for delivery to userspace through drm_read(). Uses the }(hjmhhhNhNubh)}(h4:c:type:`drm_pending_event.link `h]j)}(hjh]hdrm_pending_event.link}(hjhhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjjjdrm_pending_eventuh1hhjhMphjmubh entry.}(hjmhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMphjjubh)}(h8Protect by :c:type:`drm_device.event_lock `.h](h Protect by }(hjhhhNhNubh)}(h,:c:type:`drm_device.event_lock `h]j)}(hjh]hdrm_device.event_lock}(hjhhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjjj drm_deviceuh1hhjihMshjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjihMshjjubeh}(h]h ]h"]h$]h&]uh1jhjNubeh}(h]h ]h"]h$]h&]uh1jhjihMshjktubj)}(h``event_space`` Available event space to prevent userspace from exhausting kernel memory. Currently limited to the fairly arbitrary value of 4KB. h](j)}(h``event_space``h]j)}(hjh]h event_space}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhM|hjubj)}(hhh]h)}(hAvailable event space to prevent userspace from exhausting kernel memory. Currently limited to the fairly arbitrary value of 4KB.h]hAvailable event space to prevent userspace from exhausting kernel memory. Currently limited to the fairly arbitrary value of 4KB.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhMzhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM|hjktubj)}(h+``event_read_lock`` Serializes drm_read(). h](j)}(h``event_read_lock``h]j)}(hj?h]hevent_read_lock}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj=ubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhMhj9ubj)}(hhh]h)}(hSerializes drm_read().h]hSerializes drm_read().}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjThMhjUubah}(h]h ]h"]h$]h&]uh1jhj9ubeh}(h]h ]h"]h$]h&]uh1jhjThMhjktubj)}(hH``prime`` Per-file buffer caches used by the PRIME buffer sharing code. h](j)}(h ``prime``h]j)}(hjxh]hprime}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjvubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhMhjrubj)}(hhh]h)}(h=Per-file buffer caches used by the PRIME buffer sharing code.h]h=Per-file buffer caches used by the PRIME buffer sharing code.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjrubeh}(h]h ]h"]h$]h&]uh1jhjhMhjktubj)}(hN``client_name`` Userspace-provided name; useful for accounting and debugging. h](j)}(h``client_name``h]j)}(hjh]h client_name}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhMhjubj)}(hhh]h)}(h=Userspace-provided name; useful for accounting and debugging.h]h=Userspace-provided name; useful for accounting and debugging.}(hjʀhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjƀhMhjǀubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjƀhMhjktubj)}(h/``client_name_lock`` Protects **client_name**. h](j)}(h``client_name_lock``h]j)}(hjh]hclient_name_lock}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhMhjubj)}(hhh]h)}(hProtects **client_name**.h](h Protects }(hjhhhNhNubjZ)}(h**client_name**h]h client_name}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjktubj)}(hF``debugfs_client`` debugfs directory for each client under a drm node.h](j)}(h``debugfs_client``h]j)}(hj5h]hdebugfs_client}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3ubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhMhj/ubj)}(hhh]h)}(h3debugfs directory for each client under a drm node.h]h3debugfs directory for each client under a drm node.}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhMhjKubah}(h]h ]h"]h$]h&]uh1jhj/ubeh}(h]h ]h"]h$]h&]uh1jhjJhMhjktubeh}(h]h ]h"]h$]h&]uh1jhj#tubeh}(h]h ] kernelindentah"]h$]h&]uh1jOhjGmhhhjnhNubh)}(h**Description**h]jZ)}(hjxh]h Description}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjvubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhMhjGmhhubh)}(h9This structure tracks DRM state per open file descriptor.h]h9This structure tracks DRM state per open file descriptor.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhKhjGmhhubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j"drm_is_primary_client (C function)c.drm_is_primary_clienthNtauh1jhjGmhhhjnhNubj)}(hhh](j)}(h=bool drm_is_primary_client (const struct drm_file *file_priv)h]j)}(h` of **file_priv** is a primary minor. See also the :ref:`section on primary nodes and authentication `.h](h)}(h**Parameters**h]jZ)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhMhjubj)}(hhh]j)}(h.``const struct drm_file *file_priv`` DRM file h](j)}(h$``const struct drm_file *file_priv``h]j)}(hjтh]h const struct drm_file *file_priv}(hjӂhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjςubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhMhj˂ubj)}(hhh]h)}(hDRM fileh]hDRM file}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhj˂ubeh}(h]h ]h"]h$]h&]uh1jhjhMhjȂubah}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]jZ)}(hj h]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj ubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhMhjubh)}(hReturns true if this is an open file of the primary node, i.e. :c:type:`drm_file.minor ` of **file_priv** is a primary minor.h](h?Returns true if this is an open file of the primary node, i.e. }(hj"hhhNhNubh)}(h#:c:type:`drm_file.minor `h]j)}(hj,h]hdrm_file.minor}(hj.hhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhj*ubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjjjdrm_fileuh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhMhj"ubh of }(hj"hhhNhNubjZ)}(h **file_priv**h]h file_priv}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj"ubh is a primary minor.}(hj"hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjIhMhjubh)}(hSSee also the :ref:`section on primary nodes and authentication `.h](h See also the }(hjfhhhNhNubh)}(hE:ref:`section on primary nodes and authentication `h]j)}(hjph]h+section on primary nodes and authentication}(hjrhhhNhNubah}(h]h ](j stdstd-refeh"]h$]h&]uh1jhjnubah}(h]h ]h"]h$]h&]refdocj refdomainj|reftyperef refexplicitrefwarnjdrm_primary_nodeuh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhMhjfubh.}(hjfhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jOhjGmhhhjnhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j!drm_is_render_client (C function)c.drm_is_render_clienthNtauh1jhjGmhhhjnhNubj)}(hhh](j)}(h` of **file_priv** is a render minor. See also the :ref:`section on render nodes `.h](h)}(h**Parameters**h]jZ)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhMhjubj)}(hhh]j)}(h.``const struct drm_file *file_priv`` DRM file h](j)}(h$``const struct drm_file *file_priv``h]j)}(hjԄh]h const struct drm_file *file_priv}(hjքhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj҄ubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhMhj΄ubj)}(hhh]h)}(hDRM fileh]hDRM file}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhj΄ubeh}(h]h ]h"]h$]h&]uh1jhjhMhj˄ubah}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]jZ)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj ubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhMhjubh)}(hReturns true if this is an open file of the render node, i.e. :c:type:`drm_file.minor ` of **file_priv** is a render minor.h](h>Returns true if this is an open file of the render node, i.e. }(hj%hhhNhNubh)}(h#:c:type:`drm_file.minor `h]j)}(hj/h]hdrm_file.minor}(hj1hhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhj-ubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjjjdrm_fileuh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhMhj%ubh of }(hj%hhhNhNubjZ)}(h **file_priv**h]h file_priv}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj%ubh is a render minor.}(hj%hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjLhMhjubh)}(h>See also the :ref:`section on render nodes `.h](h See also the }(hjihhhNhNubh)}(h0:ref:`section on render nodes `h]j)}(hjsh]hsection on render nodes}(hjuhhhNhNubah}(h]h ](j stdstd-refeh"]h$]h&]uh1jhjqubah}(h]h ]h"]h$]h&]refdocj refdomainjreftyperef refexplicitrefwarnjdrm_render_nodeuh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhMhjiubh.}(hjihhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jOhjGmhhhjnhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j drm_is_accel_client (C function)c.drm_is_accel_clienthNtauh1jhjGmhhhjnhNubj)}(hhh](j)}(h;bool drm_is_accel_client (const struct drm_file *file_priv)h]j)}(h:bool drm_is_accel_client(const struct drm_file *file_priv)h](ja()}(hjd(h]hbool}(hjhhhNhNubah}(h]h ]jm(ah"]h$]h&]uh1j`(hjhhhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhMubj)}(h h]h }(hjʅhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjɅhMubj)}(hdrm_is_accel_clienth]j)}(hdrm_is_accel_clienth]hdrm_is_accel_client}(hj܅hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj؅ubah}(h]h ](jjeh"]h$]h&]jAjBuh1jhjhhhjɅhMubjt)}(h"(const struct drm_file *file_priv)h]jz)}(h const struct drm_file *file_privh](j)}(hj1*h]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hdrm_fileh]hdrm_file}(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.ubah}(h]h ]h"]h$]h&] refdomainj reftypej/ reftargetj3modnameN classnameNjj)}j]j7)}j/jޅsbc.drm_is_accel_clientasbuh1hhjubj)}(h h]h }(hjQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjL)}(hjOh]h*}(hj_hhhNhNubah}(h]h ]jXah"]h$]h&]uh1jKhjubj)}(h file_privh]h file_priv}(hjlhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjAjBuh1jyhjubah}(h]h ]h"]h$]h&]jAjBuh1jshjhhhjɅhMubeh}(h]h ]h"]h$]h&]jAjBjuh1jjjhjhhhjɅhMubah}(h]jah ](j j!eh"]h$]h&]j%j&)j'huh1jhjɅhMhjhhubj))}(hhh]h)}(h5is this an open file of the compute acceleration nodeh]h5is this an open file of the compute acceleration node}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhMhjhhubah}(h]h ]h"]h$]h&]uh1j(hjhhhjɅhMubeh}(h]h ](j functioneh"]h$]h&]jIj jJjjKjjLjMjNuh1jhhhjGmhjnhNubjP)}(hX;**Parameters** ``const struct drm_file *file_priv`` DRM file **Description** Returns true if this is an open file of the compute acceleration node, i.e. :c:type:`drm_file.minor ` of **file_priv** is a accel minor. See also :doc:`Introduction to compute accelerators subsystem `.h](h)}(h**Parameters**h]jZ)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhMhjubj)}(hhh]j)}(h.``const struct drm_file *file_priv`` DRM file h](j)}(h$``const struct drm_file *file_priv``h]j)}(hj׆h]h const struct drm_file *file_priv}(hjنhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjՆubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhMhjцubj)}(hhh]h)}(hDRM fileh]hDRM file}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjцubeh}(h]h ]h"]h$]h&]uh1jhjhMhjΆubah}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]jZ)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhMhjubh)}(hReturns true if this is an open file of the compute acceleration node, i.e. :c:type:`drm_file.minor ` of **file_priv** is a accel minor.h](hLReturns true if this is an open file of the compute acceleration node, i.e. }(hj(hhhNhNubh)}(h#:c:type:`drm_file.minor `h]j)}(hj2h]hdrm_file.minor}(hj4hhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhj0ubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjjjdrm_fileuh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhMhj(ubh of }(hj(hhhNhNubjZ)}(h **file_priv**h]h file_priv}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj(ubh is a accel minor.}(hj(hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjOhMhjubh)}(hUSee also :doc:`Introduction to compute accelerators subsystem `.h](h See also }(hjlhhhNhNubh)}(hK:doc:`Introduction to compute accelerators subsystem `h]j)}(hjvh]h.Introduction to compute accelerators subsystem}(hjxhhhNhNubah}(h]h ](j stdstd-doceh"]h$]h&]uh1jhjtubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypedoc refexplicitrefwarnj/accel/introductionuh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhMhjlubh.}(hjlhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jOhjGmhhhjnhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jdrm_memory_stats (C struct)c.drm_memory_statshNtauh1jhjGmhhhjnhNubj)}(hhh](j)}(hdrm_memory_statsh]j)}(hstruct drm_memory_statsh](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhMubj)}(h h]h }(hj͇hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhj̇hMubj)}(hdrm_memory_statsh]j)}(hjh]hdrm_memory_stats}(hj߇hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjۇubah}(h]h ](jjeh"]h$]h&]jAjBuh1jhjhhhj̇hMubeh}(h]h ]h"]h$]h&]jAjBjuh1jjjhjhhhj̇hMubah}(h]jah ](j j!eh"]h$]h&]j%j&)j'huh1jhj̇hMhjhhubj))}(hhh]h)}(hGEM object stats associatedh]hGEM object stats associated}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhMhjhhubah}(h]h ]h"]h$]h&]uh1j(hjhhhj̇hMubeh}(h]h ](j structeh"]h$]h&]jIj jJjjKjjLjMjNuh1jhhhjGmhjnhNubjP)}(hX**Definition**:: struct drm_memory_stats { u64 shared; u64 private; u64 resident; u64 purgeable; u64 active; }; **Members** ``shared`` Total size of GEM objects shared between processes ``private`` Total size of GEM objects ``resident`` Total size of GEM objects backing pages ``purgeable`` Total size of GEM objects that can be purged (resident and not active) ``active`` Total size of GEM objects active on one or more enginesh](h)}(h**Definition**::h](jZ)}(h**Definition**h]h Definition}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj!ubh:}(hj!hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhMhjubj2)}(hrstruct drm_memory_stats { u64 shared; u64 private; u64 resident; u64 purgeable; u64 active; };h]hrstruct drm_memory_stats { u64 shared; u64 private; u64 resident; u64 purgeable; u64 active; };}hj>sbah}(h]h ]h"]h$]h&]jAjBuh1j1hY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhMhjubh)}(h **Members**h]jZ)}(hjOh]hMembers}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjMubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhMhjubj)}(hhh](j)}(h>``shared`` Total size of GEM objects shared between processes h](j)}(h ``shared``h]j)}(hjnh]hshared}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jhjlubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhMhjhubj)}(hhh]h)}(h2Total size of GEM objects shared between processesh]h2Total size of GEM objects shared between processes}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjhubeh}(h]h ]h"]h$]h&]uh1jhjhMhjeubj)}(h&``private`` Total size of GEM objects h](j)}(h ``private``h]j)}(hjh]hprivate}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhMhjubj)}(hhh]h)}(hTotal size of GEM objectsh]hTotal size of GEM objects}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjeubj)}(h5``resident`` Total size of GEM objects backing pages h](j)}(h ``resident``h]j)}(hjh]hresident}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjވubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhMhjڈubj)}(hhh]h)}(h'Total size of GEM objects backing pagesh]h'Total size of GEM objects backing pages}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjڈubeh}(h]h ]h"]h$]h&]uh1jhjhMhjeubj)}(hU``purgeable`` Total size of GEM objects that can be purged (resident and not active) h](j)}(h ``purgeable``h]j)}(hjh]h purgeable}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhMhjubj)}(hhh]h)}(hFTotal size of GEM objects that can be purged (resident and not active)h]hFTotal size of GEM objects that can be purged (resident and not active)}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj.hMhj/ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj.hMhjeubj)}(hB``active`` Total size of GEM objects active on one or more enginesh](j)}(h ``active``h]j)}(hjRh]hactive}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1jhjPubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhMhjLubj)}(hhh]h)}(h7Total size of GEM objects active on one or more enginesh]h7Total size of GEM objects active on one or more engines}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhMhjhubah}(h]h ]h"]h$]h&]uh1jhjLubeh}(h]h ]h"]h$]h&]uh1jhjghMhjeubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jOhjGmhhhjnhNubh)}(h**Description**h]jZ)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhMhjGmhhubh)}(h Used by drm_print_memory_stats()h]h Used by drm_print_memory_stats()}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhMhjGmhhubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jdrm_open (C function) c.drm_openhNtauh1jhjGmhhhNhNubj)}(hhh](j)}(h5int drm_open (struct inode *inode, struct file *filp)h]j)}(h4int drm_open(struct inode *inode, struct file *filp)h](ja()}(hinth]hint}(hjӉhhhNhNubah}(h]h ]jm(ah"]h$]h&]uh1j`(hjωhhh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chMfubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjωhhhjhMfubj)}(hdrm_openh]j)}(hdrm_openh]hdrm_open}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jAjBuh1jhjωhhhjhMfubjt)}(h((struct inode *inode, struct file *filp)h](jz)}(hstruct inode *inodeh](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubh)}(hhh]j)}(hinodeh]hinode}(hj.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj+ubah}(h]h ]h"]h$]h&] refdomainj reftypej/ reftargetj0modnameN classnameNjj)}j]j7)}j/jsb c.drm_openasbuh1hhj ubj)}(h h]h }(hjNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubjL)}(hjOh]h*}(hj\hhhNhNubah}(h]h ]jXah"]h$]h&]uh1jKhj ubj)}(hinodeh]hinode}(hjihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphjAjBuh1jyhjubjz)}(hstruct file *filph](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~ubh)}(hhh]j)}(hfileh]hfile}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj reftypej/ reftargetjmodnameN classnameNjj)}j]jJ c.drm_openasbuh1hhj~ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~ubjL)}(hjOh]h*}(hj̊hhhNhNubah}(h]h ]jXah"]h$]h&]uh1jKhj~ubj)}(hfilph]hfilp}(hjيhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~ubeh}(h]h ]h"]h$]h&]noemphjAjBuh1jyhjubeh}(h]h ]h"]h$]h&]jAjBuh1jshjωhhhjhMfubeh}(h]h ]h"]h$]h&]jAjBjuh1jjjhjˉhhhjhMfubah}(h]jƉah ](j j!eh"]h$]h&]j%j&)j'huh1jhjhMfhjȉhhubj))}(hhh]h)}(hopen method for DRM fileh]hopen method for DRM file}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chMfhjhhubah}(h]h ]h"]h$]h&]uh1j(hjȉhhhjhMfubeh}(h]h ](j functioneh"]h$]h&]jIj jJjjKjjLjMjNuh1jhhhjGmhNhNubjP)}(hX**Parameters** ``struct inode *inode`` device inode ``struct file *filp`` file pointer. **Description** This function must be used by drivers as their :c:type:`file_operations.open ` method. It looks up the correct DRM device and instantiates all the per-file resources for it. It also calls the :c:type:`drm_driver.open ` driver callback. **Return** 0 on success or negative errno value on failure.h](h)}(h**Parameters**h]jZ)}(hj%h]h Parameters}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj#ubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chMjhjubj)}(hhh](j)}(h%``struct inode *inode`` device inode h](j)}(h``struct inode *inode``h]j)}(hjDh]hstruct inode *inode}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjBubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chMghj>ubj)}(hhh]h)}(h device inodeh]h device inode}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjYhMghjZubah}(h]h ]h"]h$]h&]uh1jhj>ubeh}(h]h ]h"]h$]h&]uh1jhjYhMghj;ubj)}(h$``struct file *filp`` file pointer. h](j)}(h``struct file *filp``h]j)}(hj}h]hstruct file *filp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj{ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chMhhjwubj)}(hhh]h)}(h file pointer.h]h file pointer.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhhjubah}(h]h ]h"]h$]h&]uh1jhjwubeh}(h]h ]h"]h$]h&]uh1jhjhMhhj;ubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]jZ)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chMjhjubh)}(hXThis function must be used by drivers as their :c:type:`file_operations.open ` method. It looks up the correct DRM device and instantiates all the per-file resources for it. It also calls the :c:type:`drm_driver.open ` driver callback.h](h/This function must be used by drivers as their }(hj΋hhhNhNubh)}(h0:c:type:`file_operations.open `h]j)}(hj؋h]hfile_operations.open}(hjڋhhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhj֋ubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjjjfile_operationsuh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chMihj΋ubhr method. It looks up the correct DRM device and instantiates all the per-file resources for it. It also calls the }(hj΋hhhNhNubh)}(h&:c:type:`drm_driver.open `h]j)}(hjh]hdrm_driver.open}(hjhhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjjj drm_driveruh1hhjhMihj΋ubh driver callback.}(hj΋hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMihjubh)}(h **Return**h]jZ)}(hj%h]hReturn}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj#ubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chMmhjubh)}(h00 on success or negative errno value on failure.h]h00 on success or negative errno value on failure.}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chMnhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jOhjGmhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jdrm_release (C function) c.drm_releasehNtauh1jhjGmhhhNhNubj)}(hhh](j)}(h8int drm_release (struct inode *inode, struct file *filp)h]j)}(h7int drm_release(struct inode *inode, struct file *filp)h](ja()}(hinth]hint}(hjjhhhNhNubah}(h]h ]jm(ah"]h$]h&]uh1j`(hjfhhh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chMubj)}(h h]h }(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfhhhjxhMubj)}(h drm_releaseh]j)}(h drm_releaseh]h drm_release}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jAjBuh1jhjfhhhjxhMubjt)}(h((struct inode *inode, struct file *filp)h](jz)}(hstruct inode *inodeh](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hinodeh]hinode}(hjŌhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjŒubah}(h]h ]h"]h$]h&] refdomainj reftypej/ reftargetjnjmodnameN classnameNjj)}j]j7)}j/jsb c.drm_releaseasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjL)}(hjOh]h*}(hjhhhNhNubah}(h]h ]jXah"]h$]h&]uh1jKhjubj)}(hinodeh]hinode}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjAjBuh1jyhjubjz)}(hstruct file *filph](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hj&hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hfileh]hfile}(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4ubah}(h]h ]h"]h$]h&] refdomainj reftypej/ reftargetj9modnameN classnameNjj)}j]j c.drm_releaseasbuh1hhjubj)}(h h]h }(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjL)}(hjOh]h*}(hjchhhNhNubah}(h]h ]jXah"]h$]h&]uh1jKhjubj)}(hfilph]hfilp}(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjAjBuh1jyhjubeh}(h]h ]h"]h$]h&]jAjBuh1jshjfhhhjxhMubeh}(h]h ]h"]h$]h&]jAjBjuh1jjjhjbhhhjxhMubah}(h]j]ah ](j j!eh"]h$]h&]j%j&)j'huh1jhjxhMhj_hhubj))}(hhh]h)}(hrelease method for DRM fileh]hrelease method for DRM file}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chMhjhhubah}(h]h ]h"]h$]h&]uh1j(hj_hhhjxhMubeh}(h]h ](j functioneh"]h$]h&]jIj jJjjKjjLjMjNuh1jhhhjGmhNhNubjP)}(hX**Parameters** ``struct inode *inode`` device inode ``struct file *filp`` file pointer. **Description** This function must be used by drivers as their :c:type:`file_operations.release ` method. It frees any resources associated with the open file. If this is the last open file for the DRM device, it also restores the active in-kernel DRM client. **Return** Always succeeds and returns 0.h](h)}(h**Parameters**h]jZ)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chMhjubj)}(hhh](j)}(h%``struct inode *inode`` device inode h](j)}(h``struct inode *inode``h]j)}(hjۍh]hstruct inode *inode}(hjݍhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjٍubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chMhjՍubj)}(hhh]h)}(h device inodeh]h device inode}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjՍubeh}(h]h ]h"]h$]h&]uh1jhjhMhjҍubj)}(h$``struct file *filp`` file pointer. h](j)}(h``struct file *filp``h]j)}(hjh]hstruct file *filp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chMhjubj)}(hhh]h)}(h file pointer.h]h file pointer.}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj)hMhj*ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj)hMhjҍubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]jZ)}(hjOh]h Description}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjMubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chMhjubh)}(hXThis function must be used by drivers as their :c:type:`file_operations.release ` method. It frees any resources associated with the open file. If this is the last open file for the DRM device, it also restores the active in-kernel DRM client.h](h/This function must be used by drivers as their }(hjehhhNhNubh)}(h3:c:type:`file_operations.release `h]j)}(hjoh]hfile_operations.release}(hjqhhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjmubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjjjfile_operationsuh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chMhjeubh method. It frees any resources associated with the open file. If this is the last open file for the DRM device, it also restores the active in-kernel DRM client.}(hjehhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMhjubh)}(h **Return**h]jZ)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chMhjubh)}(hAlways succeeds and returns 0.h]hAlways succeeds and returns 0.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jOhjGmhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j!drm_release_noglobal (C function)c.drm_release_noglobalhNtauh1jhjGmhhhNhNubj)}(hhh](j)}(hAint drm_release_noglobal (struct inode *inode, struct file *filp)h]j)}(h@int drm_release_noglobal(struct inode *inode, struct file *filp)h](ja()}(hinth]hint}(hjގhhhNhNubah}(h]h ]jm(ah"]h$]h&]uh1j`(hjڎhhh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjڎhhhjhMubj)}(hdrm_release_noglobalh]j)}(hdrm_release_noglobalh]hdrm_release_noglobal}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jAjBuh1jhjڎhhhjhMubjt)}(h((struct inode *inode, struct file *filp)h](jz)}(hstruct inode *inodeh](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hj(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hinodeh]hinode}(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6ubah}(h]h ]h"]h$]h&] refdomainj reftypej/ reftargetj;modnameN classnameNjj)}j]j7)}j/jsbc.drm_release_noglobalasbuh1hhjubj)}(h h]h }(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjL)}(hjOh]h*}(hjghhhNhNubah}(h]h ]jXah"]h$]h&]uh1jKhjubj)}(hinodeh]hinode}(hjthhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjAjBuh1jyhjubjz)}(hstruct file *filph](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hfileh]hfile}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj reftypej/ reftargetjmodnameN classnameNjj)}j]jUc.drm_release_noglobalasbuh1hhjubj)}(h h]h }(hjɏhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjL)}(hjOh]h*}(hj׏hhhNhNubah}(h]h ]jXah"]h$]h&]uh1jKhjubj)}(hfilph]hfilp}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjAjBuh1jyhjubeh}(h]h ]h"]h$]h&]jAjBuh1jshjڎhhhjhMubeh}(h]h ]h"]h$]h&]jAjBjuh1jjjhj֎hhhjhMubah}(h]jюah ](j j!eh"]h$]h&]j%j&)j'huh1jhjhMhjӎhhubj))}(hhh]h)}(hrelease method for DRM fileh]hrelease method for DRM file}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chMhj hhubah}(h]h ]h"]h$]h&]uh1j(hjӎhhhjhMubeh}(h]h ](j functioneh"]h$]h&]jIj jJj&jKj&jLjMjNuh1jhhhjGmhNhNubjP)}(hX**Parameters** ``struct inode *inode`` device inode ``struct file *filp`` file pointer. **Description** This function may be used by drivers as their :c:type:`file_operations.release ` method. It frees any resources associated with the open file prior to taking the drm_global_mutex. If this is the last open file for the DRM device, it then restores the active in-kernel DRM client. **Return** Always succeeds and returns 0.h](h)}(h**Parameters**h]jZ)}(hj0h]h Parameters}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj.ubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chMhj*ubj)}(hhh](j)}(h%``struct inode *inode`` device inode h](j)}(h``struct inode *inode``h]j)}(hjOh]hstruct inode *inode}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjMubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chMhjIubj)}(hhh]h)}(h device inodeh]h device inode}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjdhMhjeubah}(h]h ]h"]h$]h&]uh1jhjIubeh}(h]h ]h"]h$]h&]uh1jhjdhMhjFubj)}(h$``struct file *filp`` file pointer. h](j)}(h``struct file *filp``h]j)}(hjh]hstruct file *filp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chMhjubj)}(hhh]h)}(h file pointer.h]h file pointer.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjFubeh}(h]h ]h"]h$]h&]uh1jhj*ubh)}(h**Description**h]jZ)}(hjÐh]h Description}(hjŐhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chMhj*ubh)}(hX(This function may be used by drivers as their :c:type:`file_operations.release ` method. It frees any resources associated with the open file prior to taking the drm_global_mutex. If this is the last open file for the DRM device, it then restores the active in-kernel DRM client.h](h.This function may be used by drivers as their }(hjِhhhNhNubh)}(h3:c:type:`file_operations.release `h]j)}(hjh]hfile_operations.release}(hjhhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjjjfile_operationsuh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chMhjِubh method. It frees any resources associated with the open file prior to taking the drm_global_mutex. If this is the last open file for the DRM device, it then restores the active in-kernel DRM client.}(hjِhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMhj*ubh)}(h **Return**h]jZ)}(hj h]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj ubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chMhj*ubh)}(hAlways succeeds and returns 0.h]hAlways succeeds and returns 0.}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chMhj*ubeh}(h]h ] kernelindentah"]h$]h&]uh1jOhjGmhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jdrm_read (C function) c.drm_readhNtauh1jhjGmhhhNhNubj)}(hhh](j)}(hWssize_t drm_read (struct file *filp, char __user *buffer, size_t count, loff_t *offset)h]j)}(hVssize_t drm_read(struct file *filp, char __user *buffer, size_t count, loff_t *offset)h](h)}(hhh]j)}(hssize_th]hssize_t}(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRubah}(h]h ]h"]h$]h&] refdomainj reftypej/ reftargetjWmodnameN classnameNjj)}j]j7)}j/drm_readsb c.drm_readasbuh1hhjNhhh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chMubj)}(h h]h }(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNhhhjvhMubj)}(hdrm_readh]j)}(hjsh]hdrm_read}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jAjBuh1jhjNhhhjvhMubjt)}(hF(struct file *filp, char __user *buffer, size_t count, loff_t *offset)h](jz)}(hstruct file *filph](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hfileh]hfile}(hj‘hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj reftypej/ reftargetjđmodnameN classnameNjj)}j]jq c.drm_readasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjL)}(hjOh]h*}(hjhhhNhNubah}(h]h ]jXah"]h$]h&]uh1jKhjubj)}(hfilph]hfilp}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjAjBuh1jyhjubjz)}(hchar __user *bufferh](ja()}(hcharh]hchar}(hjhhhNhNubah}(h]h ]jm(ah"]h$]h&]uh1j`(hjubj)}(h h]h }(hj"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh__user}(hjhhhNhNubj)}(h h]h }(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjL)}(hjOh]h*}(hjBhhhNhNubah}(h]h ]jXah"]h$]h&]uh1jKhjubj)}(hbufferh]hbuffer}(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjAjBuh1jyhjubjz)}(h size_t counth](h)}(hhh]j)}(hsize_th]hsize_t}(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhubah}(h]h ]h"]h$]h&] refdomainj reftypej/ reftargetjmmodnameN classnameNjj)}j]jq c.drm_readasbuh1hhjdubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdubj)}(hcounth]hcount}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdubeh}(h]h ]h"]h$]h&]noemphjAjBuh1jyhjubjz)}(hloff_t *offseth](h)}(hhh]j)}(hloff_th]hloff_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj reftypej/ reftargetjmodnameN classnameNjj)}j]jq c.drm_readasbuh1hhjubj)}(h h]h }(hjђhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjL)}(hjOh]h*}(hjߒhhhNhNubah}(h]h ]jXah"]h$]h&]uh1jKhjubj)}(hoffseth]hoffset}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjAjBuh1jyhjubeh}(h]h ]h"]h$]h&]jAjBuh1jshjNhhhjvhMubeh}(h]h ]h"]h$]h&]jAjBjuh1jjjhjJhhhjvhMubah}(h]jEah ](j j!eh"]h$]h&]j%j&)j'huh1jhjvhMhjGhhubj))}(hhh]h)}(hread method for DRM fileh]hread method for DRM file}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chMhjhhubah}(h]h ]h"]h$]h&]uh1j(hjGhhhjvhMubeh}(h]h ](j functioneh"]h$]h&]jIj jJj.jKj.jLjMjNuh1jhhhjGmhNhNubjP)}(hX**Parameters** ``struct file *filp`` file pointer ``char __user *buffer`` userspace destination pointer for the read ``size_t count`` count in bytes to read ``loff_t *offset`` offset to read **Description** This function must be used by drivers as their :c:type:`file_operations.read ` method if they use DRM events for asynchronous signalling to userspace. Since events are used by the KMS API for vblank and page flip completion this means all modern display drivers must use it. **offset** is ignored, DRM events are read like a pipe. Polling support is provided by drm_poll(). This function will only ever read a full event. Therefore userspace must supply a big enough buffer to fit any event to ensure forward progress. Since the maximum event space is currently 4K it's recommended to just use that for safety. **Return** Number of bytes read (always aligned to full events, and can be 0) or a negative error code on failure.h](h)}(h**Parameters**h]jZ)}(hj8h]h Parameters}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj6ubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chM hj2ubj)}(hhh](j)}(h#``struct file *filp`` file pointer h](j)}(h``struct file *filp``h]j)}(hjWh]hstruct file *filp}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjUubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chMhjQubj)}(hhh]h)}(h file pointerh]h file pointer}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1hhjlhMhjmubah}(h]h ]h"]h$]h&]uh1jhjQubeh}(h]h ]h"]h$]h&]uh1jhjlhMhjNubj)}(hC``char __user *buffer`` userspace destination pointer for the read h](j)}(h``char __user *buffer``h]j)}(hjh]hchar __user *buffer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chMhjubj)}(hhh]h)}(h*userspace destination pointer for the readh]h*userspace destination pointer for the read}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjNubj)}(h(``size_t count`` count in bytes to read h](j)}(h``size_t count``h]j)}(hjɓh]h size_t count}(hj˓hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjǓubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chMhjÓubj)}(hhh]h)}(hcount in bytes to readh]hcount in bytes to read}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjޓhMhjߓubah}(h]h ]h"]h$]h&]uh1jhjÓubeh}(h]h ]h"]h$]h&]uh1jhjޓhMhjNubj)}(h"``loff_t *offset`` offset to read h](j)}(h``loff_t *offset``h]j)}(hjh]hloff_t *offset}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chM hjubj)}(hhh]h)}(hoffset to readh]hoffset to read}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM hjNubeh}(h]h ]h"]h$]h&]uh1jhj2ubh)}(h**Description**h]jZ)}(hj=h]h Description}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj;ubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chM hj2ubh)}(hX#This function must be used by drivers as their :c:type:`file_operations.read ` method if they use DRM events for asynchronous signalling to userspace. Since events are used by the KMS API for vblank and page flip completion this means all modern display drivers must use it.h](h/This function must be used by drivers as their }(hjShhhNhNubh)}(h0:c:type:`file_operations.read `h]j)}(hj]h]hfile_operations.read}(hj_hhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhj[ubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjjjfile_operationsuh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chM hjSubh method if they use DRM events for asynchronous signalling to userspace. Since events are used by the KMS API for vblank and page flip completion this means all modern display drivers must use it.}(hjShhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjzhM hj2ubh)}(hb**offset** is ignored, DRM events are read like a pipe. Polling support is provided by drm_poll().h](jZ)}(h **offset**h]hoffset}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubhX is ignored, DRM events are read like a pipe. Polling support is provided by drm_poll().}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chMhj2ubh)}(hThis function will only ever read a full event. Therefore userspace must supply a big enough buffer to fit any event to ensure forward progress. Since the maximum event space is currently 4K it's recommended to just use that for safety.h]hThis function will only ever read a full event. Therefore userspace must supply a big enough buffer to fit any event to ensure forward progress. Since the maximum event space is currently 4K it’s recommended to just use that for safety.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chMhj2ubh)}(h **Return**h]jZ)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chMhj2ubh)}(hgNumber of bytes read (always aligned to full events, and can be 0) or a negative error code on failure.h]hgNumber of bytes read (always aligned to full events, and can be 0) or a negative error code on failure.}(hjɔhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chMhj2ubeh}(h]h ] kernelindentah"]h$]h&]uh1jOhjGmhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jdrm_poll (C function) c.drm_pollhNtauh1jhjGmhhhNhNubj)}(hhh](j)}(hE__poll_t drm_poll (struct file *filp, struct poll_table_struct *wait)h]j)}(hD__poll_t drm_poll(struct file *filp, struct poll_table_struct *wait)h](h)}(hhh]j)}(h__poll_th]h__poll_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj reftypej/ reftargetjmodnameN classnameNjj)}j]j7)}j/drm_pollsb c.drm_pollasbuh1hhjhhh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chMbubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMbubj)}(hdrm_pollh]j)}(hjh]hdrm_poll}(hj/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj+ubah}(h]h ](jjeh"]h$]h&]jAjBuh1jhjhhhjhMbubjt)}(h3(struct file *filp, struct poll_table_struct *wait)h](jz)}(hstruct file *filph](j)}(hjh]hstruct}(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjFubj)}(h h]h }(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjFubh)}(hhh]j)}(hfileh]hfile}(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeubah}(h]h ]h"]h$]h&] refdomainj reftypej/ reftargetjjmodnameN classnameNjj)}j]j c.drm_pollasbuh1hhjFubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjFubjL)}(hjOh]h*}(hjhhhNhNubah}(h]h ]jXah"]h$]h&]uh1jKhjFubj)}(hfilph]hfilp}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjFubeh}(h]h ]h"]h$]h&]noemphjAjBuh1jyhjBubjz)}(hstruct poll_table_struct *waith](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjǕhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hpoll_table_structh]hpoll_table_struct}(hjؕhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjՕubah}(h]h ]h"]h$]h&] refdomainj reftypej/ reftargetjڕmodnameN classnameNjj)}j]j c.drm_pollasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjL)}(hjOh]h*}(hjhhhNhNubah}(h]h ]jXah"]h$]h&]uh1jKhjubj)}(hwaith]hwait}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjAjBuh1jyhjBubeh}(h]h ]h"]h$]h&]jAjBuh1jshjhhhjhMbubeh}(h]h ]h"]h$]h&]jAjBjuh1jjjhjhhhjhMbubah}(h]jah ](j j!eh"]h$]h&]j%j&)j'huh1jhjhMbhjhhubj))}(hhh]h)}(hpoll method for DRM fileh]hpoll method for DRM file}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chMbhj8hhubah}(h]h ]h"]h$]h&]uh1j(hjhhhjhMbubeh}(h]h ](j functioneh"]h$]h&]jIj jJjSjKjSjLjMjNuh1jhhhjGmhNhNubjP)}(hX**Parameters** ``struct file *filp`` file pointer ``struct poll_table_struct *wait`` poll waiter table **Description** This function must be used by drivers as their :c:type:`file_operations.read ` method if they use DRM events for asynchronous signalling to userspace. Since events are used by the KMS API for vblank and page flip completion this means all modern display drivers must use it. See also drm_read(). **Return** Mask of POLL flags indicating the current status of the file.h](h)}(h**Parameters**h]jZ)}(hj]h]h Parameters}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj[ubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chMfhjWubj)}(hhh](j)}(h#``struct file *filp`` file pointer h](j)}(h``struct file *filp``h]j)}(hj|h]hstruct file *filp}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjzubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chMchjvubj)}(hhh]h)}(h file pointerh]h file pointer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMchjubah}(h]h ]h"]h$]h&]uh1jhjvubeh}(h]h ]h"]h$]h&]uh1jhjhMchjsubj)}(h5``struct poll_table_struct *wait`` poll waiter table h](j)}(h"``struct poll_table_struct *wait``h]j)}(hjh]hstruct poll_table_struct *wait}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chMdhjubj)}(hhh]h)}(hpoll waiter tableh]hpoll waiter table}(hjΖhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjʖhMdhj˖ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjʖhMdhjsubeh}(h]h ]h"]h$]h&]uh1jhjWubh)}(h**Description**h]jZ)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chMfhjWubh)}(hX$This function must be used by drivers as their :c:type:`file_operations.read ` method if they use DRM events for asynchronous signalling to userspace. Since events are used by the KMS API for vblank and page flip completion this means all modern display drivers must use it.h](h/This function must be used by drivers as their }(hjhhhNhNubh)}(h0:c:type:`file_operations.read `h]j)}(hjh]hfile_operations.read}(hjhhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjjjfile_operationsuh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chMehjubh method if they use DRM events for asynchronous signalling to userspace. Since events are used by the KMS API for vblank and page flip completion this means all modern display drivers must use it.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj-hMehjWubh)}(hSee also drm_read().h]hSee also drm_read().}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chMjhjWubh)}(h **Return**h]jZ)}(hjIh]hReturn}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjGubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chMlhjWubh)}(h=Mask of POLL flags indicating the current status of the file.h]h=Mask of POLL flags indicating the current status of the file.}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chMmhjWubeh}(h]h ] kernelindentah"]h$]h&]uh1jOhjGmhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j*drm_event_reserve_init_locked (C function)c.drm_event_reserve_init_lockedhNtauh1jhjGmhhhNhNubj)}(hhh](j)}(hint drm_event_reserve_init_locked (struct drm_device *dev, struct drm_file *file_priv, struct drm_pending_event *p, struct drm_event *e)h]j)}(hint drm_event_reserve_init_locked(struct drm_device *dev, struct drm_file *file_priv, struct drm_pending_event *p, struct drm_event *e)h](ja()}(hinth]hint}(hjhhhNhNubah}(h]h ]jm(ah"]h$]h&]uh1j`(hjhhh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubj)}(hdrm_event_reserve_init_lockedh]j)}(hdrm_event_reserve_init_lockedh]hdrm_event_reserve_init_locked}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jAjBuh1jhjhhhjhMubjt)}(hf(struct drm_device *dev, struct drm_file *file_priv, struct drm_pending_event *p, struct drm_event *e)h](jz)}(hstruct drm_device *devh](j)}(hjh]hstruct}(hj˗hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjǗubj)}(h h]h }(hjؗhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjǗubh)}(hhh]j)}(h drm_deviceh]h drm_device}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj reftypej/ reftargetjmodnameN classnameNjj)}j]j7)}j/jsbc.drm_event_reserve_init_lockedasbuh1hhjǗubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjǗubjL)}(hjOh]h*}(hjhhhNhNubah}(h]h ]jXah"]h$]h&]uh1jKhjǗubj)}(hdevh]hdev}(hj$hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjǗubeh}(h]h ]h"]h$]h&]noemphjAjBuh1jyhj×ubjz)}(hstruct drm_file *file_privh](j)}(hjh]hstruct}(hj=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9ubj)}(h h]h }(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9ubh)}(hhh]j)}(hdrm_fileh]hdrm_file}(hj[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjXubah}(h]h ]h"]h$]h&] refdomainj reftypej/ reftargetj]modnameN classnameNjj)}j]jc.drm_event_reserve_init_lockedasbuh1hhj9ubj)}(h h]h }(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9ubjL)}(hjOh]h*}(hjhhhNhNubah}(h]h ]jXah"]h$]h&]uh1jKhj9ubj)}(h file_privh]h file_priv}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9ubeh}(h]h ]h"]h$]h&]noemphjAjBuh1jyhj×ubjz)}(hstruct drm_pending_event *ph](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hdrm_pending_eventh]hdrm_pending_event}(hj˘hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjȘubah}(h]h ]h"]h$]h&] refdomainj reftypej/ reftargetj͘modnameN classnameNjj)}j]jc.drm_event_reserve_init_lockedasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjL)}(hjOh]h*}(hjhhhNhNubah}(h]h ]jXah"]h$]h&]uh1jKhjubj)}(hjXh]hp}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjAjBuh1jyhj×ubjz)}(hstruct drm_event *eh](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hj)hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(h drm_eventh]h drm_event}(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7ubah}(h]h ]h"]h$]h&] refdomainj reftypej/ reftargetj<modnameN classnameNjj)}j]jc.drm_event_reserve_init_lockedasbuh1hhjubj)}(h h]h }(hjXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjL)}(hjOh]h*}(hjfhhhNhNubah}(h]h ]jXah"]h$]h&]uh1jKhjubj)}(heh]he}(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjAjBuh1jyhj×ubeh}(h]h ]h"]h$]h&]jAjBuh1jshjhhhjhMubeh}(h]h ]h"]h$]h&]jAjBjuh1jjjhjhhhjhMubah}(h]jah ](j j!eh"]h$]h&]j%j&)j'huh1jhjhMhjhhubj))}(hhh]h)}(h)init a DRM event and reserve space for ith]h)init a DRM event and reserve space for it}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chMhjhhubah}(h]h ]h"]h$]h&]uh1j(hjhhhjhMubeh}(h]h ](j functioneh"]h$]h&]jIj jJjjKjjLjMjNuh1jhhhjGmhNhNubjP)}(hX**Parameters** ``struct drm_device *dev`` DRM device ``struct drm_file *file_priv`` DRM file private data ``struct drm_pending_event *p`` tracking structure for the pending event ``struct drm_event *e`` actual event data to deliver to userspace **Description** This function prepares the passed in event for eventual delivery. If the event doesn't get delivered (because the IOCTL fails later on, before queuing up anything) then the even must be cancelled and freed using drm_event_cancel_free(). Successfully initialized events should be sent out using drm_send_event() or drm_send_event_locked() to signal completion of the asynchronous event to userspace. If callers embedded **p** into a larger structure it must be allocated with kmalloc and **p** must be the first member element. This is the locked version of drm_event_reserve_init() for callers which already hold :c:type:`drm_device.event_lock `. **Return** 0 on success or a negative error code on failure.h](h)}(h**Parameters**h]jZ)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chMhjubj)}(hhh](j)}(h&``struct drm_device *dev`` DRM device h](j)}(h``struct drm_device *dev``h]j)}(hjޙh]hstruct drm_device *dev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjܙubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chMhjؙubj)}(hhh]h)}(h DRM deviceh]h DRM device}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjؙubeh}(h]h ]h"]h$]h&]uh1jhjhMhjՙubj)}(h5``struct drm_file *file_priv`` DRM file private data h](j)}(h``struct drm_file *file_priv``h]j)}(hjh]hstruct drm_file *file_priv}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chMhjubj)}(hhh]h)}(hDRM file private datah]hDRM file private data}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj,hMhj-ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj,hMhjՙubj)}(hI``struct drm_pending_event *p`` tracking structure for the pending event h](j)}(h``struct drm_pending_event *p``h]j)}(hjPh]hstruct drm_pending_event *p}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjNubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chMhjJubj)}(hhh]h)}(h(tracking structure for the pending eventh]h(tracking structure for the pending event}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1hhjehMhjfubah}(h]h ]h"]h$]h&]uh1jhjJubeh}(h]h ]h"]h$]h&]uh1jhjehMhjՙubj)}(hB``struct drm_event *e`` actual event data to deliver to userspace h](j)}(h``struct drm_event *e``h]j)}(hjh]hstruct drm_event *e}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chMhjubj)}(hhh]h)}(h)actual event data to deliver to userspaceh]h)actual event data to deliver to userspace}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjՙubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]jZ)}(hjĚh]h Description}(hjƚhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjšubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chMhjubh)}(hXThis function prepares the passed in event for eventual delivery. If the event doesn't get delivered (because the IOCTL fails later on, before queuing up anything) then the even must be cancelled and freed using drm_event_cancel_free(). Successfully initialized events should be sent out using drm_send_event() or drm_send_event_locked() to signal completion of the asynchronous event to userspace.h]hXThis function prepares the passed in event for eventual delivery. If the event doesn’t get delivered (because the IOCTL fails later on, before queuing up anything) then the even must be cancelled and freed using drm_event_cancel_free(). Successfully initialized events should be sent out using drm_send_event() or drm_send_event_locked() to signal completion of the asynchronous event to userspace.}(hjښhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chMhjubh)}(hIf callers embedded **p** into a larger structure it must be allocated with kmalloc and **p** must be the first member element.h](hIf callers embedded }(hjhhhNhNubjZ)}(h**p**h]hp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubh? into a larger structure it must be allocated with kmalloc and }(hjhhhNhNubjZ)}(h**p**h]hp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubh" must be the first member element.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chMhjubh)}(hThis is the locked version of drm_event_reserve_init() for callers which already hold :c:type:`drm_device.event_lock `.h](hVThis is the locked version of drm_event_reserve_init() for callers which already hold }(hjhhhNhNubh)}(h,:c:type:`drm_device.event_lock `h]j)}(hj&h]hdrm_device.event_lock}(hj(hhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhj$ubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjjj drm_deviceuh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chMhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjChMhjubh)}(h **Return**h]jZ)}(hjPh]hReturn}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chMhjubh)}(h10 on success or a negative error code on failure.h]h10 on success or a negative error code on failure.}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jOhjGmhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j#drm_event_reserve_init (C function)c.drm_event_reserve_inithNtauh1jhjGmhhhNhNubj)}(hhh](j)}(hint drm_event_reserve_init (struct drm_device *dev, struct drm_file *file_priv, struct drm_pending_event *p, struct drm_event *e)h]j)}(hint drm_event_reserve_init(struct drm_device *dev, struct drm_file *file_priv, struct drm_pending_event *p, struct drm_event *e)h](ja()}(hinth]hint}(hjhhhNhNubah}(h]h ]jm(ah"]h$]h&]uh1j`(hjhhh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubj)}(hdrm_event_reserve_inith]j)}(hdrm_event_reserve_inith]hdrm_event_reserve_init}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jAjBuh1jhjhhhjhMubjt)}(hf(struct drm_device *dev, struct drm_file *file_priv, struct drm_pending_event *p, struct drm_event *e)h](jz)}(hstruct drm_device *devh](j)}(hjh]hstruct}(hjқhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjΛubj)}(h h]h }(hjߛhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjΛubh)}(hhh]j)}(h drm_deviceh]h drm_device}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj reftypej/ reftargetjmodnameN classnameNjj)}j]j7)}j/jsbc.drm_event_reserve_initasbuh1hhjΛubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjΛubjL)}(hjOh]h*}(hjhhhNhNubah}(h]h ]jXah"]h$]h&]uh1jKhjΛubj)}(hdevh]hdev}(hj+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjΛubeh}(h]h ]h"]h$]h&]noemphjAjBuh1jyhjʛubjz)}(hstruct drm_file *file_privh](j)}(hjh]hstruct}(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@ubj)}(h h]h }(hjQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@ubh)}(hhh]j)}(hdrm_fileh]hdrm_file}(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj_ubah}(h]h ]h"]h$]h&] refdomainj reftypej/ reftargetjdmodnameN classnameNjj)}j]j c.drm_event_reserve_initasbuh1hhj@ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@ubjL)}(hjOh]h*}(hjhhhNhNubah}(h]h ]jXah"]h$]h&]uh1jKhj@ubj)}(h file_privh]h file_priv}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@ubeh}(h]h ]h"]h$]h&]noemphjAjBuh1jyhjʛubjz)}(hstruct drm_pending_event *ph](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hdrm_pending_eventh]hdrm_pending_event}(hjҜhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjϜubah}(h]h ]h"]h$]h&] refdomainj reftypej/ reftargetjԜmodnameN classnameNjj)}j]j c.drm_event_reserve_initasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjL)}(hjOh]h*}(hjhhhNhNubah}(h]h ]jXah"]h$]h&]uh1jKhjubj)}(hjXh]hp}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjAjBuh1jyhjʛubjz)}(hstruct drm_event *eh](j)}(hjh]hstruct}(hj#hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(h drm_eventh]h drm_event}(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>ubah}(h]h ]h"]h$]h&] refdomainj reftypej/ reftargetjCmodnameN classnameNjj)}j]j c.drm_event_reserve_initasbuh1hhjubj)}(h h]h }(hj_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjL)}(hjOh]h*}(hjmhhhNhNubah}(h]h ]jXah"]h$]h&]uh1jKhjubj)}(hjuh]he}(hjzhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjAjBuh1jyhjʛubeh}(h]h ]h"]h$]h&]jAjBuh1jshjhhhjhMubeh}(h]h ]h"]h$]h&]jAjBjuh1jjjhjhhhjhMubah}(h]jah ](j j!eh"]h$]h&]j%j&)j'huh1jhjhMhjhhubj))}(hhh]h)}(h)init a DRM event and reserve space for ith]h)init a DRM event and reserve space for it}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chMhjhhubah}(h]h ]h"]h$]h&]uh1j(hjhhhjhMubeh}(h]h ](j functioneh"]h$]h&]jIj jJjjKjjLjMjNuh1jhhhjGmhNhNubjP)}(hX**Parameters** ``struct drm_device *dev`` DRM device ``struct drm_file *file_priv`` DRM file private data ``struct drm_pending_event *p`` tracking structure for the pending event ``struct drm_event *e`` actual event data to deliver to userspace **Description** This function prepares the passed in event for eventual delivery. If the event doesn't get delivered (because the IOCTL fails later on, before queuing up anything) then the even must be cancelled and freed using drm_event_cancel_free(). Successfully initialized events should be sent out using drm_send_event() or drm_send_event_locked() to signal completion of the asynchronous event to userspace. If callers embedded **p** into a larger structure it must be allocated with kmalloc and **p** must be the first member element. Callers which already hold :c:type:`drm_device.event_lock ` should use drm_event_reserve_init_locked() instead. **Return** 0 on success or a negative error code on failure.h](h)}(h**Parameters**h]jZ)}(hjŝh]h Parameters}(hjǝhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjÝubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chMhjubj)}(hhh](j)}(h&``struct drm_device *dev`` DRM device h](j)}(h``struct drm_device *dev``h]j)}(hjh]hstruct drm_device *dev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chMhjޝubj)}(hhh]h)}(h DRM deviceh]h DRM device}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjޝubeh}(h]h ]h"]h$]h&]uh1jhjhMhj۝ubj)}(h5``struct drm_file *file_priv`` DRM file private data h](j)}(h``struct drm_file *file_priv``h]j)}(hjh]hstruct drm_file *file_priv}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chMhjubj)}(hhh]h)}(hDRM file private datah]hDRM file private data}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj2hMhj3ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj2hMhj۝ubj)}(hI``struct drm_pending_event *p`` tracking structure for the pending event h](j)}(h``struct drm_pending_event *p``h]j)}(hjVh]hstruct drm_pending_event *p}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjTubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chMhjPubj)}(hhh]h)}(h(tracking structure for the pending eventh]h(tracking structure for the pending event}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1hhjkhMhjlubah}(h]h ]h"]h$]h&]uh1jhjPubeh}(h]h ]h"]h$]h&]uh1jhjkhMhj۝ubj)}(hB``struct drm_event *e`` actual event data to deliver to userspace h](j)}(h``struct drm_event *e``h]j)}(hjh]hstruct drm_event *e}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chMhjubj)}(hhh]h)}(h)actual event data to deliver to userspaceh]h)actual event data to deliver to userspace}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhj۝ubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]jZ)}(hjʞh]h Description}(hj̞hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjȞubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chMhjubh)}(hXThis function prepares the passed in event for eventual delivery. If the event doesn't get delivered (because the IOCTL fails later on, before queuing up anything) then the even must be cancelled and freed using drm_event_cancel_free(). Successfully initialized events should be sent out using drm_send_event() or drm_send_event_locked() to signal completion of the asynchronous event to userspace.h]hXThis function prepares the passed in event for eventual delivery. If the event doesn’t get delivered (because the IOCTL fails later on, before queuing up anything) then the even must be cancelled and freed using drm_event_cancel_free(). Successfully initialized events should be sent out using drm_send_event() or drm_send_event_locked() to signal completion of the asynchronous event to userspace.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chMhjubh)}(hIf callers embedded **p** into a larger structure it must be allocated with kmalloc and **p** must be the first member element.h](hIf callers embedded }(hjhhhNhNubjZ)}(h**p**h]hp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubh? into a larger structure it must be allocated with kmalloc and }(hjhhhNhNubjZ)}(h**p**h]hp}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubh" must be the first member element.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chMhjubh)}(h{Callers which already hold :c:type:`drm_device.event_lock ` should use drm_event_reserve_init_locked() instead.h](hCallers which already hold }(hj"hhhNhNubh)}(h,:c:type:`drm_device.event_lock `h]j)}(hj,h]hdrm_device.event_lock}(hj.hhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhj*ubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjjj drm_deviceuh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chMhj"ubh4 should use drm_event_reserve_init_locked() instead.}(hj"hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjIhMhjubh)}(h **Return**h]jZ)}(hjVh]hReturn}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjTubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chMhjubh)}(h10 on success or a negative error code on failure.h]h10 on success or a negative error code on failure.}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jOhjGmhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j"drm_event_cancel_free (C function)c.drm_event_cancel_freehNtauh1jhjGmhhhNhNubj)}(hhh](j)}(hPvoid drm_event_cancel_free (struct drm_device *dev, struct drm_pending_event *p)h]j)}(hOvoid drm_event_cancel_free(struct drm_device *dev, struct drm_pending_event *p)h](ja()}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jm(ah"]h$]h&]uh1j`(hjhhh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubj)}(hdrm_event_cancel_freeh]j)}(hdrm_event_cancel_freeh]hdrm_event_cancel_free}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jAjBuh1jhjhhhjhMubjt)}(h5(struct drm_device *dev, struct drm_pending_event *p)h](jz)}(hstruct drm_device *devh](j)}(hjh]hstruct}(hj؟hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjԟubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjԟubh)}(hhh]j)}(h drm_deviceh]h drm_device}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj reftypej/ reftargetjmodnameN classnameNjj)}j]j7)}j/jsbc.drm_event_cancel_freeasbuh1hhjԟubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjԟubjL)}(hjOh]h*}(hj$hhhNhNubah}(h]h ]jXah"]h$]h&]uh1jKhjԟubj)}(hdevh]hdev}(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjԟubeh}(h]h ]h"]h$]h&]noemphjAjBuh1jyhjПubjz)}(hstruct drm_pending_event *ph](j)}(hjh]hstruct}(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjFubj)}(h h]h }(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjFubh)}(hhh]j)}(hdrm_pending_eventh]hdrm_pending_event}(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeubah}(h]h ]h"]h$]h&] refdomainj reftypej/ reftargetjjmodnameN classnameNjj)}j]jc.drm_event_cancel_freeasbuh1hhjFubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjFubjL)}(hjOh]h*}(hjhhhNhNubah}(h]h ]jXah"]h$]h&]uh1jKhjFubj)}(hjXh]hp}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjFubeh}(h]h ]h"]h$]h&]noemphjAjBuh1jyhjПubeh}(h]h ]h"]h$]h&]jAjBuh1jshjhhhjhMubeh}(h]h ]h"]h$]h&]jAjBjuh1jjjhjhhhjhMubah}(h]jah ](j j!eh"]h$]h&]j%j&)j'huh1jhjhMhjhhubj))}(hhh]h)}(h&free a DRM event and release its spaceh]h&free a DRM event and release its space}(hjʠhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chMhjǠhhubah}(h]h ]h"]h$]h&]uh1j(hjhhhjhMubeh}(h]h ](j functioneh"]h$]h&]jIj jJjjKjjLjMjNuh1jhhhjGmhNhNubjP)}(hXs**Parameters** ``struct drm_device *dev`` DRM device ``struct drm_pending_event *p`` tracking structure for the pending event **Description** This function frees the event **p** initialized with drm_event_reserve_init() and releases any allocated space. It is used to cancel an event when the nonblocking operation could not be submitted and needed to be aborted.h](h)}(h**Parameters**h]jZ)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chMhjubj)}(hhh](j)}(h&``struct drm_device *dev`` DRM device h](j)}(h``struct drm_device *dev``h]j)}(hj h]hstruct drm_device *dev}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chMhjubj)}(hhh]h)}(h DRM deviceh]h DRM device}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hMhj!ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj hMhjubj)}(hI``struct drm_pending_event *p`` tracking structure for the pending event h](j)}(h``struct drm_pending_event *p``h]j)}(hjDh]hstruct drm_pending_event *p}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjBubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chMhj>ubj)}(hhh]h)}(h(tracking structure for the pending eventh]h(tracking structure for the pending event}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjYhMhjZubah}(h]h ]h"]h$]h&]uh1jhj>ubeh}(h]h ]h"]h$]h&]uh1jhjYhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]jZ)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj}ubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chMhjubh)}(hThis function frees the event **p** initialized with drm_event_reserve_init() and releases any allocated space. It is used to cancel an event when the nonblocking operation could not be submitted and needed to be aborted.h](hThis function frees the event }(hjhhhNhNubjZ)}(h**p**h]hp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubh initialized with drm_event_reserve_init() and releases any allocated space. It is used to cancel an event when the nonblocking operation could not be submitted and needed to be aborted.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jOhjGmhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j,drm_send_event_timestamp_locked (C function)!c.drm_send_event_timestamp_lockedhNtauh1jhjGmhhhNhNubj)}(hhh](j)}(hmvoid drm_send_event_timestamp_locked (struct drm_device *dev, struct drm_pending_event *e, ktime_t timestamp)h]j)}(hlvoid drm_send_event_timestamp_locked(struct drm_device *dev, struct drm_pending_event *e, ktime_t timestamp)h](ja()}(hvoidh]hvoid}(hj֡hhhNhNubah}(h]h ]jm(ah"]h$]h&]uh1j`(hjҡhhh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chM ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjҡhhhjhM ubj)}(hdrm_send_event_timestamp_lockedh]j)}(hdrm_send_event_timestamp_lockedh]hdrm_send_event_timestamp_locked}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jAjBuh1jhjҡhhhjhM ubjt)}(hH(struct drm_device *dev, struct drm_pending_event *e, ktime_t timestamp)h](jz)}(hstruct drm_device *devh](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(h drm_deviceh]h drm_device}(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.ubah}(h]h ]h"]h$]h&] refdomainj reftypej/ reftargetj3modnameN classnameNjj)}j]j7)}j/jsb!c.drm_send_event_timestamp_lockedasbuh1hhjubj)}(h h]h }(hjQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjL)}(hjOh]h*}(hj_hhhNhNubah}(h]h ]jXah"]h$]h&]uh1jKhjubj)}(hdevh]hdev}(hjlhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjAjBuh1jyhj ubjz)}(hstruct drm_pending_event *eh](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hdrm_pending_eventh]hdrm_pending_event}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj reftypej/ reftargetjmodnameN classnameNjj)}j]jM!c.drm_send_event_timestamp_lockedasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjL)}(hjOh]h*}(hjϢhhhNhNubah}(h]h ]jXah"]h$]h&]uh1jKhjubj)}(hjuh]he}(hjܢhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjAjBuh1jyhj ubjz)}(hktime_t timestamph](h)}(hhh]j)}(hktime_th]hktime_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj reftypej/ reftargetjmodnameN classnameNjj)}j]jM!c.drm_send_event_timestamp_lockedasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h timestamph]h timestamp}(hj#hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjAjBuh1jyhj ubeh}(h]h ]h"]h$]h&]jAjBuh1jshjҡhhhjhM ubeh}(h]h ]h"]h$]h&]jAjBjuh1jjjhjΡhhhjhM ubah}(h]jɡah ](j j!eh"]h$]h&]j%j&)j'huh1jhjhM hjˡhhubj))}(hhh]h)}(h!send DRM event to file descriptorh]h!send DRM event to file descriptor}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chM hjJhhubah}(h]h ]h"]h$]h&]uh1j(hjˡhhhjhM ubeh}(h]h ](j functioneh"]h$]h&]jIj jJjejKjejLjMjNuh1jhhhjGmhNhNubjP)}(hX**Parameters** ``struct drm_device *dev`` DRM device ``struct drm_pending_event *e`` DRM event to deliver ``ktime_t timestamp`` timestamp to set for the fence event in kernel's CLOCK_MONOTONIC time domain **Description** This function sends the event **e**, initialized with drm_event_reserve_init(), to its associated userspace DRM file. Callers must already hold :c:type:`drm_device.event_lock `. Note that the core will take care of unlinking and disarming events when the corresponding DRM file is closed. Drivers need not worry about whether the DRM file for this event still exists and can call this function upon completion of the asynchronous work unconditionally.h](h)}(h**Parameters**h]jZ)}(hjoh]h Parameters}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjmubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chMhjiubj)}(hhh](j)}(h&``struct drm_device *dev`` DRM device h](j)}(h``struct drm_device *dev``h]j)}(hjh]hstruct drm_device *dev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chM hjubj)}(hhh]h)}(h DRM deviceh]h DRM device}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM hjubj)}(h5``struct drm_pending_event *e`` DRM event to deliver h](j)}(h``struct drm_pending_event *e``h]j)}(hjǣh]hstruct drm_pending_event *e}(hjɣhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjţubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chM hjubj)}(hhh]h)}(hDRM event to deliverh]hDRM event to deliver}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjܣhM hjݣubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjܣhM hjubj)}(hc``ktime_t timestamp`` timestamp to set for the fence event in kernel's CLOCK_MONOTONIC time domain h](j)}(h``ktime_t timestamp``h]j)}(hjh]hktime_t timestamp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chMhjubj)}(hhh]h)}(hLtimestamp to set for the fence event in kernel's CLOCK_MONOTONIC time domainh]hNtimestamp to set for the fence event in kernel’s CLOCK_MONOTONIC time domain}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chM hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(h]h ]h"]h$]h&]uh1jhjiubh)}(h**Description**h]jZ)}(hj<h]h Description}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj:ubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chMhjiubh)}(hThis function sends the event **e**, initialized with drm_event_reserve_init(), to its associated userspace DRM file. Callers must already hold :c:type:`drm_device.event_lock `.h](hThis function sends the event }(hjRhhhNhNubjZ)}(h**e**h]he}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjRubhm, initialized with drm_event_reserve_init(), to its associated userspace DRM file. Callers must already hold }(hjRhhhNhNubh)}(h,:c:type:`drm_device.event_lock `h]j)}(hjnh]hdrm_device.event_lock}(hjphhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjlubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjjj drm_deviceuh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chMhjRubh.}(hjRhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMhjiubh)}(hXNote that the core will take care of unlinking and disarming events when the corresponding DRM file is closed. Drivers need not worry about whether the DRM file for this event still exists and can call this function upon completion of the asynchronous work unconditionally.h]hXNote that the core will take care of unlinking and disarming events when the corresponding DRM file is closed. Drivers need not worry about whether the DRM file for this event still exists and can call this function upon completion of the asynchronous work unconditionally.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chMhjiubeh}(h]h ] kernelindentah"]h$]h&]uh1jOhjGmhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j"drm_send_event_locked (C function)c.drm_send_event_lockedhNtauh1jhjGmhhhNhNubj)}(hhh](j)}(hPvoid drm_send_event_locked (struct drm_device *dev, struct drm_pending_event *e)h]j)}(hOvoid drm_send_event_locked(struct drm_device *dev, struct drm_pending_event *e)h](ja()}(hvoidh]hvoid}(hjŤhhhNhNubah}(h]h ]jm(ah"]h$]h&]uh1j`(hjhhh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chM!ubj)}(h h]h }(hjԤhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjӤhM!ubj)}(hdrm_send_event_lockedh]j)}(hdrm_send_event_lockedh]hdrm_send_event_locked}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jAjBuh1jhjhhhjӤhM!ubjt)}(h5(struct drm_device *dev, struct drm_pending_event *e)h](jz)}(hstruct drm_device *devh](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(h drm_deviceh]h drm_device}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj reftypej/ reftargetj"modnameN classnameNjj)}j]j7)}j/jsbc.drm_send_event_lockedasbuh1hhjubj)}(h h]h }(hj@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjL)}(hjOh]h*}(hjNhhhNhNubah}(h]h ]jXah"]h$]h&]uh1jKhjubj)}(hdevh]hdev}(hj[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjAjBuh1jyhjubjz)}(hstruct drm_pending_event *eh](j)}(hjh]hstruct}(hjthhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjpubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjpubh)}(hhh]j)}(hdrm_pending_eventh]hdrm_pending_event}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj reftypej/ reftargetjmodnameN classnameNjj)}j]j<c.drm_send_event_lockedasbuh1hhjpubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjpubjL)}(hjOh]h*}(hjhhhNhNubah}(h]h ]jXah"]h$]h&]uh1jKhjpubj)}(hjuh]he}(hj˥hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjpubeh}(h]h ]h"]h$]h&]noemphjAjBuh1jyhjubeh}(h]h ]h"]h$]h&]jAjBuh1jshjhhhjӤhM!ubeh}(h]h ]h"]h$]h&]jAjBjuh1jjjhjhhhjӤhM!ubah}(h]jah ](j j!eh"]h$]h&]j%j&)j'huh1jhjӤhM!hjhhubj))}(hhh]h)}(h!send DRM event to file descriptorh]h!send DRM event to file descriptor}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chM!hjhhubah}(h]h ]h"]h$]h&]uh1j(hjhhhjӤhM!ubeh}(h]h ](j functioneh"]h$]h&]jIj jJj jKj jLjMjNuh1jhhhjGmhNhNubjP)}(hX**Parameters** ``struct drm_device *dev`` DRM device ``struct drm_pending_event *e`` DRM event to deliver **Description** This function sends the event **e**, initialized with drm_event_reserve_init(), to its associated userspace DRM file. Callers must already hold :c:type:`drm_device.event_lock `, see drm_send_event() for the unlocked version. Note that the core will take care of unlinking and disarming events when the corresponding DRM file is closed. Drivers need not worry about whether the DRM file for this event still exists and can call this function upon completion of the asynchronous work unconditionally.h](h)}(h**Parameters**h]jZ)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chM%hjubj)}(hhh](j)}(h&``struct drm_device *dev`` DRM device h](j)}(h``struct drm_device *dev``h]j)}(hj5h]hstruct drm_device *dev}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chM"hj/ubj)}(hhh]h)}(h DRM deviceh]h DRM device}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjJhM"hjKubah}(h]h ]h"]h$]h&]uh1jhj/ubeh}(h]h ]h"]h$]h&]uh1jhjJhM"hj,ubj)}(h5``struct drm_pending_event *e`` DRM event to deliver h](j)}(h``struct drm_pending_event *e``h]j)}(hjnh]hstruct drm_pending_event *e}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jhjlubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chM#hjhubj)}(hhh]h)}(hDRM event to deliverh]hDRM event to deliver}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM#hjubah}(h]h ]h"]h$]h&]uh1jhjhubeh}(h]h ]h"]h$]h&]uh1jhjhM#hj,ubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]jZ)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chM%hjubh)}(hThis function sends the event **e**, initialized with drm_event_reserve_init(), to its associated userspace DRM file. Callers must already hold :c:type:`drm_device.event_lock `, see drm_send_event() for the unlocked version.h](hThis function sends the event }(hjhhhNhNubjZ)}(h**e**h]he}(hjǦhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubhm, initialized with drm_event_reserve_init(), to its associated userspace DRM file. Callers must already hold }(hjhhhNhNubh)}(h,:c:type:`drm_device.event_lock `h]j)}(hjۦh]hdrm_device.event_lock}(hjݦhhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhj٦ubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjjj drm_deviceuh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chM$hjubh0, see drm_send_event() for the unlocked version.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhM$hjubh)}(hXNote that the core will take care of unlinking and disarming events when the corresponding DRM file is closed. Drivers need not worry about whether the DRM file for this event still exists and can call this function upon completion of the asynchronous work unconditionally.h]hXNote that the core will take care of unlinking and disarming events when the corresponding DRM file is closed. Drivers need not worry about whether the DRM file for this event still exists and can call this function upon completion of the asynchronous work unconditionally.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chM(hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jOhjGmhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jdrm_send_event (C function)c.drm_send_eventhNtauh1jhjGmhhhNhNubj)}(hhh](j)}(hIvoid drm_send_event (struct drm_device *dev, struct drm_pending_event *e)h]j)}(hHvoid drm_send_event(struct drm_device *dev, struct drm_pending_event *e)h](ja()}(hvoidh]hvoid}(hj2hhhNhNubah}(h]h ]jm(ah"]h$]h&]uh1j`(hj.hhh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chM5ubj)}(h h]h }(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.hhhj@hM5ubj)}(hdrm_send_eventh]j)}(hdrm_send_eventh]hdrm_send_event}(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOubah}(h]h ](jjeh"]h$]h&]jAjBuh1jhj.hhhj@hM5ubjt)}(h5(struct drm_device *dev, struct drm_pending_event *e)h](jz)}(hstruct drm_device *devh](j)}(hjh]hstruct}(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkubj)}(h h]h }(hj|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkubh)}(hhh]j)}(h drm_deviceh]h drm_device}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj reftypej/ reftargetjmodnameN classnameNjj)}j]j7)}j/jUsbc.drm_send_eventasbuh1hhjkubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkubjL)}(hjOh]h*}(hjhhhNhNubah}(h]h ]jXah"]h$]h&]uh1jKhjkubj)}(hdevh]hdev}(hjȧhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkubeh}(h]h ]h"]h$]h&]noemphjAjBuh1jyhjgubjz)}(hstruct drm_pending_event *eh](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjݧubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjݧubh)}(hhh]j)}(hdrm_pending_eventh]hdrm_pending_event}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj reftypej/ reftargetjmodnameN classnameNjj)}j]jc.drm_send_eventasbuh1hhjݧubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjݧubjL)}(hjOh]h*}(hj+hhhNhNubah}(h]h ]jXah"]h$]h&]uh1jKhjݧubj)}(hjuh]he}(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjݧubeh}(h]h ]h"]h$]h&]noemphjAjBuh1jyhjgubeh}(h]h ]h"]h$]h&]jAjBuh1jshj.hhhj@hM5ubeh}(h]h ]h"]h$]h&]jAjBjuh1jjjhj*hhhj@hM5ubah}(h]j%ah ](j j!eh"]h$]h&]j%j&)j'huh1jhj@hM5hj'hhubj))}(hhh]h)}(h!send DRM event to file descriptorh]h!send DRM event to file descriptor}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chM5hj^hhubah}(h]h ]h"]h$]h&]uh1j(hj'hhhj@hM5ubeh}(h]h ](j functioneh"]h$]h&]jIj jJjyjKjyjLjMjNuh1jhhhjGmhNhNubjP)}(hX**Parameters** ``struct drm_device *dev`` DRM device ``struct drm_pending_event *e`` DRM event to deliver **Description** This function sends the event **e**, initialized with drm_event_reserve_init(), to its associated userspace DRM file. This function acquires :c:type:`drm_device.event_lock `, see drm_send_event_locked() for callers which already hold this lock. Note that the core will take care of unlinking and disarming events when the corresponding DRM file is closed. Drivers need not worry about whether the DRM file for this event still exists and can call this function upon completion of the asynchronous work unconditionally.h](h)}(h**Parameters**h]jZ)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chM9hj}ubj)}(hhh](j)}(h&``struct drm_device *dev`` DRM device h](j)}(h``struct drm_device *dev``h]j)}(hjh]hstruct drm_device *dev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chM6hjubj)}(hhh]h)}(h DRM deviceh]h DRM device}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM6hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM6hjubj)}(h5``struct drm_pending_event *e`` DRM event to deliver h](j)}(h``struct drm_pending_event *e``h]j)}(hjۨh]hstruct drm_pending_event *e}(hjݨhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj٨ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chM7hjըubj)}(hhh]h)}(hDRM event to deliverh]hDRM event to deliver}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM7hjubah}(h]h ]h"]h$]h&]uh1jhjըubeh}(h]h ]h"]h$]h&]uh1jhjhM7hjubeh}(h]h ]h"]h$]h&]uh1jhj}ubh)}(h**Description**h]jZ)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chM9hj}ubh)}(hXThis function sends the event **e**, initialized with drm_event_reserve_init(), to its associated userspace DRM file. This function acquires :c:type:`drm_device.event_lock `, see drm_send_event_locked() for callers which already hold this lock.h](hThis function sends the event }(hj,hhhNhNubjZ)}(h**e**h]he}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj,ubhj, initialized with drm_event_reserve_init(), to its associated userspace DRM file. This function acquires }(hj,hhhNhNubh)}(h,:c:type:`drm_device.event_lock `h]j)}(hjHh]hdrm_device.event_lock}(hjJhhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjFubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjjj drm_deviceuh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chM8hj,ubhG, see drm_send_event_locked() for callers which already hold this lock.}(hj,hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjehM8hj}ubh)}(hXNote that the core will take care of unlinking and disarming events when the corresponding DRM file is closed. Drivers need not worry about whether the DRM file for this event still exists and can call this function upon completion of the asynchronous work unconditionally.h]hXNote that the core will take care of unlinking and disarming events when the corresponding DRM file is closed. Drivers need not worry about whether the DRM file for this event still exists and can call this function upon completion of the asynchronous work unconditionally.}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chM=hj}ubeh}(h]h ] kernelindentah"]h$]h&]uh1jOhjGmhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j#drm_print_memory_stats (C function)c.drm_print_memory_statshNtauh1jhjGmhhhNhNubj)}(hhh](j)}(hvoid drm_print_memory_stats (struct drm_printer *p, const struct drm_memory_stats *stats, enum drm_gem_object_status supported_status, const char *region)h]j)}(hvoid drm_print_memory_stats(struct drm_printer *p, const struct drm_memory_stats *stats, enum drm_gem_object_status supported_status, const char *region)h](ja()}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jm(ah"]h$]h&]uh1j`(hjhhh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chMlubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMlubj)}(hdrm_print_memory_statsh]j)}(hdrm_print_memory_statsh]hdrm_print_memory_stats}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jAjBuh1jhjhhhjhMlubjt)}(h~(struct drm_printer *p, const struct drm_memory_stats *stats, enum drm_gem_object_status supported_status, const char *region)h](jz)}(hstruct drm_printer *ph](j)}(hjh]hstruct}(hjܩhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjةubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjةubh)}(hhh]j)}(h drm_printerh]h drm_printer}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj reftypej/ reftargetjmodnameN classnameNjj)}j]j7)}j/j©sbc.drm_print_memory_statsasbuh1hhjةubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjةubjL)}(hjOh]h*}(hj(hhhNhNubah}(h]h ]jXah"]h$]h&]uh1jKhjةubj)}(hjXh]hp}(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjةubeh}(h]h ]h"]h$]h&]noemphjAjBuh1jyhjԩubjz)}(h$const struct drm_memory_stats *statsh](j)}(hj1*h]hconst}(hjMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjIubj)}(h h]h }(hjZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjIubj)}(hjh]hstruct}(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjIubj)}(h h]h }(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjIubh)}(hhh]j)}(hdrm_memory_statsh]hdrm_memory_stats}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj reftypej/ reftargetjmodnameN classnameNjj)}j]jc.drm_print_memory_statsasbuh1hhjIubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjIubjL)}(hjOh]h*}(hjhhhNhNubah}(h]h ]jXah"]h$]h&]uh1jKhjIubj)}(hstatsh]hstats}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjIubeh}(h]h ]h"]h$]h&]noemphjAjBuh1jyhjԩubjz)}(h+enum drm_gem_object_status supported_statush](j)}(hjAh]henum}(hjتhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjԪubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjԪubh)}(hhh]j)}(hdrm_gem_object_statush]hdrm_gem_object_status}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj reftypej/ reftargetjmodnameN classnameNjj)}j]jc.drm_print_memory_statsasbuh1hhjԪubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjԪubj)}(hsupported_statush]hsupported_status}(hj"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjԪubeh}(h]h ]h"]h$]h&]noemphjAjBuh1jyhjԩubjz)}(hconst char *regionh](j)}(hj1*h]hconst}(hj;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7ubj)}(h h]h }(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7ubja()}(hcharh]hchar}(hjVhhhNhNubah}(h]h ]jm(ah"]h$]h&]uh1j`(hj7ubj)}(h h]h }(hjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7ubjL)}(hjOh]h*}(hjrhhhNhNubah}(h]h ]jXah"]h$]h&]uh1jKhj7ubj)}(hregionh]hregion}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7ubeh}(h]h ]h"]h$]h&]noemphjAjBuh1jyhjԩubeh}(h]h ]h"]h$]h&]jAjBuh1jshjhhhjhMlubeh}(h]h ]h"]h$]h&]jAjBjuh1jjjhjhhhjhMlubah}(h]jah ](j j!eh"]h$]h&]j%j&)j'huh1jhjhMlhjhhubj))}(hhh]h)}(hA helper to print memory statsh]hA helper to print memory stats}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chMlhjhhubah}(h]h ]h"]h$]h&]uh1j(hjhhhjhMlubeh}(h]h ](j functioneh"]h$]h&]jIj jJjjKjjLjMjNuh1jhhhjGmhNhNubjP)}(hX**Parameters** ``struct drm_printer *p`` The printer to print output to ``const struct drm_memory_stats *stats`` The collected memory stats ``enum drm_gem_object_status supported_status`` Bitmask of optional stats which are available ``const char *region`` The memory regionh](h)}(h**Parameters**h]jZ)}(hj˫h]h Parameters}(hjͫhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjɫubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chMphjūubj)}(hhh](j)}(h9``struct drm_printer *p`` The printer to print output to h](j)}(h``struct drm_printer *p``h]j)}(hjh]hstruct drm_printer *p}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chMmhjubj)}(hhh]h)}(hThe printer to print output toh]hThe printer to print output to}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMmhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMmhjubj)}(hD``const struct drm_memory_stats *stats`` The collected memory stats h](j)}(h(``const struct drm_memory_stats *stats``h]j)}(hj#h]h$const struct drm_memory_stats *stats}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj!ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chMnhjubj)}(hhh]h)}(hThe collected memory statsh]hThe collected memory stats}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj8hMnhj9ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj8hMnhjubj)}(h^``enum drm_gem_object_status supported_status`` Bitmask of optional stats which are available h](j)}(h/``enum drm_gem_object_status supported_status``h]j)}(hj\h]h+enum drm_gem_object_status supported_status}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjZubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chMohjVubj)}(hhh]h)}(h-Bitmask of optional stats which are availableh]h-Bitmask of optional stats which are available}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjqhMohjrubah}(h]h ]h"]h$]h&]uh1jhjVubeh}(h]h ]h"]h$]h&]uh1jhjqhMohjubj)}(h(``const char *region`` The memory regionh](j)}(h``const char *region``h]j)}(hjh]hconst char *region}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chMqhjubj)}(hhh]h)}(hThe memory regionh]hThe memory region}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chMphjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMqhjubeh}(h]h ]h"]h$]h&]uh1jhjūubeh}(h]h ] kernelindentah"]h$]h&]uh1jOhjGmhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j"drm_show_memory_stats (C function)c.drm_show_memory_statshNtauh1jhjGmhhhNhNubj)}(hhh](j)}(hIvoid drm_show_memory_stats (struct drm_printer *p, struct drm_file *file)h]j)}(hHvoid drm_show_memory_stats(struct drm_printer *p, struct drm_file *file)h](ja()}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jm(ah"]h$]h&]uh1j`(hjhhh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubj)}(hdrm_show_memory_statsh]j)}(hdrm_show_memory_statsh]hdrm_show_memory_stats}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubah}(h]h ](jjeh"]h$]h&]jAjBuh1jhjhhhjhMubjt)}(h.(struct drm_printer *p, struct drm_file *file)h](jz)}(hstruct drm_printer *ph](j)}(hjh]hstruct}(hj,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj(ubj)}(h h]h }(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj(ubh)}(hhh]j)}(h drm_printerh]h drm_printer}(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGubah}(h]h ]h"]h$]h&] refdomainj reftypej/ reftargetjLmodnameN classnameNjj)}j]j7)}j/jsbc.drm_show_memory_statsasbuh1hhj(ubj)}(h h]h }(hjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj(ubjL)}(hjOh]h*}(hjxhhhNhNubah}(h]h ]jXah"]h$]h&]uh1jKhj(ubj)}(hjXh]hp}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj(ubeh}(h]h ]h"]h$]h&]noemphjAjBuh1jyhj$ubjz)}(hstruct drm_file *fileh](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hdrm_fileh]hdrm_file}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj reftypej/ reftargetjmodnameN classnameNjj)}j]jfc.drm_show_memory_statsasbuh1hhjubj)}(h h]h }(hj٭hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjL)}(hjOh]h*}(hjhhhNhNubah}(h]h ]jXah"]h$]h&]uh1jKhjubj)}(hfileh]hfile}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjAjBuh1jyhj$ubeh}(h]h ]h"]h$]h&]jAjBuh1jshjhhhjhMubeh}(h]h ]h"]h$]h&]jAjBjuh1jjjhjhhhjhMubah}(h]jah ](j j!eh"]h$]h&]j%j&)j'huh1jhjhMhjhhubj))}(hhh]h)}(h7Helper to collect and show standard fdinfo memory statsh]h7Helper to collect and show standard fdinfo memory stats}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chMhjhhubah}(h]h ]h"]h$]h&]uh1j(hjhhhjhMubeh}(h]h ](j functioneh"]h$]h&]jIj jJj6jKj6jLjMjNuh1jhhhjGmhNhNubjP)}(h**Parameters** ``struct drm_printer *p`` the printer to print output to ``struct drm_file *file`` the DRM file **Description** Helper to iterate over GEM objects with a handle allocated in the specified file.h](h)}(h**Parameters**h]jZ)}(hj@h]h Parameters}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj>ubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chMhj:ubj)}(hhh](j)}(h9``struct drm_printer *p`` the printer to print output to h](j)}(h``struct drm_printer *p``h]j)}(hj_h]hstruct drm_printer *p}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jhj]ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chMhjYubj)}(hhh]h)}(hthe printer to print output toh]hthe printer to print output to}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjthMhjuubah}(h]h ]h"]h$]h&]uh1jhjYubeh}(h]h ]h"]h$]h&]uh1jhjthMhjVubj)}(h'``struct drm_file *file`` the DRM file h](j)}(h``struct drm_file *file``h]j)}(hjh]hstruct drm_file *file}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chMhjubj)}(hhh]h)}(h the DRM fileh]h the DRM file}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjVubeh}(h]h ]h"]h$]h&]uh1jhj:ubh)}(h**Description**h]jZ)}(hjӮh]h Description}(hjծhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjѮubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chMhj:ubh)}(hQHelper to iterate over GEM objects with a handle allocated in the specified file.h]hQHelper to iterate over GEM objects with a handle allocated in the specified file.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chMhj:ubeh}(h]h ] kernelindentah"]h$]h&]uh1jOhjGmhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jdrm_show_fdinfo (C function)c.drm_show_fdinfohNtauh1jhjGmhhhNhNubj)}(hhh](j)}(h9void drm_show_fdinfo (struct seq_file *m, struct file *f)h]j)}(h8void drm_show_fdinfo(struct seq_file *m, struct file *f)h](ja()}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jm(ah"]h$]h&]uh1j`(hjhhh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chMubj)}(h h]h }(hj'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhj&hMubj)}(hdrm_show_fdinfoh]j)}(hdrm_show_fdinfoh]hdrm_show_fdinfo}(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5ubah}(h]h ](jjeh"]h$]h&]jAjBuh1jhjhhhj&hMubjt)}(h$(struct seq_file *m, struct file *f)h](jz)}(hstruct seq_file *mh](j)}(hjh]hstruct}(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQubj)}(h h]h }(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQubh)}(hhh]j)}(hseq_fileh]hseq_file}(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjpubah}(h]h ]h"]h$]h&] refdomainj reftypej/ reftargetjumodnameN classnameNjj)}j]j7)}j/j;sbc.drm_show_fdinfoasbuh1hhjQubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQubjL)}(hjOh]h*}(hjhhhNhNubah}(h]h ]jXah"]h$]h&]uh1jKhjQubj)}(hmh]hm}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQubeh}(h]h ]h"]h$]h&]noemphjAjBuh1jyhjMubjz)}(hstruct file *fh](j)}(hjh]hstruct}(hjǯhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjïubj)}(h h]h }(hjԯhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjïubh)}(hhh]j)}(hfileh]hfile}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj reftypej/ reftargetjmodnameN classnameNjj)}j]jc.drm_show_fdinfoasbuh1hhjïubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjïubjL)}(hjOh]h*}(hjhhhNhNubah}(h]h ]jXah"]h$]h&]uh1jKhjïubj)}(hfh]hf}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjïubeh}(h]h ]h"]h$]h&]noemphjAjBuh1jyhjMubeh}(h]h ]h"]h$]h&]jAjBuh1jshjhhhj&hMubeh}(h]h ]h"]h$]h&]jAjBjuh1jjjhjhhhj&hMubah}(h]j ah ](j j!eh"]h$]h&]j%j&)j'huh1jhj&hMhj hhubj))}(hhh]h)}(hhelper for drm file fopsh]hhelper for drm file fops}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chMhjEhhubah}(h]h ]h"]h$]h&]uh1j(hj hhhj&hMubeh}(h]h ](j functioneh"]h$]h&]jIj jJj`jKj`jLjMjNuh1jhhhjGmhNhNubjP)}(hXf**Parameters** ``struct seq_file *m`` output stream ``struct file *f`` the device file instance **Description** Helper to implement fdinfo, for userspace to query usage stats, etc, of a process using the GPU. See also :c:type:`drm_driver.show_fdinfo `. For text output format description please see Documentation/gpu/drm-usage-stats.rsth](h)}(h**Parameters**h]jZ)}(hjjh]h Parameters}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjhubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chMhjdubj)}(hhh](j)}(h%``struct seq_file *m`` output stream h](j)}(h``struct seq_file *m``h]j)}(hjh]hstruct seq_file *m}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chMhjubj)}(hhh]h)}(h output streamh]h output stream}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h,``struct file *f`` the device file instance h](j)}(h``struct file *f``h]j)}(hj°h]hstruct file *f}(hjİhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chMhjubj)}(hhh]h)}(hthe device file instanceh]hthe device file instance}(hj۰hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjװhMhjذubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjװhMhjubeh}(h]h ]h"]h$]h&]uh1jhjdubh)}(h**Description**h]jZ)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chMhjdubh)}(hHelper to implement fdinfo, for userspace to query usage stats, etc, of a process using the GPU. See also :c:type:`drm_driver.show_fdinfo `.h](hkHelper to implement fdinfo, for userspace to query usage stats, etc, of a process using the GPU. See also }(hjhhhNhNubh)}(h-:c:type:`drm_driver.show_fdinfo `h]j)}(hjh]hdrm_driver.show_fdinfo}(hjhhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjjj drm_driveruh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chMhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj:hMhjdubh)}(hSFor text output format description please see Documentation/gpu/drm-usage-stats.rsth]hSFor text output format description please see Documentation/gpu/drm-usage-stats.rst}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chMhjdubeh}(h]h ] kernelindentah"]h$]h&]uh1jOhjGmhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jdrm_file_err (C function)c.drm_file_errhNtauh1jhjGmhhhNhNubj)}(hhh](j)}(hDvoid drm_file_err (struct drm_file *file_priv, const char *fmt, ...)h]j)}(hCvoid drm_file_err(struct drm_file *file_priv, const char *fmt, ...)h](ja()}(hvoidh]hvoid}(hjthhhNhNubah}(h]h ]jm(ah"]h$]h&]uh1j`(hjphhh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjphhhjhMubj)}(h drm_file_errh]j)}(h drm_file_errh]h drm_file_err}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jAjBuh1jhjphhhjhMubjt)}(h2(struct drm_file *file_priv, const char *fmt, ...)h](jz)}(hstruct drm_file *file_privh](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hdrm_fileh]hdrm_file}(hjϱhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj̱ubah}(h]h ]h"]h$]h&] refdomainj reftypej/ reftargetjѱmodnameN classnameNjj)}j]j7)}j/jsbc.drm_file_errasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjL)}(hjOh]h*}(hjhhhNhNubah}(h]h ]jXah"]h$]h&]uh1jKhjubj)}(h file_privh]h file_priv}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjAjBuh1jyhjubjz)}(hconst char *fmth](j)}(hj1*h]hconst}(hj#hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubja()}(hcharh]hchar}(hj>hhhNhNubah}(h]h ]jm(ah"]h$]h&]uh1j`(hjubj)}(h h]h }(hjLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjL)}(hjOh]h*}(hjZhhhNhNubah}(h]h ]jXah"]h$]h&]uh1jKhjubj)}(hfmth]hfmt}(hjghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjAjBuh1jyhjubjz)}(h...h]jL)}(h...h]h...}(hjhhhNhNubah}(h]h ]jXah"]h$]h&]uh1jKhj|ubah}(h]h ]h"]h$]h&]noemphjAjBuh1jyhjubeh}(h]h ]h"]h$]h&]jAjBuh1jshjphhhjhMubeh}(h]h ]h"]h$]h&]jAjBjuh1jjjhjlhhhjhMubah}(h]jgah ](j j!eh"]h$]h&]j%j&)j'huh1jhjhMhjihhubj))}(hhh]h)}(h@log process name, pid and client_name associated with a drm_fileh]h@log process name, pid and client_name associated with a drm_file}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chMhjhhubah}(h]h ]h"]h$]h&]uh1j(hjihhhjhMubeh}(h]h ](j functioneh"]h$]h&]jIj jJj²jKj²jLjMjNuh1jhhhjGmhNhNubjP)}(hX.**Parameters** ``struct drm_file *file_priv`` context of interest for process name and pid ``const char *fmt`` printf() like format string ``...`` variable arguments **Description** Helper function for clients which needs to log process details such as name and pid etc along with user logs.h](h)}(h**Parameters**h]jZ)}(hj̲h]h Parameters}(hjβhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjʲubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chMhjƲubj)}(hhh](j)}(hL``struct drm_file *file_priv`` context of interest for process name and pid h](j)}(h``struct drm_file *file_priv``h]j)}(hjh]hstruct drm_file *file_priv}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chMhjubj)}(hhh]h)}(h,context of interest for process name and pidh]h,context of interest for process name and pid}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h0``const char *fmt`` printf() like format string h](j)}(h``const char *fmt``h]j)}(hj$h]hconst char *fmt}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj"ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chMhjubj)}(hhh]h)}(hprintf() like format stringh]hprintf() like format string}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj9hMhj:ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj9hMhjubj)}(h``...`` variable arguments h](j)}(h``...``h]j)}(hj]h]h...}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj[ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chKhjWubj)}(hhh]h)}(hvariable argumentsh]hvariable arguments}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjrhKhjsubah}(h]h ]h"]h$]h&]uh1jhjWubeh}(h]h ]h"]h$]h&]uh1jhjrhKhjubeh}(h]h ]h"]h$]h&]uh1jhjƲubh)}(h**Description**h]jZ)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chKhjƲubh)}(hmHelper function for clients which needs to log process details such as name and pid etc along with user logs.h]hmHelper function for clients which needs to log process details such as name and pid etc along with user logs.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chMhjƲubeh}(h]h ] kernelindentah"]h$]h&]uh1jOhjGmhhhNhNubeh}(h](file-operationsjFmeh ]h"](file operationsdrm_driver_fopseh$]h&]uh1hhj(mhhhhhKexpect_referenced_by_name}jʳj;msexpect_referenced_by_id}jFmj;msubeh}(h]%open-close-file-operations-and-ioctlsah ]h"]&open/close, file operations and ioctlsah$]h&]uh1hhhhhhhhKubh)}(hhh](h)}(hMisc Utilitiesh]hMisc Utilities}(hjܳhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjٳhhhhhKubh)}(hhh](h)}(hPrinterh]hPrinter}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhKubh)}(h}A simple wrapper for dev_printk(), seq_printf(), etc. Allows same debug code to be used for both debugfs and printk logging.h]h}A simple wrapper for dev_printk(), seq_printf(), etc. Allows same debug code to be used for both debugfs and printk logging.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:161: ./include/drm/drm_print.hhK-hjhhubh)}(h For example::h]h For example:}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:161: ./include/drm/drm_print.hhK0hjhhubj2)}(hXvoid log_some_info(struct drm_printer *p) { drm_printf(p, "foo=%d\n", foo); drm_printf(p, "bar=%d\n", bar); } #ifdef CONFIG_DEBUG_FS void debugfs_show(struct seq_file *f) { struct drm_printer p = drm_seq_file_printer(f); log_some_info(&p); } #endif void some_other_function(...) { struct drm_printer p = drm_info_printer(drm->dev); log_some_info(&p); }h]hXvoid log_some_info(struct drm_printer *p) { drm_printf(p, "foo=%d\n", foo); drm_printf(p, "bar=%d\n", bar); } #ifdef CONFIG_DEBUG_FS void debugfs_show(struct seq_file *f) { struct drm_printer p = drm_seq_file_printer(f); log_some_info(&p); } #endif void some_other_function(...) { struct drm_printer p = drm_info_printer(drm->dev); log_some_info(&p); }}hjsbah}(h]h ]h"]h$]h&]jAjBuh1j1hZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:161: ./include/drm/drm_print.hhK2hjhhubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jdrm_debug_category (C enum)c.drm_debug_categoryhNtauh1jhjhhhNhNubj)}(hhh](j)}(hdrm_debug_categoryh]j)}(henum drm_debug_categoryh](j)}(hjAh]henum}(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=hhhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhKubj)}(h h]h }(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=hhhjNhKubj)}(hdrm_debug_categoryh]j)}(hj;h]hdrm_debug_category}(hjahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]ubah}(h]h ](jjeh"]h$]h&]jAjBuh1jhj=hhhjNhKubeh}(h]h ]h"]h$]h&]jAjBjuh1jjjhj9hhhjNhKubah}(h]j4ah ](j j!eh"]h$]h&]j%j&)j'huh1jhjNhKhj6hhubj))}(hhh]h)}(hThe DRM debug categoriesh]hThe DRM debug categories}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhKJhjhhubah}(h]h ]h"]h$]h&]uh1j(hj6hhhjNhKubeh}(h]h ](j enumeh"]h$]h&]jIj jJjjKjjLjMjNuh1jhhhjhNhNubjP)}(hXd**Constants** ``DRM_UT_CORE`` Used in the generic drm code: drm_ioctl.c, drm_mm.c, drm_memory.c, ... ``DRM_UT_DRIVER`` Used in the vendor specific part of the driver: i915, radeon, ... macro. ``DRM_UT_KMS`` Used in the modesetting code. ``DRM_UT_PRIME`` Used in the prime code. ``DRM_UT_ATOMIC`` Used in the atomic code. ``DRM_UT_VBL`` Used for verbose debug message in the vblank code. ``DRM_UT_STATE`` Used for verbose atomic state debugging. ``DRM_UT_LEASE`` Used in the lease code. ``DRM_UT_DP`` Used in the DP code. ``DRM_UT_DRMRES`` Used in the drm managed resources code.h](h)}(h **Constants**h]jZ)}(hjh]h Constants}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhKNhjubj)}(hhh](j)}(hW``DRM_UT_CORE`` Used in the generic drm code: drm_ioctl.c, drm_mm.c, drm_memory.c, ... h](j)}(h``DRM_UT_CORE``h]j)}(hjĴh]h DRM_UT_CORE}(hjƴhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj´ubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhKRhjubj)}(hhh]h)}(hFUsed in the generic drm code: drm_ioctl.c, drm_mm.c, drm_memory.c, ...h]hFUsed in the generic drm code: drm_ioctl.c, drm_mm.c, drm_memory.c, ...}(hjݴhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhKQhjڴubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjٴhKRhjubj)}(h[``DRM_UT_DRIVER`` Used in the vendor specific part of the driver: i915, radeon, ... macro. h](j)}(h``DRM_UT_DRIVER``h]j)}(hjh]h DRM_UT_DRIVER}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhKVhjubj)}(hhh]h)}(hHUsed in the vendor specific part of the driver: i915, radeon, ... macro.h]hHUsed in the vendor specific part of the driver: i915, radeon, ... macro.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhKUhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKVhjubj)}(h-``DRM_UT_KMS`` Used in the modesetting code. h](j)}(h``DRM_UT_KMS``h]j)}(hj8h]h DRM_UT_KMS}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6ubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhKYhj2ubj)}(hhh]h)}(hUsed in the modesetting code.h]hUsed in the modesetting code.}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjMhKYhjNubah}(h]h ]h"]h$]h&]uh1jhj2ubeh}(h]h ]h"]h$]h&]uh1jhjMhKYhjubj)}(h)``DRM_UT_PRIME`` Used in the prime code. h](j)}(h``DRM_UT_PRIME``h]j)}(hjqh]h DRM_UT_PRIME}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1jhjoubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhK\hjkubj)}(hhh]h)}(hUsed in the prime code.h]hUsed in the prime code.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhK\hjubah}(h]h ]h"]h$]h&]uh1jhjkubeh}(h]h ]h"]h$]h&]uh1jhjhK\hjubj)}(h+``DRM_UT_ATOMIC`` Used in the atomic code. h](j)}(h``DRM_UT_ATOMIC``h]j)}(hjh]h DRM_UT_ATOMIC}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhK_hjubj)}(hhh]h)}(hUsed in the atomic code.h]hUsed in the atomic code.}(hjõhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhK_hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhK_hjubj)}(hB``DRM_UT_VBL`` Used for verbose debug message in the vblank code. h](j)}(h``DRM_UT_VBL``h]j)}(hjh]h DRM_UT_VBL}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhKbhjݵubj)}(hhh]h)}(h2Used for verbose debug message in the vblank code.h]h2Used for verbose debug message in the vblank code.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKbhjubah}(h]h ]h"]h$]h&]uh1jhjݵubeh}(h]h ]h"]h$]h&]uh1jhjhKbhjubj)}(h:``DRM_UT_STATE`` Used for verbose atomic state debugging. h](j)}(h``DRM_UT_STATE``h]j)}(hjh]h DRM_UT_STATE}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhKehjubj)}(hhh]h)}(h(Used for verbose atomic state debugging.h]h(Used for verbose atomic state debugging.}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj1hKehj2ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj1hKehjubj)}(h)``DRM_UT_LEASE`` Used in the lease code. h](j)}(h``DRM_UT_LEASE``h]j)}(hjUh]h DRM_UT_LEASE}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjSubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhKhhjOubj)}(hhh]h)}(hUsed in the lease code.h]hUsed in the lease code.}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjjhKhhjkubah}(h]h ]h"]h$]h&]uh1jhjOubeh}(h]h ]h"]h$]h&]uh1jhjjhKhhjubj)}(h#``DRM_UT_DP`` Used in the DP code. h](j)}(h ``DRM_UT_DP``h]j)}(hjh]h DRM_UT_DP}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhKkhjubj)}(hhh]h)}(hUsed in the DP code.h]hUsed in the DP code.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKkhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKkhjubj)}(h9``DRM_UT_DRMRES`` Used in the drm managed resources code.h](j)}(h``DRM_UT_DRMRES``h]j)}(hjǶh]h DRM_UT_DRMRES}(hjɶhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjŶubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhKmhjubj)}(hhh]h)}(h'Used in the drm managed resources code.h]h'Used in the drm managed resources code.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhKnhjݶubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjܶhKmhjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jOhjhhhNhNubh)}(h**Description**h]jZ)}(hj h]h Description}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhKphjhhubh)}(hEach of the DRM debug logging macros use a specific category, and the logging is filtered by the drm.debug module parameter. This enum specifies the values for the interface.h]hEach of the DRM debug logging macros use a specific category, and the logging is filtered by the drm.debug module parameter. This enum specifies the values for the interface.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhKKhjhhubh)}(hkEach DRM_DEBUG_ macro logs to DRM_UT_ category, except DRM_DEBUG() logs to DRM_UT_CORE.h]hkEach DRM_DEBUG_ macro logs to DRM_UT_ category, except DRM_DEBUG() logs to DRM_UT_CORE.}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhKOhjhhubh)}(hnEnabling verbose debug messages is done through the drm.debug parameter, each category being enabled by a bit:h]hnEnabling verbose debug messages is done through the drm.debug parameter, each category being enabled by a bit:}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhKRhjhhubj%)}(h- drm.debug=0x1 will enable CORE messages - drm.debug=0x2 will enable DRIVER messages - drm.debug=0x3 will enable CORE and DRIVER messages - ... - drm.debug=0x1ff will enable all messages h]jN)}(hhh](jN)}(h'drm.debug=0x1 will enable CORE messagesh]h)}(hjVh]h'drm.debug=0x1 will enable CORE messages}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhKUhjTubah}(h]h ]h"]h$]h&]uh1jNhjQubjN)}(h)drm.debug=0x2 will enable DRIVER messagesh]h)}(hjnh]h)drm.debug=0x2 will enable DRIVER messages}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhKVhjlubah}(h]h ]h"]h$]h&]uh1jNhjQubjN)}(h2drm.debug=0x3 will enable CORE and DRIVER messagesh]h)}(hjh]h2drm.debug=0x3 will enable CORE and DRIVER messages}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhKWhjubah}(h]h ]h"]h$]h&]uh1jNhjQubjN)}(h...h]h)}(hjh]h...}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhKXhjubah}(h]h ]h"]h$]h&]uh1jNhjQubjN)}(h)drm.debug=0x1ff will enable all messages h]h)}(h(drm.debug=0x1ff will enable all messagesh]h(drm.debug=0x1ff will enable all messages}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhKYhjubah}(h]h ]h"]h$]h&]uh1jNhjQubeh}(h]h ]h"]h$]h&]jOjOuh1jNhjehKUhjMubah}(h]h ]h"]h$]h&]uh1j%hjehKUhjhhubh)}(hAn interesting feature is that it's possible to enable verbose logging at run-time by echoing the debug value in its sysfs node::h]hAn interesting feature is that it’s possible to enable verbose logging at run-time by echoing the debug value in its sysfs node:}(hjٷhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhK[hjhhubj2)}(h-# echo 0xf > /sys/module/drm/parameters/debugh]h-# echo 0xf > /sys/module/drm/parameters/debug}hjsbah}(h]h ]h"]h$]h&]jAjBuh1j1hZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhK^hjhhubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jdrm_printer (C struct) c.drm_printerhNtauh1jhjhhhNhNubj)}(hhh](j)}(h drm_printerh]j)}(hstruct drm_printerh](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj hhhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhKcubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj hhhjhKcubj)}(h drm_printerh]j)}(hj h]h drm_printer}(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,ubah}(h]h ](jjeh"]h$]h&]jAjBuh1jhj hhhjhKcubeh}(h]h ]h"]h$]h&]jAjBjuh1jjjhjhhhjhKcubah}(h]jah ](j j!eh"]h$]h&]j%j&)j'huh1jhjhKchjhhubj))}(hhh]h)}(hdrm output "stream"h]hdrm output “stream”}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhKhjOhhubah}(h]h ]h"]h$]h&]uh1j(hjhhhjhKcubeh}(h]h ](j structeh"]h$]h&]jIj jJjjjKjjjLjMjNuh1jhhhjhNhNubjP)}(h:**Definition**:: struct drm_printer { }; **Members**h](h)}(h**Definition**::h](jZ)}(h**Definition**h]h Definition}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjrubh:}(hjrhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhKhjnubj2)}(hstruct drm_printer { };h]hstruct drm_printer { };}hjsbah}(h]h ]h"]h$]h&]jAjBuh1j1hZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhKhjnubh)}(h **Members**h]jZ)}(hjh]hMembers}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhKhjnubeh}(h]h ] kernelindentah"]h$]h&]uh1jOhjhhhNhNubh)}(h**Description**h]jZ)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhKhjhhubh)}(hDo not use struct members directly. Use drm_printer_seq_file(), drm_printer_info(), etc to initialize. And drm_printf() for output.h]hDo not use struct members directly. Use drm_printer_seq_file(), drm_printer_info(), etc to initialize. And drm_printf() for output.}(hjոhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhKhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jdrm_vprintf (C function) c.drm_vprintfhNtauh1jhjhhhNhNubj)}(hhh](j)}(hFvoid drm_vprintf (struct drm_printer *p, const char *fmt, va_list *va)h]j)}(hEvoid drm_vprintf(struct drm_printer *p, const char *fmt, va_list *va)h](ja()}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jm(ah"]h$]h&]uh1j`(hjhhhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhKubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhj hKubj)}(h drm_vprintfh]j)}(h drm_vprintfh]h drm_vprintf}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jAjBuh1jhjhhhj hKubjt)}(h5(struct drm_printer *p, const char *fmt, va_list *va)h](jz)}(hstruct drm_printer *ph](j)}(hjh]hstruct}(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6ubj)}(h h]h }(hjGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6ubh)}(hhh]j)}(h drm_printerh]h drm_printer}(hjXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUubah}(h]h ]h"]h$]h&] refdomainj reftypej/ reftargetjZmodnameN classnameNjj)}j]j7)}j/j sb c.drm_vprintfasbuh1hhj6ubj)}(h h]h }(hjxhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6ubjL)}(hjOh]h*}(hjhhhNhNubah}(h]h ]jXah"]h$]h&]uh1jKhj6ubj)}(hjXh]hp}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6ubeh}(h]h ]h"]h$]h&]noemphjAjBuh1jyhj2ubjz)}(hconst char *fmth](j)}(hj1*h]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubja()}(hcharh]hchar}(hjƹhhhNhNubah}(h]h ]jm(ah"]h$]h&]uh1j`(hjubj)}(h h]h }(hjԹhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjL)}(hjOh]h*}(hjhhhNhNubah}(h]h ]jXah"]h$]h&]uh1jKhjubj)}(hfmth]hfmt}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjAjBuh1jyhj2ubjz)}(h va_list *vah](h)}(hhh]j)}(hva_listh]hva_list}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj reftypej/ reftargetj modnameN classnameNjj)}j]jt c.drm_vprintfasbuh1hhjubj)}(h h]h }(hj)hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjL)}(hjOh]h*}(hj7hhhNhNubah}(h]h ]jXah"]h$]h&]uh1jKhjubj)}(hvah]hva}(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjAjBuh1jyhj2ubeh}(h]h ]h"]h$]h&]jAjBuh1jshjhhhj hKubeh}(h]h ]h"]h$]h&]jAjBjuh1jjjhjhhhj hKubah}(h]jah ](j j!eh"]h$]h&]j%j&)j'huh1jhj hKhjhhubj))}(hhh]h)}(h'print to a :c:type:`drm_printer` streamh](h print to a }(hjnhhhNhNubh)}(h:c:type:`drm_printer`h]j)}(hjxh]h drm_printer}(hjzhhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjvubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjj)}j]jt c.drm_vprintfasbj drm_printeruh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhKhjnubh stream}(hjnhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhKhjkhhubah}(h]h ]h"]h$]h&]uh1j(hjhhhj hKubeh}(h]h ](j functioneh"]h$]h&]jIj jJjjKjjLjMjNuh1jhhhjhNhNubjP)}(h**Parameters** ``struct drm_printer *p`` the :c:type:`drm_printer` ``const char *fmt`` format string ``va_list *va`` the va_listh](h)}(h**Parameters**h]jZ)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhKhjubj)}(hhh](j)}(h4``struct drm_printer *p`` the :c:type:`drm_printer` h](j)}(h``struct drm_printer *p``h]j)}(hjغh]hstruct drm_printer *p}(hjںhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjֺubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhKhjҺubj)}(hhh]h)}(hthe :c:type:`drm_printer`h](hthe }(hjhhhNhNubh)}(h:c:type:`drm_printer`h]j)}(hjh]h drm_printer}(hjhhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjjj drm_printeruh1hhjhKhjubeh}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjҺubeh}(h]h ]h"]h$]h&]uh1jhjhKhjϺubj)}(h"``const char *fmt`` format string h](j)}(h``const char *fmt``h]j)}(hj0h]hconst char *fmt}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj.ubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhKhj*ubj)}(hhh]h)}(h format stringh]h format string}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjEhKhjFubah}(h]h ]h"]h$]h&]uh1jhj*ubeh}(h]h ]h"]h$]h&]uh1jhjEhKhjϺubj)}(h``va_list *va`` the va_listh](j)}(h``va_list *va``h]j)}(hjih]h va_list *va}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjgubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhKhjcubj)}(hhh]h)}(h the va_listh]h the va_list}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhKhjubah}(h]h ]h"]h$]h&]uh1jhjcubeh}(h]h ]h"]h$]h&]uh1jhj~hKhjϺubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jOhjhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jdrm_printf_indent (C macro)c.drm_printf_indenthNtauh1jhjhhhNhNubj)}(hhh](j)}(hdrm_printf_indenth]j)}(hdrm_printf_indenth]j)}(hdrm_printf_indenth]j)}(hjh]hdrm_printf_indent}(hjǻhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjûubah}(h]h ](jjeh"]h$]h&]jAjBuh1jhjhhhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhKubah}(h]h ]h"]h$]h&]jAjBjuh1jjjhjhhhjڻhKubah}(h]jah ](j j!eh"]h$]h&]j%j&)j'huh1jhjڻhKhjhhubj))}(hhh]h}(h]h ]h"]h$]h&]uh1j(hjhhhjڻhKubeh}(h]h ](j macroeh"]h$]h&]jIj jJjjKjjLjMjNuh1jhhhjhNhNubh)}(h1``drm_printf_indent (printer, indent, fmt, ...)``h]j)}(hjh]h-drm_printf_indent (printer, indent, fmt, ...)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhKhjhhubj%)}(h9Print to a :c:type:`drm_printer` stream with indentation h]h)}(h8Print to a :c:type:`drm_printer` stream with indentationh](h Print to a }(hjhhhNhNubh)}(h:c:type:`drm_printer`h]j)}(hjh]h drm_printer}(hjhhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjjj drm_printeruh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhKhjubh stream with indentation}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj:hKhjubah}(h]h ]h"]h$]h&]uh1j%hj:hKhjhhubjP)}(h**Parameters** ``printer`` DRM printer ``indent`` Tab indentation level (max 5) ``fmt`` Format string ``...`` variable argumentsh](h)}(h**Parameters**h]jZ)}(hjQh]h Parameters}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjOubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhKhjKubj)}(hhh](j)}(h``printer`` DRM printer h](j)}(h ``printer``h]j)}(hjph]hprinter}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjnubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhKhjjubj)}(hhh]h)}(h DRM printerh]h DRM printer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjgubj)}(h)``indent`` Tab indentation level (max 5) h](j)}(h ``indent``h]j)}(hjh]hindent}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhKhjubj)}(hhh]h)}(hTab indentation level (max 5)h]hTab indentation level (max 5)}(hj¼hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjgubj)}(h``fmt`` Format string h](j)}(h``fmt``h]j)}(hjh]hfmt}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhKhjܼubj)}(hhh]h)}(h Format stringh]h Format string}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjܼubeh}(h]h ]h"]h$]h&]uh1jhjhKhjgubj)}(h``...`` variable argumentsh](j)}(h``...``h]j)}(hjh]h...}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhKhjubj)}(hhh]h)}(hvariable argumentsh]hvariable arguments}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhKhj1ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj0hKhjgubeh}(h]h ]h"]h$]h&]uh1jhjKubeh}(h]h ] kernelindentah"]h$]h&]uh1jOhjhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jdrm_print_iterator (C struct)c.drm_print_iteratorhNtauh1jhjhhhNhNubj)}(hhh](j)}(hdrm_print_iteratorh]j)}(hstruct drm_print_iteratorh](j)}(hjh]hstruct}(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqhhhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhKubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqhhhjhKubj)}(hdrm_print_iteratorh]j)}(hjoh]hdrm_print_iterator}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jAjBuh1jhjqhhhjhKubeh}(h]h ]h"]h$]h&]jAjBjuh1jjjhjmhhhjhKubah}(h]jhah ](j j!eh"]h$]h&]j%j&)j'huh1jhjhKhjjhhubj))}(hhh]h)}(h+local struct used with drm_printer_coredumph]h+local struct used with drm_printer_coredump}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhKhjhhubah}(h]h ]h"]h$]h&]uh1j(hjjhhhjhKubeh}(h]h ](j structeh"]h$]h&]jIj jJjϽjKjϽjLjMjNuh1jhhhjhNhNubjP)}(hXz**Definition**:: struct drm_print_iterator { void *data; ssize_t start; ssize_t remain; }; **Members** ``data`` Pointer to the devcoredump output buffer, can be NULL if using drm_printer_coredump to determine size of devcoredump ``start`` The offset within the buffer to start writing ``remain`` The number of bytes to write for this iterationh](h)}(h**Definition**::h](jZ)}(h**Definition**h]h Definition}(hj۽hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj׽ubh:}(hj׽hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhKhjӽubj2)}(hUstruct drm_print_iterator { void *data; ssize_t start; ssize_t remain; };h]hUstruct drm_print_iterator { void *data; ssize_t start; ssize_t remain; };}hjsbah}(h]h ]h"]h$]h&]jAjBuh1j1hZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhKhjӽubh)}(h **Members**h]jZ)}(hjh]hMembers}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhKhjӽubj)}(hhh](j)}(h~``data`` Pointer to the devcoredump output buffer, can be NULL if using drm_printer_coredump to determine size of devcoredump h](j)}(h``data``h]j)}(hj$h]hdata}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj"ubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhKhjubj)}(hhh]h)}(htPointer to the devcoredump output buffer, can be NULL if using drm_printer_coredump to determine size of devcoredumph]htPointer to the devcoredump output buffer, can be NULL if using drm_printer_coredump to determine size of devcoredump}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhKhj:ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj9hKhjubj)}(h8``start`` The offset within the buffer to start writing h](j)}(h ``start``h]j)}(hj^h]hstart}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj\ubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhKhjXubj)}(hhh]h)}(h-The offset within the buffer to start writingh]h-The offset within the buffer to start writing}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjshKhjtubah}(h]h ]h"]h$]h&]uh1jhjXubeh}(h]h ]h"]h$]h&]uh1jhjshKhjubj)}(h:``remain`` The number of bytes to write for this iterationh](j)}(h ``remain``h]j)}(hjh]hremain}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhKhjubj)}(hhh]h)}(h/The number of bytes to write for this iterationh]h/The number of bytes to write for this iteration}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubeh}(h]h ]h"]h$]h&]uh1jhjӽubeh}(h]h ] kernelindentah"]h$]h&]uh1jOhjhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j!drm_coredump_printer (C function)c.drm_coredump_printerhNtauh1jhjhhhNhNubj)}(hhh](j)}(hIstruct drm_printer drm_coredump_printer (struct drm_print_iterator *iter)h]j)}(hHstruct drm_printer drm_coredump_printer(struct drm_print_iterator *iter)h](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhKubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhKubh)}(hhh]j)}(h drm_printerh]h drm_printer}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&] refdomainj reftypej/ reftargetjmodnameN classnameNjj)}j]j7)}j/drm_coredump_printersbc.drm_coredump_printerasbuh1hhjhhhjhKubj)}(h h]h }(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhKubj)}(hdrm_coredump_printerh]j)}(hj.h]hdrm_coredump_printer}(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?ubah}(h]h ](jjeh"]h$]h&]jAjBuh1jhjhhhjhKubjt)}(h!(struct drm_print_iterator *iter)h]jz)}(hstruct drm_print_iterator *iterh](j)}(hjh]hstruct}(hj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZubj)}(h h]h }(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZubh)}(hhh]j)}(hdrm_print_iteratorh]hdrm_print_iterator}(hj|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyubah}(h]h ]h"]h$]h&] refdomainj reftypej/ reftargetj~modnameN classnameNjj)}j]j,c.drm_coredump_printerasbuh1hhjZubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZubjL)}(hjOh]h*}(hjhhhNhNubah}(h]h ]jXah"]h$]h&]uh1jKhjZubj)}(hiterh]hiter}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZubeh}(h]h ]h"]h$]h&]noemphjAjBuh1jyhjVubah}(h]h ]h"]h$]h&]jAjBuh1jshjhhhjhKubeh}(h]h ]h"]h$]h&]jAjBjuh1jjjhjhhhjhKubah}(h]jah ](j j!eh"]h$]h&]j%j&)j'huh1jhjhKhjhhubj))}(hhh]h)}(hdconstruct a :c:type:`drm_printer` that can output to a buffer from the read function for devcoredumph](h construct a }(hj߿hhhNhNubh)}(h:c:type:`drm_printer`h]j)}(hjh]h drm_printer}(hjhhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjj)}j]j,c.drm_coredump_printerasbj drm_printeruh1hhjhKhj߿ubhC that can output to a buffer from the read function for devcoredump}(hj߿hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhKhjܿhhubah}(h]h ]h"]h$]h&]uh1j(hjhhhjhKubeh}(h]h ](j functioneh"]h$]h&]jIj jJjjKjjLjMjNuh1jhhhjhNhNubjP)}(hX **Parameters** ``struct drm_print_iterator *iter`` A pointer to a struct drm_print_iterator for the read instance **Description** This wrapper extends drm_printf() to work with a dev_coredumpm() callback function. The passed in drm_print_iterator struct contains the buffer pointer, size and offset as passed in from devcoredump. For example:: void coredump_read(char *buffer, loff_t offset, size_t count, void *data, size_t datalen) { struct drm_print_iterator iter; struct drm_printer p; iter.data = buffer; iter.start = offset; iter.remain = count; p = drm_coredump_printer(&iter); drm_printf(p, "foo=%d\n", foo); } void makecoredump(...) { ... dev_coredumpm(dev, THIS_MODULE, data, 0, GFP_KERNEL, coredump_read, ...) } The above example has a time complexity of O(N^2), where N is the size of the devcoredump. This is acceptable for small devcoredumps but scales poorly for larger ones. Another use case for drm_coredump_printer is to capture the devcoredump into a saved buffer before the dev_coredump() callback. This involves two passes: one to determine the size of the devcoredump and another to print it to a buffer. Then, in dev_coredump(), copy from the saved buffer into the devcoredump read buffer. For example:: char *devcoredump_saved_buffer; ssize_t __coredump_print(char *buffer, ssize_t count, ...) { struct drm_print_iterator iter; struct drm_printer p; iter.data = buffer; iter.start = 0; iter.remain = count; p = drm_coredump_printer(&iter); drm_printf(p, "foo=%d\n", foo); ... return count - iter.remain; } void coredump_print(...) { ssize_t count; count = __coredump_print(NULL, INT_MAX, ...); devcoredump_saved_buffer = kvmalloc(count, GFP_KERNEL); __coredump_print(devcoredump_saved_buffer, count, ...); } void coredump_read(char *buffer, loff_t offset, size_t count, void *data, size_t datalen) { ... memcpy(buffer, devcoredump_saved_buffer + offset, count); ... } The above example has a time complexity of O(N*2), where N is the size of the devcoredump. This scales better than the previous example for larger devcoredumps. **Return** The :c:type:`drm_printer` objecth](h)}(h**Parameters**h]jZ)}(hj)h]h Parameters}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj'ubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhKhj#ubj)}(hhh]j)}(hc``struct drm_print_iterator *iter`` A pointer to a struct drm_print_iterator for the read instance h](j)}(h#``struct drm_print_iterator *iter``h]j)}(hjHh]hstruct drm_print_iterator *iter}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjFubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhKhjBubj)}(hhh]h)}(h>A pointer to a struct drm_print_iterator for the read instanceh]h>A pointer to a struct drm_print_iterator for the read instance}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1hhj]hKhj^ubah}(h]h ]h"]h$]h&]uh1jhjBubeh}(h]h ]h"]h$]h&]uh1jhj]hKhj?ubah}(h]h ]h"]h$]h&]uh1jhj#ubh)}(h**Description**h]jZ)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhKhj#ubh)}(hThis wrapper extends drm_printf() to work with a dev_coredumpm() callback function. The passed in drm_print_iterator struct contains the buffer pointer, size and offset as passed in from devcoredump.h]hThis wrapper extends drm_printf() to work with a dev_coredumpm() callback function. The passed in drm_print_iterator struct contains the buffer pointer, size and offset as passed in from devcoredump.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhKhj#ubh)}(h For example::h]h For example:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhKhj#ubj2)}(hXvoid coredump_read(char *buffer, loff_t offset, size_t count, void *data, size_t datalen) { struct drm_print_iterator iter; struct drm_printer p; iter.data = buffer; iter.start = offset; iter.remain = count; p = drm_coredump_printer(&iter); drm_printf(p, "foo=%d\n", foo); } void makecoredump(...) { ... dev_coredumpm(dev, THIS_MODULE, data, 0, GFP_KERNEL, coredump_read, ...) }h]hXvoid coredump_read(char *buffer, loff_t offset, size_t count, void *data, size_t datalen) { struct drm_print_iterator iter; struct drm_printer p; iter.data = buffer; iter.start = offset; iter.remain = count; p = drm_coredump_printer(&iter); drm_printf(p, "foo=%d\n", foo); } void makecoredump(...) { ... dev_coredumpm(dev, THIS_MODULE, data, 0, GFP_KERNEL, coredump_read, ...) }}hjsbah}(h]h ]h"]h$]h&]jAjBuh1j1hZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhKhj#ubh)}(hThe above example has a time complexity of O(N^2), where N is the size of the devcoredump. This is acceptable for small devcoredumps but scales poorly for larger ones.h]hThe above example has a time complexity of O(N^2), where N is the size of the devcoredump. This is acceptable for small devcoredumps but scales poorly for larger ones.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhMhj#ubh)}(hXAAnother use case for drm_coredump_printer is to capture the devcoredump into a saved buffer before the dev_coredump() callback. This involves two passes: one to determine the size of the devcoredump and another to print it to a buffer. Then, in dev_coredump(), copy from the saved buffer into the devcoredump read buffer.h]hXAAnother use case for drm_coredump_printer is to capture the devcoredump into a saved buffer before the dev_coredump() callback. This involves two passes: one to determine the size of the devcoredump and another to print it to a buffer. Then, in dev_coredump(), copy from the saved buffer into the devcoredump read buffer.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhMhj#ubh)}(h For example::h]h For example:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhMhj#ubj2)}(hX2char *devcoredump_saved_buffer; ssize_t __coredump_print(char *buffer, ssize_t count, ...) { struct drm_print_iterator iter; struct drm_printer p; iter.data = buffer; iter.start = 0; iter.remain = count; p = drm_coredump_printer(&iter); drm_printf(p, "foo=%d\n", foo); ... return count - iter.remain; } void coredump_print(...) { ssize_t count; count = __coredump_print(NULL, INT_MAX, ...); devcoredump_saved_buffer = kvmalloc(count, GFP_KERNEL); __coredump_print(devcoredump_saved_buffer, count, ...); } void coredump_read(char *buffer, loff_t offset, size_t count, void *data, size_t datalen) { ... memcpy(buffer, devcoredump_saved_buffer + offset, count); ... }h]hX2char *devcoredump_saved_buffer; ssize_t __coredump_print(char *buffer, ssize_t count, ...) { struct drm_print_iterator iter; struct drm_printer p; iter.data = buffer; iter.start = 0; iter.remain = count; p = drm_coredump_printer(&iter); drm_printf(p, "foo=%d\n", foo); ... return count - iter.remain; } void coredump_print(...) { ssize_t count; count = __coredump_print(NULL, INT_MAX, ...); devcoredump_saved_buffer = kvmalloc(count, GFP_KERNEL); __coredump_print(devcoredump_saved_buffer, count, ...); } void coredump_read(char *buffer, loff_t offset, size_t count, void *data, size_t datalen) { ... memcpy(buffer, devcoredump_saved_buffer + offset, count); ... }}hjsbah}(h]h ]h"]h$]h&]jAjBuh1j1hZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhM!hj#ubh)}(hThe above example has a time complexity of O(N*2), where N is the size of the devcoredump. This scales better than the previous example for larger devcoredumps.h]hThe above example has a time complexity of O(N*2), where N is the size of the devcoredump. This scales better than the previous example for larger devcoredumps.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhMDhj#ubh)}(h **Return**h]jZ)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhMHhj#ubh)}(h The :c:type:`drm_printer` objecth](hThe }(hj)hhhNhNubh)}(h:c:type:`drm_printer`h]j)}(hj3h]h drm_printer}(hj5hhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhj1ubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjjj drm_printeruh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhMIhj)ubh object}(hj)hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjPhMIhj#ubeh}(h]h ] kernelindentah"]h$]h&]uh1jOhjhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j)drm_coredump_printer_is_full (C function)c.drm_coredump_printer_is_fullhNtauh1jhjhhhNhNubj)}(hhh](j)}(h9bool drm_coredump_printer_is_full (struct drm_printer *p)h]j)}(h8bool drm_coredump_printer_is_full(struct drm_printer *p)h](ja()}(hjd(h]hbool}(hj{hhhNhNubah}(h]h ]jm(ah"]h$]h&]uh1j`(hjwhhhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhM\ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjwhhhjhM\ubj)}(hdrm_coredump_printer_is_fullh]j)}(hdrm_coredump_printer_is_fullh]hdrm_coredump_printer_is_full}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jAjBuh1jhjwhhhjhM\ubjt)}(h(struct drm_printer *p)h]jz)}(hstruct drm_printer *ph](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(h drm_printerh]h drm_printer}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj reftypej/ reftargetjmodnameN classnameNjj)}j]j7)}j/jsbc.drm_coredump_printer_is_fullasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjL)}(hjOh]h*}(hjhhhNhNubah}(h]h ]jXah"]h$]h&]uh1jKhjubj)}(hjXh]hp}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjAjBuh1jyhjubah}(h]h ]h"]h$]h&]jAjBuh1jshjwhhhjhM\ubeh}(h]h ]h"]h$]h&]jAjBjuh1jjjhjshhhjhM\ubah}(h]jnah ](j j!eh"]h$]h&]j%j&)j'huh1jhjhM\hjphhubj))}(hhh]h)}(h#DRM coredump printer output is fullh]h#DRM coredump printer output is full}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhM\hj6hhubah}(h]h ]h"]h$]h&]uh1j(hjphhhjhM\ubeh}(h]h ](j functioneh"]h$]h&]jIj jJjQjKjQjLjMjNuh1jhhhjhNhNubjP)}(h**Parameters** ``struct drm_printer *p`` DRM coredump printer **Description** DRM printer output is full, useful to short circuit coredump printing once printer is full. **Return** True if DRM coredump printer output buffer is full, False otherwiseh](h)}(h**Parameters**h]jZ)}(hj[h]h Parameters}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjYubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhM`hjUubj)}(hhh]j)}(h/``struct drm_printer *p`` DRM coredump printer h](j)}(h``struct drm_printer *p``h]j)}(hjzh]hstruct drm_printer *p}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjxubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhM]hjtubj)}(hhh]h)}(hDRM coredump printerh]hDRM coredump printer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM]hjubah}(h]h ]h"]h$]h&]uh1jhjtubeh}(h]h ]h"]h$]h&]uh1jhjhM]hjqubah}(h]h ]h"]h$]h&]uh1jhjUubh)}(h**Description**h]jZ)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhM_hjUubh)}(h[DRM printer output is full, useful to short circuit coredump printing once printer is full.h]h[DRM printer output is full, useful to short circuit coredump printing once printer is full.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhM^hjUubh)}(h **Return**h]jZ)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhMahjUubh)}(hCTrue if DRM coredump printer output buffer is full, False otherwiseh]hCTrue if DRM coredump printer output buffer is full, False otherwise}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhMbhjUubeh}(h]h ] kernelindentah"]h$]h&]uh1jOhjhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j!drm_seq_file_printer (C function)c.drm_seq_file_printerhNtauh1jhjhhhNhNubj)}(hhh](j)}(hubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjj4jseq_fileuh1hhjhKhjubeh}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhMphj hhubah}(h]h ]h"]h$]h&]uh1j(hjhhhj.hMpubeh}(h]h ](j functioneh"]h$]h&]jIj jJjmjKjmjLjMjNuh1jhhhjhNhNubjP)}(h**Parameters** ``struct seq_file *f`` the :c:type:`struct seq_file ` to output to **Return** The :c:type:`drm_printer` objecth](h)}(h**Parameters**h]jZ)}(hjwh]h Parameters}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjuubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhMthjqubj)}(hhh]j)}(hM``struct seq_file *f`` the :c:type:`struct seq_file ` to output to h](j)}(h``struct seq_file *f``h]j)}(hjh]hstruct seq_file *f}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhMqhjubj)}(hhh]h)}(h5the :c:type:`struct seq_file ` to output toh](hthe }(hjhhhNhNubh)}(h$:c:type:`struct seq_file `h]j)}(hjh]hstruct seq_file}(hjhhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjjjseq_fileuh1hhjhMqhjubh to output to}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMqhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMqhjubah}(h]h ]h"]h$]h&]uh1jhjqubh)}(h **Return**h]jZ)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhMshjqubh)}(h The :c:type:`drm_printer` objecth](hThe }(hj hhhNhNubh)}(h:c:type:`drm_printer`h]j)}(hjh]h drm_printer}(hjhhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjjj drm_printeruh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhMshj ubh object}(hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj1hMshjqubeh}(h]h ] kernelindentah"]h$]h&]uh1jOhjhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jdrm_info_printer (C function)c.drm_info_printerhNtauh1jhjhhhNhNubj)}(hhh](j)}(h8struct drm_printer drm_info_printer (struct device *dev)h]j)}(h7struct drm_printer drm_info_printer(struct device *dev)h](j)}(hjh]hstruct}(hj\hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjXhhhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhMubj)}(h h]h }(hjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjXhhhjihMubh)}(hhh]j)}(h drm_printerh]h drm_printer}(hj{hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjxubah}(h]h ]h"]h$]h&] refdomainj reftypej/ reftargetj}modnameN classnameNjj)}j]j7)}j/drm_info_printersbc.drm_info_printerasbuh1hhjXhhhjihMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjXhhhjihMubj)}(hdrm_info_printerh]j)}(hjh]hdrm_info_printer}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jAjBuh1jhjXhhhjihMubjt)}(h(struct device *dev)h]jz)}(hstruct device *devh](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hdeviceh]hdevice}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj reftypej/ reftargetjmodnameN classnameNjj)}j]jc.drm_info_printerasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjL)}(hjOh]h*}(hjhhhNhNubah}(h]h ]jXah"]h$]h&]uh1jKhjubj)}(hdevh]hdev}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjAjBuh1jyhjubah}(h]h ]h"]h$]h&]jAjBuh1jshjXhhhjihMubeh}(h]h ]h"]h$]h&]jAjBjuh1jjjhjThhhjihMubah}(h]jOah ](j j!eh"]h$]h&]j%j&)j'huh1jhjihMhjQhhubj))}(hhh]h)}(h>construct a :c:type:`drm_printer` that outputs to dev_printk()h](h construct a }(hjJhhhNhNubh)}(h:c:type:`drm_printer`h]j)}(hjTh]h drm_printer}(hjVhhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjRubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjj)}j]jc.drm_info_printerasbj drm_printeruh1hhjhKhjJubh that outputs to dev_printk()}(hjJhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhMhjGhhubah}(h]h ]h"]h$]h&]uh1j(hjQhhhjihMubeh}(h]h ](j functioneh"]h$]h&]jIj jJjjKjjLjMjNuh1jhhhjhNhNubjP)}(h**Parameters** ``struct device *dev`` the :c:type:`struct device ` pointer **Return** The :c:type:`drm_printer` objecth](h)}(h**Parameters**h]jZ)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhMhjubj)}(hhh]j)}(hD``struct device *dev`` the :c:type:`struct device ` pointer h](j)}(h``struct device *dev``h]j)}(hjh]hstruct device *dev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhMhjubj)}(hhh]h)}(h,the :c:type:`struct device ` pointerh](hthe }(hjhhhNhNubh)}(h :c:type:`struct device `h]j)}(hjh]h struct device}(hjhhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjjjdeviceuh1hhjhMhjubh pointer}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubh)}(h **Return**h]jZ)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhMhjubh)}(h The :c:type:`drm_printer` objecth](hThe }(hj'hhhNhNubh)}(h:c:type:`drm_printer`h]j)}(hj1h]h drm_printer}(hj3hhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhj/ubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjjj drm_printeruh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhMhj'ubh object}(hj'hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjNhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jOhjhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jdrm_dbg_printer (C function)c.drm_dbg_printerhNtauh1jhjhhhNhNubj)}(hhh](j)}(hqstruct drm_printer drm_dbg_printer (struct drm_device *drm, enum drm_debug_category category, const char *prefix)h]j)}(hpstruct drm_printer drm_dbg_printer(struct drm_device *drm, enum drm_debug_category category, const char *prefix)h](j)}(hjh]hstruct}(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuhhhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuhhhjhMubh)}(hhh]j)}(h drm_printerh]h drm_printer}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj reftypej/ reftargetjmodnameN classnameNjj)}j]j7)}j/drm_dbg_printersbc.drm_dbg_printerasbuh1hhjuhhhjhMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuhhhjhMubj)}(hdrm_dbg_printerh]j)}(hjh]hdrm_dbg_printer}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jAjBuh1jhjuhhhjhMubjt)}(hN(struct drm_device *drm, enum drm_debug_category category, const char *prefix)h](jz)}(hstruct drm_device *drmh](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(h drm_deviceh]h drm_device}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj reftypej/ reftargetjmodnameN classnameNjj)}j]jc.drm_dbg_printerasbuh1hhjubj)}(h h]h }(hj"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjL)}(hjOh]h*}(hj0hhhNhNubah}(h]h ]jXah"]h$]h&]uh1jKhjubj)}(hdrmh]hdrm}(hj=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjAjBuh1jyhjubjz)}(h enum drm_debug_category categoryh](j)}(hjAh]henum}(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRubj)}(h h]h }(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRubh)}(hhh]j)}(hdrm_debug_categoryh]hdrm_debug_category}(hjthhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqubah}(h]h ]h"]h$]h&] refdomainj reftypej/ reftargetjvmodnameN classnameNjj)}j]jc.drm_dbg_printerasbuh1hhjRubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRubj)}(hcategoryh]hcategory}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRubeh}(h]h ]h"]h$]h&]noemphjAjBuh1jyhjubjz)}(hconst char *prefixh](j)}(hj1*h]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubja()}(hcharh]hchar}(hjhhhNhNubah}(h]h ]jm(ah"]h$]h&]uh1j`(hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjL)}(hjOh]h*}(hjhhhNhNubah}(h]h ]jXah"]h$]h&]uh1jKhjubj)}(hprefixh]hprefix}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjAjBuh1jyhjubeh}(h]h ]h"]h$]h&]jAjBuh1jshjuhhhjhMubeh}(h]h ]h"]h$]h&]jAjBjuh1jjjhjqhhhjhMubah}(h]jlah ](j j!eh"]h$]h&]j%j&)j'huh1jhjhMhjnhhubj))}(hhh]h)}(h@construct a :c:type:`drm_printer` for drm device specific outputh](h construct a }(hj'hhhNhNubh)}(h:c:type:`drm_printer`h]j)}(hj1h]h drm_printer}(hj3hhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhj/ubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjj)}j]jc.drm_dbg_printerasbj drm_printeruh1hhjhKhj'ubh for drm device specific output}(hj'hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhMhj$hhubah}(h]h ]h"]h$]h&]uh1j(hjnhhhjhMubeh}(h]h ](j functioneh"]h$]h&]jIj jJjgjKjgjLjMjNuh1jhhhjhNhNubjP)}(hX**Parameters** ``struct drm_device *drm`` the :c:type:`struct drm_device ` pointer, or NULL ``enum drm_debug_category category`` the debug category to use ``const char *prefix`` debug output prefix, or NULL for no prefix **Return** The :c:type:`drm_printer` objecth](h)}(h**Parameters**h]jZ)}(hjqh]h Parameters}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjoubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhMhjkubj)}(hhh](j)}(hY``struct drm_device *drm`` the :c:type:`struct drm_device ` pointer, or NULL h](j)}(h``struct drm_device *drm``h]j)}(hjh]hstruct drm_device *drm}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhMhjubj)}(hhh]h)}(h=the :c:type:`struct drm_device ` pointer, or NULLh](hthe }(hjhhhNhNubh)}(h(:c:type:`struct drm_device `h]j)}(hjh]hstruct drm_device}(hjhhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjjj drm_deviceuh1hhjhMhjubh pointer, or NULL}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h?``enum drm_debug_category category`` the debug category to use h](j)}(h$``enum drm_debug_category category``h]j)}(hjh]h enum drm_debug_category category}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhMhjubj)}(hhh]h)}(hthe debug category to useh]hthe debug category to use}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(hB``const char *prefix`` debug output prefix, or NULL for no prefix h](j)}(h``const char *prefix``h]j)}(hj%h]hconst char *prefix}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj#ubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhMhjubj)}(hhh]h)}(h*debug output prefix, or NULL for no prefixh]h*debug output prefix, or NULL for no prefix}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj:hMhj;ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj:hMhjubeh}(h]h ]h"]h$]h&]uh1jhjkubh)}(h **Return**h]jZ)}(hj`h]hReturn}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj^ubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhMhjkubh)}(h The :c:type:`drm_printer` objecth](hThe }(hjvhhhNhNubh)}(h:c:type:`drm_printer`h]j)}(hjh]h drm_printer}(hjhhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhj~ubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjjj drm_printeruh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhMhjvubh object}(hjvhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMhjkubeh}(h]h ] kernelindentah"]h$]h&]uh1jOhjhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jdrm_err_printer (C function)c.drm_err_printerhNtauh1jhjhhhNhNubj)}(hhh](j)}(hOstruct drm_printer drm_err_printer (struct drm_device *drm, const char *prefix)h]j)}(hNstruct drm_printer drm_err_printer(struct drm_device *drm, const char *prefix)h](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubh)}(hhh]j)}(h drm_printerh]h drm_printer}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj reftypej/ reftargetjmodnameN classnameNjj)}j]j7)}j/drm_err_printersbc.drm_err_printerasbuh1hhjhhhjhMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubj)}(hdrm_err_printerh]j)}(hjh]hdrm_err_printer}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jAjBuh1jhjhhhjhMubjt)}(h,(struct drm_device *drm, const char *prefix)h](jz)}(hstruct drm_device *drmh](j)}(hjh]hstruct}(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubj)}(h h]h }(hjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubh)}(hhh]j)}(h drm_deviceh]h drm_device}(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPubah}(h]h ]h"]h$]h&] refdomainj reftypej/ reftargetjUmodnameN classnameNjj)}j]jc.drm_err_printerasbuh1hhj1ubj)}(h h]h }(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubjL)}(hjOh]h*}(hjhhhNhNubah}(h]h ]jXah"]h$]h&]uh1jKhj1ubj)}(hdrmh]hdrm}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubeh}(h]h ]h"]h$]h&]noemphjAjBuh1jyhj-ubjz)}(hconst char *prefixh](j)}(hj1*h]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubja()}(hcharh]hchar}(hjhhhNhNubah}(h]h ]jm(ah"]h$]h&]uh1j`(hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjL)}(hjOh]h*}(hjhhhNhNubah}(h]h ]jXah"]h$]h&]uh1jKhjubj)}(hprefixh]hprefix}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjAjBuh1jyhj-ubeh}(h]h ]h"]h$]h&]jAjBuh1jshjhhhjhMubeh}(h]h ]h"]h$]h&]jAjBjuh1jjjhjhhhjhMubah}(h]jah ](j j!eh"]h$]h&]j%j&)j'huh1jhjhMhjhhubj))}(hhh]h)}(h;construct a :c:type:`drm_printer` that outputs to drm_err()h](h construct a }(hjhhhNhNubh)}(h:c:type:`drm_printer`h]j)}(hjh]h drm_printer}(hjhhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjj)}j]jc.drm_err_printerasbj drm_printeruh1hhjhKhjubh that outputs to drm_err()}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhMhjhhubah}(h]h ]h"]h$]h&]uh1j(hjhhhjhMubeh}(h]h ](j functioneh"]h$]h&]jIj jJjSjKjSjLjMjNuh1jhhhjhNhNubjP)}(h**Parameters** ``struct drm_device *drm`` the :c:type:`struct drm_device ` pointer ``const char *prefix`` debug output prefix, or NULL for no prefix **Return** The :c:type:`drm_printer` objecth](h)}(h**Parameters**h]jZ)}(hj]h]h Parameters}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj[ubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhMhjWubj)}(hhh](j)}(hP``struct drm_device *drm`` the :c:type:`struct drm_device ` pointer h](j)}(h``struct drm_device *drm``h]j)}(hj|h]hstruct drm_device *drm}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjzubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhMhjvubj)}(hhh]h)}(h4the :c:type:`struct drm_device ` pointerh](hthe }(hjhhhNhNubh)}(h(:c:type:`struct drm_device `h]j)}(hjh]hstruct drm_device}(hjhhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjjj drm_deviceuh1hhjhMhjubh pointer}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjvubeh}(h]h ]h"]h$]h&]uh1jhjhMhjsubj)}(hB``const char *prefix`` debug output prefix, or NULL for no prefix h](j)}(h``const char *prefix``h]j)}(hjh]hconst char *prefix}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhMhjubj)}(hhh]h)}(h*debug output prefix, or NULL for no prefixh]h*debug output prefix, or NULL for no prefix}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjsubeh}(h]h ]h"]h$]h&]uh1jhjWubh)}(h **Return**h]jZ)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhMhjWubh)}(h The :c:type:`drm_printer` objecth](hThe }(hj)hhhNhNubh)}(h:c:type:`drm_printer`h]j)}(hj3h]h drm_printer}(hj5hhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhj1ubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjjj drm_printeruh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhMhj)ubh object}(hj)hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjPhMhjWubeh}(h]h ] kernelindentah"]h$]h&]uh1jOhjhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jdrm_line_printer (C function)c.drm_line_printerhNtauh1jhjhhhNhNubj)}(hhh](j)}(hdstruct drm_printer drm_line_printer (struct drm_printer *p, const char *prefix, unsigned int series)h]j)}(hcstruct drm_printer drm_line_printer(struct drm_printer *p, const char *prefix, unsigned int series)h](j)}(hjh]hstruct}(hj{hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjwhhhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjwhhhjhMubh)}(hhh]j)}(h drm_printerh]h drm_printer}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj reftypej/ reftargetjmodnameN classnameNjj)}j]j7)}j/drm_line_printersbc.drm_line_printerasbuh1hhjwhhhjhMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjwhhhjhMubj)}(hdrm_line_printerh]j)}(hjh]hdrm_line_printer}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jAjBuh1jhjwhhhjhMubjt)}(h@(struct drm_printer *p, const char *prefix, unsigned int series)h](jz)}(hstruct drm_printer *ph](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(h drm_printerh]h drm_printer}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj reftypej/ reftargetjmodnameN classnameNjj)}j]jc.drm_line_printerasbuh1hhjubj)}(h h]h }(hj$hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjL)}(hjOh]h*}(hj2hhhNhNubah}(h]h ]jXah"]h$]h&]uh1jKhjubj)}(hjXh]hp}(hj?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjAjBuh1jyhjubjz)}(hconst char *prefixh](j)}(hj1*h]hconst}(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSubj)}(h h]h }(hjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSubja()}(hcharh]hchar}(hjrhhhNhNubah}(h]h ]jm(ah"]h$]h&]uh1j`(hjSubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSubjL)}(hjOh]h*}(hjhhhNhNubah}(h]h ]jXah"]h$]h&]uh1jKhjSubj)}(hprefixh]hprefix}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSubeh}(h]h ]h"]h$]h&]noemphjAjBuh1jyhjubjz)}(hunsigned int seriesh](ja()}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jm(ah"]h$]h&]uh1j`(hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubja()}(hinth]hint}(hjhhhNhNubah}(h]h ]jm(ah"]h$]h&]uh1j`(hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hseriesh]hseries}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjAjBuh1jyhjubeh}(h]h ]h"]h$]h&]jAjBuh1jshjwhhhjhMubeh}(h]h ]h"]h$]h&]jAjBjuh1jjjhjshhhjhMubah}(h]jnah ](j j!eh"]h$]h&]j%j&)j'huh1jhjhMhjphhubj))}(hhh]h)}(hIconstruct a :c:type:`drm_printer` that prefixes outputs with line numbersh](h construct a }(hjhhhNhNubh)}(h:c:type:`drm_printer`h]j)}(hj h]h drm_printer}(hj"hhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjj)}j]jc.drm_line_printerasbj drm_printeruh1hhjhKhjubh( that prefixes outputs with line numbers}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhMhjhhubah}(h]h ]h"]h$]h&]uh1j(hjphhhjhMubeh}(h]h ](j functioneh"]h$]h&]jIj jJjVjKjVjLjMjNuh1jhhhjhNhNubjP)}(hX**Parameters** ``struct drm_printer *p`` the :c:type:`struct drm_printer ` which actually generates the output ``const char *prefix`` optional output prefix, or NULL for no prefix ``unsigned int series`` optional unique series identifier, or 0 to omit identifier in the output **Description** This printer can be used to increase the robustness of the captured output to make sure we didn't lost any intermediate lines of the output. Helpful while capturing some crash data. Example 1:: void crash_dump(struct drm_device *drm) { static unsigned int id; struct drm_printer p = drm_err_printer(drm, "crash"); struct drm_printer lp = drm_line_printer(&p, "dump", ++id); drm_printf(&lp, "foo"); drm_printf(&lp, "bar"); } Above code will print into the dmesg something like:: [ ] 0000:00:00.0: [drm] *ERROR* crash dump 1.1: foo [ ] 0000:00:00.0: [drm] *ERROR* crash dump 1.2: bar Example 2:: void line_dump(struct device *dev) { struct drm_printer p = drm_info_printer(dev); struct drm_printer lp = drm_line_printer(&p, NULL, 0); drm_printf(&lp, "foo"); drm_printf(&lp, "bar"); } Above code will print:: [ ] 0000:00:00.0: [drm] 1: foo [ ] 0000:00:00.0: [drm] 2: bar **Return** The :c:type:`drm_printer` objecth](h)}(h**Parameters**h]jZ)}(hj`h]h Parameters}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj^ubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhMhjZubj)}(hhh](j)}(hm``struct drm_printer *p`` the :c:type:`struct drm_printer ` which actually generates the output h](j)}(h``struct drm_printer *p``h]j)}(hjh]hstruct drm_printer *p}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj}ubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhMhjyubj)}(hhh]h)}(hRthe :c:type:`struct drm_printer ` which actually generates the outputh](hthe }(hjhhhNhNubh)}(h*:c:type:`struct drm_printer `h]j)}(hjh]hstruct drm_printer}(hjhhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjjj drm_printeruh1hhjhMhjubh$ which actually generates the output}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjyubeh}(h]h ]h"]h$]h&]uh1jhjhMhjvubj)}(hE``const char *prefix`` optional output prefix, or NULL for no prefix h](j)}(h``const char *prefix``h]j)}(hjh]hconst char *prefix}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhMhjubj)}(hhh]h)}(h-optional output prefix, or NULL for no prefixh]h-optional output prefix, or NULL for no prefix}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjvubj)}(ha``unsigned int series`` optional unique series identifier, or 0 to omit identifier in the output h](j)}(h``unsigned int series``h]j)}(hjh]hunsigned int series}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhMhjubj)}(hhh]h)}(hHoptional unique series identifier, or 0 to omit identifier in the outputh]hHoptional unique series identifier, or 0 to omit identifier in the output}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj)hMhj*ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj)hMhjvubeh}(h]h ]h"]h$]h&]uh1jhjZubh)}(h**Description**h]jZ)}(hjOh]h Description}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjMubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhMhjZubh)}(hThis printer can be used to increase the robustness of the captured output to make sure we didn't lost any intermediate lines of the output. Helpful while capturing some crash data.h]hThis printer can be used to increase the robustness of the captured output to make sure we didn’t lost any intermediate lines of the output. Helpful while capturing some crash data.}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhMhjZubh)}(h Example 1::h]h Example 1:}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhMhjZubj2)}(hXvoid crash_dump(struct drm_device *drm) { static unsigned int id; struct drm_printer p = drm_err_printer(drm, "crash"); struct drm_printer lp = drm_line_printer(&p, "dump", ++id); drm_printf(&lp, "foo"); drm_printf(&lp, "bar"); }h]hXvoid crash_dump(struct drm_device *drm) { static unsigned int id; struct drm_printer p = drm_err_printer(drm, "crash"); struct drm_printer lp = drm_line_printer(&p, "dump", ++id); drm_printf(&lp, "foo"); drm_printf(&lp, "bar"); }}hjsbah}(h]h ]h"]h$]h&]jAjBuh1j1hZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhMhjZubh)}(h5Above code will print into the dmesg something like::h]h4Above code will print into the dmesg something like:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhMhjZubj2)}(hg[ ] 0000:00:00.0: [drm] *ERROR* crash dump 1.1: foo [ ] 0000:00:00.0: [drm] *ERROR* crash dump 1.2: barh]hg[ ] 0000:00:00.0: [drm] *ERROR* crash dump 1.1: foo [ ] 0000:00:00.0: [drm] *ERROR* crash dump 1.2: bar}hjsbah}(h]h ]h"]h$]h&]jAjBuh1j1hZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhMhjZubh)}(h Example 2::h]h Example 2:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhMhjZubj2)}(hvoid line_dump(struct device *dev) { struct drm_printer p = drm_info_printer(dev); struct drm_printer lp = drm_line_printer(&p, NULL, 0); drm_printf(&lp, "foo"); drm_printf(&lp, "bar"); }h]hvoid line_dump(struct device *dev) { struct drm_printer p = drm_info_printer(dev); struct drm_printer lp = drm_line_printer(&p, NULL, 0); drm_printf(&lp, "foo"); drm_printf(&lp, "bar"); }}hjsbah}(h]h ]h"]h$]h&]jAjBuh1j1hZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhMhjZubh)}(hAbove code will print::h]hAbove code will print:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhMhjZubj2)}(h=[ ] 0000:00:00.0: [drm] 1: foo [ ] 0000:00:00.0: [drm] 2: barh]h=[ ] 0000:00:00.0: [drm] 1: foo [ ] 0000:00:00.0: [drm] 2: bar}hjsbah}(h]h ]h"]h$]h&]jAjBuh1j1hZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhMhjZubh)}(h **Return**h]jZ)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhMhjZubh)}(h The :c:type:`drm_printer` objecth](hThe }(hjhhhNhNubh)}(h:c:type:`drm_printer`h]j)}(hjh]h drm_printer}(hjhhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjjj drm_printeruh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhMhjubh object}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj+hMhjZubeh}(h]h ] kernelindentah"]h$]h&]uh1jOhjhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jDRM_DEV_ERROR (C macro)c.DRM_DEV_ERRORhNtauh1jhjhhhNhNubj)}(hhh](j)}(h DRM_DEV_ERRORh]j)}(h DRM_DEV_ERRORh]j)}(h DRM_DEV_ERRORh]j)}(hjPh]h DRM_DEV_ERROR}(hjZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVubah}(h]h ](jjeh"]h$]h&]jAjBuh1jhjRhhhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhMubah}(h]h ]h"]h$]h&]jAjBjuh1jjjhjNhhhjmhMubah}(h]jIah ](j j!eh"]h$]h&]j%j&)j'huh1jhjmhMhjKhhubj))}(hhh]h}(h]h ]h"]h$]h&]uh1j(hjKhhhjmhMubeh}(h]h ](j macroeh"]h$]h&]jIj jJjjKjjLjMjNuh1jhhhjhNhNubh)}(h!``DRM_DEV_ERROR (dev, fmt, ...)``h]j)}(hjh]hDRM_DEV_ERROR (dev, fmt, ...)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhMhjhhubj%)}(hError output. h]h)}(h Error output.h]h Error output.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhMhjubah}(h]h ]h"]h$]h&]uh1j%hjhMhjhhubjP)}(h**Parameters** ``dev`` device pointer ``fmt`` printf() like format string. ``...`` variable arguments **NOTE** this is deprecated in favor of drm_err() or dev_err().h](h)}(h**Parameters**h]jZ)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhMhjubj)}(hhh](j)}(h``dev`` device pointer h](j)}(h``dev``h]j)}(hjh]hdev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhMhjubj)}(hhh]h)}(hdevice pointerh]hdevice pointer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h%``fmt`` printf() like format string. h](j)}(h``fmt``h]j)}(hjh]hfmt}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhM hjubj)}(hhh]h)}(hprintf() like format string.h]hprintf() like format string.}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj.hM hj/ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj.hM hjubj)}(h``...`` variable arguments h](j)}(h``...``h]j)}(hjRh]h...}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1jhjPubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhKhjLubj)}(hhh]h)}(hvariable argumentsh]hvariable arguments}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjghKhjhubah}(h]h ]h"]h$]h&]uh1jhjLubeh}(h]h ]h"]h$]h&]uh1jhjghKhjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**NOTE**h]jZ)}(hjh]hNOTE}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhKhjubh)}(h6this is deprecated in favor of drm_err() or dev_err().h]h6this is deprecated in favor of drm_err() or dev_err().}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jOhjhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j#DRM_DEV_ERROR_RATELIMITED (C macro)c.DRM_DEV_ERROR_RATELIMITEDhNtauh1jhjhhhNhNubj)}(hhh](j)}(hDRM_DEV_ERROR_RATELIMITEDh]j)}(hDRM_DEV_ERROR_RATELIMITEDh]j)}(hDRM_DEV_ERROR_RATELIMITEDh]j)}(hjh]hDRM_DEV_ERROR_RATELIMITED}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jAjBuh1jhjhhhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhMubah}(h]h ]h"]h$]h&]jAjBjuh1jjjhjhhhjhMubah}(h]jah ](j j!eh"]h$]h&]j%j&)j'huh1jhjhMhjhhubj))}(hhh]h}(h]h ]h"]h$]h&]uh1j(hjhhhjhMubeh}(h]h ](j macroeh"]h$]h&]jIj jJjjKjjLjMjNuh1jhhhjhNhNubh)}(h-``DRM_DEV_ERROR_RATELIMITED (dev, fmt, ...)``h]j)}(hjh]h)DRM_DEV_ERROR_RATELIMITED (dev, fmt, ...)}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhMhjhhubj%)}(hRate limited error output. h]h)}(hRate limited error output.h]hRate limited error output.}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhMhjubah}(h]h ]h"]h$]h&]uh1j%hj0hMhjhhubjP)}(hX**Parameters** ``dev`` device pointer ``fmt`` printf() like format string. ``...`` variable arguments **NOTE** this is deprecated in favor of drm_err_ratelimited() or dev_err_ratelimited(). **Description** Like DRM_ERROR() but won't flood the log.h](h)}(h**Parameters**h]jZ)}(hj=h]h Parameters}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj;ubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhMhj7ubj)}(hhh](j)}(h``dev`` device pointer h](j)}(h``dev``h]j)}(hj\h]hdev}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjZubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhMhjVubj)}(hhh]h)}(hdevice pointerh]hdevice pointer}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjqhMhjrubah}(h]h ]h"]h$]h&]uh1jhjVubeh}(h]h ]h"]h$]h&]uh1jhjqhMhjSubj)}(h%``fmt`` printf() like format string. h](j)}(h``fmt``h]j)}(hjh]hfmt}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhMhjubj)}(hhh]h)}(hprintf() like format string.h]hprintf() like format string.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjSubj)}(h``...`` variable arguments h](j)}(h``...``h]j)}(hjh]h...}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhKhjubj)}(hhh]h)}(hvariable argumentsh]hvariable arguments}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjSubeh}(h]h ]h"]h$]h&]uh1jhj7ubh)}(h**NOTE**h]jZ)}(hj h]hNOTE}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhKhj7ubh)}(hNthis is deprecated in favor of drm_err_ratelimited() or dev_err_ratelimited().h]hNthis is deprecated in favor of drm_err_ratelimited() or dev_err_ratelimited().}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhMhj7ubh)}(h**Description**h]jZ)}(hj0h]h Description}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj.ubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhMhj7ubh)}(h)Like DRM_ERROR() but won't flood the log.h]h+Like DRM_ERROR() but won’t flood the log.}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhMhj7ubeh}(h]h ] kernelindentah"]h$]h&]uh1jOhjhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jDRM_DEV_DEBUG (C macro)c.DRM_DEV_DEBUGhNtauh1jhjhhhNhNubj)}(hhh](j)}(h DRM_DEV_DEBUGh]j)}(h DRM_DEV_DEBUGh]j)}(h DRM_DEV_DEBUGh]j)}(hjoh]h DRM_DEV_DEBUG}(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuubah}(h]h ](jjeh"]h$]h&]jAjBuh1jhjqhhhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhM;ubah}(h]h ]h"]h$]h&]jAjBjuh1jjjhjmhhhjhM;ubah}(h]jhah ](j j!eh"]h$]h&]j%j&)j'huh1jhjhM;hjjhhubj))}(hhh]h}(h]h ]h"]h$]h&]uh1j(hjjhhhjhM;ubeh}(h]h ](j macroeh"]h$]h&]jIj jJjjKjjLjMjNuh1jhhhjhNhNubh)}(h!``DRM_DEV_DEBUG (dev, fmt, ...)``h]j)}(hjh]hDRM_DEV_DEBUG (dev, fmt, ...)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhM=hjhhubj%)}(h"Debug output for generic drm code h]h)}(h!Debug output for generic drm codeh]h!Debug output for generic drm code}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhM;hjubah}(h]h ]h"]h$]h&]uh1j%hjhM;hjhhubjP)}(h**Parameters** ``dev`` device pointer ``fmt`` printf() like format string. ``...`` variable arguments **NOTE** this is deprecated in favor of drm_dbg_core().h](h)}(h**Parameters**h]jZ)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhM?hjubj)}(hhh](j)}(h``dev`` device pointer h](j)}(h``dev``h]j)}(hjh]hdev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhM?hjubj)}(hhh]h)}(hdevice pointerh]hdevice pointer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM?hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM?hjubj)}(h%``fmt`` printf() like format string. h](j)}(h``fmt``h]j)}(hj8h]hfmt}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6ubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhM@hj2ubj)}(hhh]h)}(hprintf() like format string.h]hprintf() like format string.}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjMhM@hjNubah}(h]h ]h"]h$]h&]uh1jhj2ubeh}(h]h ]h"]h$]h&]uh1jhjMhM@hjubj)}(h``...`` variable arguments h](j)}(h``...``h]j)}(hjqh]h...}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1jhjoubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhKhjkubj)}(hhh]h)}(hvariable argumentsh]hvariable arguments}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjkubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**NOTE**h]jZ)}(hjh]hNOTE}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhKhjubh)}(h.this is deprecated in favor of drm_dbg_core().h]h.this is deprecated in favor of drm_dbg_core().}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhM=hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jOhjhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jDRM_DEV_DEBUG_DRIVER (C macro)c.DRM_DEV_DEBUG_DRIVERhNtauh1jhjhhhNhNubj)}(hhh](j)}(hDRM_DEV_DEBUG_DRIVERh]j)}(hDRM_DEV_DEBUG_DRIVERh]j)}(hDRM_DEV_DEBUG_DRIVERh]j)}(hjh]hDRM_DEV_DEBUG_DRIVER}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jAjBuh1jhjhhhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhMEubah}(h]h ]h"]h$]h&]jAjBjuh1jjjhjhhhjhMEubah}(h]jah ](j j!eh"]h$]h&]j%j&)j'huh1jhjhMEhjhhubj))}(hhh]h}(h]h ]h"]h$]h&]uh1j(hjhhhjhMEubeh}(h]h ](j macroeh"]h$]h&]jIj jJj!jKj!jLjMjNuh1jhhhjhNhNubh)}(h(``DRM_DEV_DEBUG_DRIVER (dev, fmt, ...)``h]j)}(hj'h]h$DRM_DEV_DEBUG_DRIVER (dev, fmt, ...)}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj%ubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhMGhjhhubj%)}(h4Debug output for vendor specific part of the driver h]h)}(h3Debug output for vendor specific part of the driverh]h3Debug output for vendor specific part of the driver}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhMEhj=ubah}(h]h ]h"]h$]h&]uh1j%hjOhMEhjhhubjP)}(h**Parameters** ``dev`` device pointer ``fmt`` printf() like format string. ``...`` variable arguments **NOTE** this is deprecated in favor of drm_dbg() or dev_dbg().h](h)}(h**Parameters**h]jZ)}(hj\h]h Parameters}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjZubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhMIhjVubj)}(hhh](j)}(h``dev`` device pointer h](j)}(h``dev``h]j)}(hj{h]hdev}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjyubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhMIhjuubj)}(hhh]h)}(hdevice pointerh]hdevice pointer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMIhjubah}(h]h ]h"]h$]h&]uh1jhjuubeh}(h]h ]h"]h$]h&]uh1jhjhMIhjrubj)}(h%``fmt`` printf() like format string. h](j)}(h``fmt``h]j)}(hjh]hfmt}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhMJhjubj)}(hhh]h)}(hprintf() like format string.h]hprintf() like format string.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMJhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMJhjrubj)}(h``...`` variable arguments h](j)}(h``...``h]j)}(hjh]h...}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhKhjubj)}(hhh]h)}(hvariable argumentsh]hvariable arguments}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjrubeh}(h]h ]h"]h$]h&]uh1jhjVubh)}(h**NOTE**h]jZ)}(hj(h]hNOTE}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj&ubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhKhjVubh)}(h6this is deprecated in favor of drm_dbg() or dev_dbg().h]h6this is deprecated in favor of drm_dbg() or dev_dbg().}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhMGhjVubeh}(h]h ] kernelindentah"]h$]h&]uh1jOhjhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jDRM_DEV_DEBUG_KMS (C macro)c.DRM_DEV_DEBUG_KMShNtauh1jhjhhhNhNubj)}(hhh](j)}(hDRM_DEV_DEBUG_KMSh]j)}(hDRM_DEV_DEBUG_KMSh]j)}(hDRM_DEV_DEBUG_KMSh]j)}(hjgh]hDRM_DEV_DEBUG_KMS}(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmubah}(h]h ](jjeh"]h$]h&]jAjBuh1jhjihhhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhMOubah}(h]h ]h"]h$]h&]jAjBjuh1jjjhjehhhjhMOubah}(h]j`ah ](j j!eh"]h$]h&]j%j&)j'huh1jhjhMOhjbhhubj))}(hhh]h}(h]h ]h"]h$]h&]uh1j(hjbhhhjhMOubeh}(h]h ](j macroeh"]h$]h&]jIj jJjjKjjLjMjNuh1jhhhjhNhNubh)}(h%``DRM_DEV_DEBUG_KMS (dev, fmt, ...)``h]j)}(hjh]h!DRM_DEV_DEBUG_KMS (dev, fmt, ...)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhMQhjhhubj%)}(h"Debug output for modesetting code h]h)}(h!Debug output for modesetting codeh]h!Debug output for modesetting code}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhMOhjubah}(h]h ]h"]h$]h&]uh1j%hjhMOhjhhubjP)}(h**Parameters** ``dev`` device pointer ``fmt`` printf() like format string. ``...`` variable arguments **NOTE** this is deprecated in favor of drm_dbg_kms().h](h)}(h**Parameters**h]jZ)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhMShjubj)}(hhh](j)}(h``dev`` device pointer h](j)}(h``dev``h]j)}(hjh]hdev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhMShjubj)}(hhh]h)}(hdevice pointerh]hdevice pointer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hMShj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj hMShjubj)}(h%``fmt`` printf() like format string. h](j)}(h``fmt``h]j)}(hj0h]hfmt}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj.ubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhMThj*ubj)}(hhh]h)}(hprintf() like format string.h]hprintf() like format string.}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjEhMThjFubah}(h]h ]h"]h$]h&]uh1jhj*ubeh}(h]h ]h"]h$]h&]uh1jhjEhMThjubj)}(h``...`` variable arguments h](j)}(h``...``h]j)}(hjih]h...}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjgubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhKhjcubj)}(hhh]h)}(hvariable argumentsh]hvariable arguments}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj~hKhjubah}(h]h ]h"]h$]h&]uh1jhjcubeh}(h]h ]h"]h$]h&]uh1jhj~hKhjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**NOTE**h]jZ)}(hjh]hNOTE}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhKhjubh)}(h-this is deprecated in favor of drm_dbg_kms().h]h-this is deprecated in favor of drm_dbg_kms().}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhMQhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jOhjhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jdrm_puts (C function) c.drm_putshNtauh1jhjhhhNhNubj)}(hhh](j)}(h6void drm_puts (struct drm_printer *p, const char *str)h]j)}(h5void drm_puts(struct drm_printer *p, const char *str)h](ja()}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jm(ah"]h$]h&]uh1j`(hjhhh^/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:167: ./drivers/gpu/drm/drm_print.chKubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhKubj)}(hdrm_putsh]j)}(hdrm_putsh]hdrm_puts}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jAjBuh1jhjhhhjhKubjt)}(h((struct drm_printer *p, const char *str)h](jz)}(hstruct drm_printer *ph](j)}(hjh]hstruct}(hj&hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj"ubj)}(h h]h }(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj"ubh)}(hhh]j)}(h drm_printerh]h drm_printer}(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjAubah}(h]h ]h"]h$]h&] refdomainj reftypej/ reftargetjFmodnameN classnameNjj)}j]j7)}j/j sb c.drm_putsasbuh1hhj"ubj)}(h h]h }(hjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj"ubjL)}(hjOh]h*}(hjrhhhNhNubah}(h]h ]jXah"]h$]h&]uh1jKhj"ubj)}(hjXh]hp}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj"ubeh}(h]h ]h"]h$]h&]noemphjAjBuh1jyhjubjz)}(hconst char *strh](j)}(hj1*h]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubja()}(hcharh]hchar}(hjhhhNhNubah}(h]h ]jm(ah"]h$]h&]uh1j`(hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjL)}(hjOh]h*}(hjhhhNhNubah}(h]h ]jXah"]h$]h&]uh1jKhjubj)}(hstrh]hstr}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjAjBuh1jyhjubeh}(h]h ]h"]h$]h&]jAjBuh1jshjhhhjhKubeh}(h]h ]h"]h$]h&]jAjBjuh1jjjhjhhhjhKubah}(h]jah ](j j!eh"]h$]h&]j%j&)j'huh1jhjhKhjhhubj))}(hhh]h)}(h6print a const string to a :c:type:`drm_printer` streamh](hprint a const string to a }(hjhhhNhNubh)}(h:c:type:`drm_printer`h]j)}(hjh]h drm_printer}(hjhhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjj)}j]j` c.drm_putsasbj drm_printeruh1hhjhKhjubh stream}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh^/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:167: ./drivers/gpu/drm/drm_print.chKhjhhubah}(h]h ]h"]h$]h&]uh1j(hjhhhjhKubeh}(h]h ](j functioneh"]h$]h&]jIj jJjEjKjEjLjMjNuh1jhhhjhNhNubjP)}(h**Parameters** ``struct drm_printer *p`` the :c:type:`drm` printer ``const char *str`` const string **Description** Allow :c:type:`drm_printer` types that have a constant string option to use it.h](h)}(h**Parameters**h]jZ)}(hjOh]h Parameters}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjMubah}(h]h ]h"]h$]h&]uh1hh^/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:167: ./drivers/gpu/drm/drm_print.chMhjIubj)}(hhh](j)}(h4``struct drm_printer *p`` the :c:type:`drm` printer h](j)}(h``struct drm_printer *p``h]j)}(hjnh]hstruct drm_printer *p}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jhjlubah}(h]h ]h"]h$]h&]uh1jh^/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:167: ./drivers/gpu/drm/drm_print.chKhjhubj)}(hhh]h)}(hthe :c:type:`drm` printerh](hthe }(hjhhhNhNubh)}(h :c:type:`drm`h]j)}(hjh]hdrm}(hjhhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjjjdrmuh1hhjhKhjubh printer}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjhubeh}(h]h ]h"]h$]h&]uh1jhjhKhjeubj)}(h!``const char *str`` const string h](j)}(h``const char *str``h]j)}(hjh]hconst char *str}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh^/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:167: ./drivers/gpu/drm/drm_print.chMhjubj)}(hhh]h)}(h const stringh]h const string}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjeubeh}(h]h ]h"]h$]h&]uh1jhjIubh)}(h**Description**h]jZ)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubah}(h]h ]h"]h$]h&]uh1hh^/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:167: ./drivers/gpu/drm/drm_print.chMhjIubh)}(hOAllow :c:type:`drm_printer` types that have a constant string option to use it.h](hAllow }(hjhhhNhNubh)}(h:c:type:`drm_printer`h]j)}(hj%h]h drm_printer}(hj'hhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhj#ubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjjj drm_printeruh1hh^/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:167: ./drivers/gpu/drm/drm_print.chMhjubh4 types that have a constant string option to use it.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjBhMhjIubeh}(h]h ] kernelindentah"]h$]h&]uh1jOhjhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jdrm_printf (C function) c.drm_printfhNtauh1jhjhhhNhNubj)}(hhh](j)}(h;void drm_printf (struct drm_printer *p, const char *f, ...)h]j)}(h:void drm_printf(struct drm_printer *p, const char *f, ...)h](ja()}(hvoidh]hvoid}(hjmhhhNhNubah}(h]h ]jm(ah"]h$]h&]uh1j`(hjihhh^/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:167: ./drivers/gpu/drm/drm_print.chMubj)}(h h]h }(hj|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjihhhj{hMubj)}(h drm_printfh]j)}(h drm_printfh]h drm_printf}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jAjBuh1jhjihhhj{hMubjt)}(h+(struct drm_printer *p, const char *f, ...)h](jz)}(hstruct drm_printer *ph](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(h drm_printerh]h drm_printer}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj reftypej/ reftargetjmodnameN classnameNjj)}j]j7)}j/jsb c.drm_printfasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjL)}(hjOh]h*}(hjhhhNhNubah}(h]h ]jXah"]h$]h&]uh1jKhjubj)}(hjXh]hp}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjAjBuh1jyhjubjz)}(h const char *fh](j)}(hj1*h]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hj(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubja()}(hcharh]hchar}(hj6hhhNhNubah}(h]h ]jm(ah"]h$]h&]uh1j`(hjubj)}(h h]h }(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjL)}(hjOh]h*}(hjRhhhNhNubah}(h]h ]jXah"]h$]h&]uh1jKhjubj)}(hj h]hf}(hj_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjAjBuh1jyhjubjz)}(h...h]jL)}(hjh]h...}(hjwhhhNhNubah}(h]h ]jXah"]h$]h&]uh1jKhjsubah}(h]h ]h"]h$]h&]noemphjAjBuh1jyhjubeh}(h]h ]h"]h$]h&]jAjBuh1jshjihhhj{hMubeh}(h]h ]h"]h$]h&]jAjBjuh1jjjhjehhhj{hMubah}(h]j`ah ](j j!eh"]h$]h&]j%j&)j'huh1jhj{hMhjbhhubj))}(hhh]h)}(h'print to a :c:type:`drm_printer` streamh](h print to a }(hjhhhNhNubh)}(h:c:type:`drm_printer`h]j)}(hjh]h drm_printer}(hjhhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjj)}j]j c.drm_printfasbj drm_printeruh1hhjhKhjubh stream}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh^/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:167: ./drivers/gpu/drm/drm_print.chMhjhhubah}(h]h ]h"]h$]h&]uh1j(hjbhhhj{hMubeh}(h]h ](j functioneh"]h$]h&]jIj jJjjKjjLjMjNuh1jhhhjhNhNubjP)}(h**Parameters** ``struct drm_printer *p`` the :c:type:`drm_printer` ``const char *f`` format string ``...`` variable argumentsh](h)}(h**Parameters**h]jZ)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubah}(h]h ]h"]h$]h&]uh1hh^/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:167: ./drivers/gpu/drm/drm_print.chMhjubj)}(hhh](j)}(h4``struct drm_printer *p`` the :c:type:`drm_printer` h](j)}(h``struct drm_printer *p``h]j)}(hj h]hstruct drm_printer *p}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh^/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:167: ./drivers/gpu/drm/drm_print.chMhjubj)}(hhh]h)}(hthe :c:type:`drm_printer`h](hthe }(hj"hhhNhNubh)}(h:c:type:`drm_printer`h]j)}(hj,h]h drm_printer}(hj.hhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhj*ubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjjj drm_printeruh1hhjhMhj"ubeh}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h ``const char *f`` format string h](j)}(h``const char *f``h]j)}(hjah]h const char *f}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1jhj_ubah}(h]h ]h"]h$]h&]uh1jh^/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:167: ./drivers/gpu/drm/drm_print.chMhj[ubj)}(hhh]h)}(h format stringh]h format string}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjvhMhjwubah}(h]h ]h"]h$]h&]uh1jhj[ubeh}(h]h ]h"]h$]h&]uh1jhjvhMhjubj)}(h``...`` variable argumentsh](j)}(h``...``h]j)}(hjh]h...}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh^/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:167: ./drivers/gpu/drm/drm_print.chMhjubj)}(hhh]h)}(hvariable argumentsh]hvariable arguments}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh^/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:167: ./drivers/gpu/drm/drm_print.chKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jOhjhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jdrm_print_bits (C function)c.drm_print_bitshNtauh1jhjhhhNhNubj)}(hhh](j)}(hovoid drm_print_bits (struct drm_printer *p, unsigned long value, const char * const bits[], unsigned int nbits)h]j)}(hmvoid drm_print_bits(struct drm_printer *p, unsigned long value, const char *const bits[], unsigned int nbits)h](ja()}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jm(ah"]h$]h&]uh1j`(hjhhh^/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:167: ./drivers/gpu/drm/drm_print.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubj)}(hdrm_print_bitsh]j)}(hdrm_print_bitsh]hdrm_print_bits}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jAjBuh1jhjhhhjhMubjt)}(hZ(struct drm_printer *p, unsigned long value, const char *const bits[], unsigned int nbits)h](jz)}(hstruct drm_printer *ph](j)}(hjh]hstruct}(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-ubj)}(h h]h }(hj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-ubh)}(hhh]j)}(h drm_printerh]h drm_printer}(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLubah}(h]h ]h"]h$]h&] refdomainj reftypej/ reftargetjQmodnameN classnameNjj)}j]j7)}j/jsbc.drm_print_bitsasbuh1hhj-ubj)}(h h]h }(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-ubjL)}(hjOh]h*}(hj}hhhNhNubah}(h]h ]jXah"]h$]h&]uh1jKhj-ubj)}(hjXh]hp}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-ubeh}(h]h ]h"]h$]h&]noemphjAjBuh1jyhj)ubjz)}(hunsigned long valueh](ja()}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jm(ah"]h$]h&]uh1j`(hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubja()}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jm(ah"]h$]h&]uh1j`(hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hvalueh]hvalue}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjAjBuh1jyhj)ubjz)}(hconst char *const bits[]h](j)}(hj1*h]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubja()}(hcharh]hchar}(hjhhhNhNubah}(h]h ]jm(ah"]h$]h&]uh1j`(hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjL)}(hjOh]h*}(hj*hhhNhNubah}(h]h ]jXah"]h$]h&]uh1jKhjubj)}(hj1*h]hconst}(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hbitsh]hbits}(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjL)}(h[h]h[}(hj`hhhNhNubah}(h]h ]jXah"]h$]h&]uh1jKhjubjL)}(h]h]h]}(hjnhhhNhNubah}(h]h ]jXah"]h$]h&]uh1jKhjubeh}(h]h ]h"]h$]h&]noemphjAjBuh1jyhj)ubjz)}(hunsigned int nbitsh](ja()}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jm(ah"]h$]h&]uh1j`(hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubja()}(hinth]hint}(hjhhhNhNubah}(h]h ]jm(ah"]h$]h&]uh1j`(hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hnbitsh]hnbits}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjAjBuh1jyhj)ubeh}(h]h ]h"]h$]h&]jAjBuh1jshjhhhjhMubeh}(h]h ]h"]h$]h&]jAjBjuh1jjjhjhhhjhMubah}(h]jah ](j j!eh"]h$]h&]j%j&)j'huh1jhjhMhjhhubj))}(hhh]h)}(h,print bits to a :c:type:`drm_printer` streamh](hprint bits to a }(hjhhhNhNubh)}(h:c:type:`drm_printer`h]j)}(hjh]h drm_printer}(hjhhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjj)}j]jkc.drm_print_bitsasbj drm_printeruh1hhjhKhjubh stream}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh^/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:167: ./drivers/gpu/drm/drm_print.chMhjhhubah}(h]h ]h"]h$]h&]uh1j(hjhhhjhMubeh}(h]h ](j functioneh"]h$]h&]jIj jJj)jKj)jLjMjNuh1jhhhjhNhNubjP)}(hX)**Parameters** ``struct drm_printer *p`` the :c:type:`drm_printer` ``unsigned long value`` field value. ``const char * const bits[]`` Array with bit names. ``unsigned int nbits`` Size of bit names array. **Description** Print bits (in flag fields for example) in human readable form.h](h)}(h**Parameters**h]jZ)}(hj3h]h Parameters}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj1ubah}(h]h ]h"]h$]h&]uh1hh^/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:167: ./drivers/gpu/drm/drm_print.chM"hj-ubj)}(hhh](j)}(h4``struct drm_printer *p`` the :c:type:`drm_printer` h](j)}(h``struct drm_printer *p``h]j)}(hjRh]hstruct drm_printer *p}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1jhjPubah}(h]h ]h"]h$]h&]uh1jh^/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:167: ./drivers/gpu/drm/drm_print.chM"hjLubj)}(hhh]h)}(hthe :c:type:`drm_printer`h](hthe }(hjkhhhNhNubh)}(h:c:type:`drm_printer`h]j)}(hjuh]h drm_printer}(hjwhhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjsubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjjj drm_printeruh1hhjghM"hjkubeh}(h]h ]h"]h$]h&]uh1hhjghM"hjhubah}(h]h ]h"]h$]h&]uh1jhjLubeh}(h]h ]h"]h$]h&]uh1jhjghM"hjIubj)}(h%``unsigned long value`` field value. h](j)}(h``unsigned long value``h]j)}(hjh]hunsigned long value}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh^/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:167: ./drivers/gpu/drm/drm_print.chM#hjubj)}(hhh]h)}(h field value.h]h field value.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM#hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM#hjIubj)}(h4``const char * const bits[]`` Array with bit names. h](j)}(h``const char * const bits[]``h]j)}(hjh]hconst char * const bits[]}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh^/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:167: ./drivers/gpu/drm/drm_print.chM$hjubj)}(hhh]h)}(hArray with bit names.h]hArray with bit names.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM$hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM$hjIubj)}(h0``unsigned int nbits`` Size of bit names array. h](j)}(h``unsigned int nbits``h]j)}(hjh]hunsigned int nbits}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh^/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:167: ./drivers/gpu/drm/drm_print.chM%hjubj)}(hhh]h)}(hSize of bit names array.h]hSize of bit names array.}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj1hM%hj2ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj1hM%hjIubeh}(h]h ]h"]h$]h&]uh1jhj-ubh)}(h**Description**h]jZ)}(hjWh]h Description}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjUubah}(h]h ]h"]h$]h&]uh1hh^/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:167: ./drivers/gpu/drm/drm_print.chM'hj-ubh)}(h?Print bits (in flag fields for example) in human readable form.h]h?Print bits (in flag fields for example) in human readable form.}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1hh^/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:167: ./drivers/gpu/drm/drm_print.chMhj-ubeh}(h]h ] kernelindentah"]h$]h&]uh1jOhjhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jdrm_print_regset32 (C function)c.drm_print_regset32hNtauh1jhjhhhNhNubj)}(hhh](j)}(hPvoid drm_print_regset32 (struct drm_printer *p, struct debugfs_regset32 *regset)h]j)}(hOvoid drm_print_regset32(struct drm_printer *p, struct debugfs_regset32 *regset)h](ja()}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jm(ah"]h$]h&]uh1j`(hjhhh^/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:167: ./drivers/gpu/drm/drm_print.chMpubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMpubj)}(hdrm_print_regset32h]j)}(hdrm_print_regset32h]hdrm_print_regset32}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jAjBuh1jhjhhhjhMpubjt)}(h8(struct drm_printer *p, struct debugfs_regset32 *regset)h](jz)}(hstruct drm_printer *ph](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(h drm_printerh]h drm_printer}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj reftypej/ reftargetjmodnameN classnameNjj)}j]j7)}j/jsbc.drm_print_regset32asbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjL)}(hjOh]h*}(hj%hhhNhNubah}(h]h ]jXah"]h$]h&]uh1jKhjubj)}(hjXh]hp}(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjAjBuh1jyhjubjz)}(hstruct debugfs_regset32 *regseth](j)}(hjh]hstruct}(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjFubj)}(h h]h }(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjFubh)}(hhh]j)}(hdebugfs_regset32h]hdebugfs_regset32}(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeubah}(h]h ]h"]h$]h&] refdomainj reftypej/ reftargetjjmodnameN classnameNjj)}j]jc.drm_print_regset32asbuh1hhjFubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjFubjL)}(hjOh]h*}(hjhhhNhNubah}(h]h ]jXah"]h$]h&]uh1jKhjFubj)}(hregseth]hregset}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjFubeh}(h]h ]h"]h$]h&]noemphjAjBuh1jyhjubeh}(h]h ]h"]h$]h&]jAjBuh1jshjhhhjhMpubeh}(h]h ]h"]h$]h&]jAjBjuh1jjjhjhhhjhMpubah}(h]jah ](j j!eh"]h$]h&]j%j&)j'huh1jhjhMphjhhubj))}(hhh]h)}(hBprint the contents of registers to a :c:type:`drm_printer` stream.h](h%print the contents of registers to a }(hjhhhNhNubh)}(h:c:type:`drm_printer`h]j)}(hjh]h drm_printer}(hjhhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjj)}j]jc.drm_print_regset32asbj drm_printeruh1hhjhKhjubh stream.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh^/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:167: ./drivers/gpu/drm/drm_print.chMphjhhubah}(h]h ]h"]h$]h&]uh1j(hjhhhjhMpubeh}(h]h ](j functioneh"]h$]h&]jIj jJj jKj jLjMjNuh1jhhhjhNhNubjP)}(hX**Parameters** ``struct drm_printer *p`` the :c:type:`drm` printer ``struct debugfs_regset32 *regset`` the list of registers to print. **Description** Often in driver debug, it's useful to be able to either capture the contents of registers in the steady state using debugfs or at specific points during operation. This lets the driver have a single list of registers for both.h](h)}(h**Parameters**h]jZ)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubah}(h]h ]h"]h$]h&]uh1hh^/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:167: ./drivers/gpu/drm/drm_print.chMthjubj)}(hhh](j)}(h4``struct drm_printer *p`` the :c:type:`drm` printer h](j)}(h``struct drm_printer *p``h]j)}(hj4h]hstruct drm_printer *p}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2ubah}(h]h ]h"]h$]h&]uh1jh^/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:167: ./drivers/gpu/drm/drm_print.chMshj.ubj)}(hhh]h)}(hthe :c:type:`drm` printerh](hthe }(hjMhhhNhNubh)}(h :c:type:`drm`h]j)}(hjWh]hdrm}(hjYhhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjUubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjjjdrmuh1hhjIhMshjMubh printer}(hjMhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjIhMshjJubah}(h]h ]h"]h$]h&]uh1jhj.ubeh}(h]h ]h"]h$]h&]uh1jhjIhMshj+ubj)}(hD``struct debugfs_regset32 *regset`` the list of registers to print. h](j)}(h#``struct debugfs_regset32 *regset``h]j)}(hjh]hstruct debugfs_regset32 *regset}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh^/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:167: ./drivers/gpu/drm/drm_print.chMthjubj)}(hhh]h)}(hthe list of registers to print.h]hthe list of registers to print.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMthjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMthj+ubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]jZ)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubah}(h]h ]h"]h$]h&]uh1hh^/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:167: ./drivers/gpu/drm/drm_print.chMvhjubh)}(hOften in driver debug, it's useful to be able to either capture the contents of registers in the steady state using debugfs or at specific points during operation. This lets the driver have a single list of registers for both.h]hOften in driver debug, it’s useful to be able to either capture the contents of registers in the steady state using debugfs or at specific points during operation. This lets the driver have a single list of registers for both.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh^/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:167: ./drivers/gpu/drm/drm_print.chMuhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jOhjhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jdrm_print_hex_dump (C function)c.drm_print_hex_dumphNtauh1jhjhhhNhNubj)}(hhh](j)}(h^void drm_print_hex_dump (struct drm_printer *p, const char *prefix, const u8 *buf, size_t len)h]j)}(h]void drm_print_hex_dump(struct drm_printer *p, const char *prefix, const u8 *buf, size_t len)h](ja()}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jm(ah"]h$]h&]uh1j`(hj hhh^/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:167: ./drivers/gpu/drm/drm_print.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj hhhjhMubj)}(hdrm_print_hex_dumph]j)}(hdrm_print_hex_dumph]hdrm_print_hex_dump}(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-ubah}(h]h ](jjeh"]h$]h&]jAjBuh1jhj hhhjhMubjt)}(hF(struct drm_printer *p, const char *prefix, const u8 *buf, size_t len)h](jz)}(hstruct drm_printer *ph](j)}(hjh]hstruct}(hjMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjIubj)}(h h]h }(hjZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjIubh)}(hhh]j)}(h drm_printerh]h drm_printer}(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhubah}(h]h ]h"]h$]h&] refdomainj reftypej/ reftargetjmmodnameN classnameNjj)}j]j7)}j/j3sbc.drm_print_hex_dumpasbuh1hhjIubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjIubjL)}(hjOh]h*}(hjhhhNhNubah}(h]h ]jXah"]h$]h&]uh1jKhjIubj)}(hjXh]hp}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjIubeh}(h]h ]h"]h$]h&]noemphjAjBuh1jyhjEubjz)}(hconst char *prefixh](j)}(hj1*h]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubja()}(hcharh]hchar}(hjhhhNhNubah}(h]h ]jm(ah"]h$]h&]uh1j`(hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjL)}(hjOh]h*}(hjhhhNhNubah}(h]h ]jXah"]h$]h&]uh1jKhjubj)}(hprefixh]hprefix}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjAjBuh1jyhjEubjz)}(h const u8 *bufh](j)}(hj1*h]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hj(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hu8h]hu8}(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6ubah}(h]h ]h"]h$]h&] refdomainj reftypej/ reftargetj;modnameN classnameNjj)}j]jc.drm_print_hex_dumpasbuh1hhjubj)}(h h]h }(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjL)}(hjOh]h*}(hjehhhNhNubah}(h]h ]jXah"]h$]h&]uh1jKhjubj)}(hbufh]hbuf}(hjrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjAjBuh1jyhjEubjz)}(h size_t lenh](h)}(hhh]j)}(hsize_th]hsize_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj reftypej/ reftargetjmodnameN classnameNjj)}j]jc.drm_print_hex_dumpasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hlenh]hlen}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjAjBuh1jyhjEubeh}(h]h ]h"]h$]h&]jAjBuh1jshj hhhjhMubeh}(h]h ]h"]h$]h&]jAjBjuh1jjjhjhhhjhMubah}(h]jah ](j j!eh"]h$]h&]j%j&)j'huh1jhjhMhjhhubj))}(hhh]h)}(h2print a hex dump to a :c:type:`drm_printer` streamh](hprint a hex dump to a }(hjhhhNhNubh)}(h:c:type:`drm_printer`h]j)}(hjh]h drm_printer}(hjhhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjj)}j]jc.drm_print_hex_dumpasbj drm_printeruh1hhjhKhjubh stream}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh^/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:167: ./drivers/gpu/drm/drm_print.chMhjhhubah}(h]h ]h"]h$]h&]uh1j(hjhhhjhMubeh}(h]h ](j functioneh"]h$]h&]jIj jJj$jKj$jLjMjNuh1jhhhjhNhNubjP)}(hX**Parameters** ``struct drm_printer *p`` The :c:type:`drm_printer` ``const char *prefix`` Prefix for each line, may be NULL for no prefix ``const u8 *buf`` Buffer to dump ``size_t len`` Length of buffer **Description** Print hex dump to :c:type:`drm_printer`, with 16 space-separated hex bytes per line, optionally with a prefix on each line. No separator is added after prefix.h](h)}(h**Parameters**h]jZ)}(hj.h]h Parameters}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj,ubah}(h]h ]h"]h$]h&]uh1hh^/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:167: ./drivers/gpu/drm/drm_print.chMhj(ubj)}(hhh](j)}(h4``struct drm_printer *p`` The :c:type:`drm_printer` h](j)}(h``struct drm_printer *p``h]j)}(hjMh]hstruct drm_printer *p}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjKubah}(h]h ]h"]h$]h&]uh1jh^/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:167: ./drivers/gpu/drm/drm_print.chMhjGubj)}(hhh]h)}(hThe :c:type:`drm_printer`h](hThe }(hjfhhhNhNubh)}(h:c:type:`drm_printer`h]j)}(hjph]h drm_printer}(hjrhhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjnubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjjj drm_printeruh1hhjbhMhjfubeh}(h]h ]h"]h$]h&]uh1hhjbhMhjcubah}(h]h ]h"]h$]h&]uh1jhjGubeh}(h]h ]h"]h$]h&]uh1jhjbhMhjDubj)}(hG``const char *prefix`` Prefix for each line, may be NULL for no prefix h](j)}(h``const char *prefix``h]j)}(hjh]hconst char *prefix}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh^/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:167: ./drivers/gpu/drm/drm_print.chMhjubj)}(hhh]h)}(h/Prefix for each line, may be NULL for no prefixh]h/Prefix for each line, may be NULL for no prefix}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjDubj)}(h!``const u8 *buf`` Buffer to dump h](j)}(h``const u8 *buf``h]j)}(hjh]h const u8 *buf}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh^/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:167: ./drivers/gpu/drm/drm_print.chMhjubj)}(hhh]h)}(hBuffer to dumph]hBuffer to dump}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjDubj)}(h ``size_t len`` Length of buffer h](j)}(h``size_t len``h]j)}(hjh]h size_t len}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh^/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:167: ./drivers/gpu/drm/drm_print.chMhjubj)}(hhh]h)}(hLength of bufferh]hLength of buffer}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj,hMhj-ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj,hMhjDubeh}(h]h ]h"]h$]h&]uh1jhj(ubh)}(h**Description**h]jZ)}(hjRh]h Description}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjPubah}(h]h ]h"]h$]h&]uh1hh^/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:167: ./drivers/gpu/drm/drm_print.chMhj(ubh)}(hPrint hex dump to :c:type:`drm_printer`, with 16 space-separated hex bytes per line, optionally with a prefix on each line. No separator is added after prefix.h](hPrint hex dump to }(hjhhhhNhNubh)}(h:c:type:`drm_printer`h]j)}(hjrh]h drm_printer}(hjthhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjpubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjjj drm_printeruh1hh^/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:167: ./drivers/gpu/drm/drm_print.chMhjhubhx, with 16 space-separated hex bytes per line, optionally with a prefix on each line. No separator is added after prefix.}(hjhhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMhj(ubeh}(h]h ] kernelindentah"]h$]h&]uh1jOhjhhhNhNubeh}(h]printerah ]h"]printerah$]h&]uh1hhjٳhhhhhKubh)}(hhh](h)}(h Utilitiesh]h Utilities}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhKubh)}(hJMacros and inline functions that does not naturally belong in other placesh]hJMacros and inline functions that does not naturally belong in other places}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:173: ./include/drm/drm_util.hhKhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jdrm_can_sleep (C function)c.drm_can_sleephNtauh1jhjhhhNhNubj)}(hhh](j)}(hbool drm_can_sleep (void)h]j)}(hbool drm_can_sleep(void)h](ja()}(hjd(h]hbool}(hjhhhNhNubah}(h]h ]jm(ah"]h$]h&]uh1j`(hjhhhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:176: ./include/drm/drm_util.hhK4ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhK4ubj)}(h drm_can_sleeph]j)}(h drm_can_sleeph]h drm_can_sleep}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jAjBuh1jhjhhhjhK4ubjt)}(h(void)h]jz)}(hvoidh]ja()}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jm(ah"]h$]h&]uh1j`(hjubah}(h]h ]h"]h$]h&]noemphjAjBuh1jyhjubah}(h]h ]h"]h$]h&]jAjBuh1jshjhhhjhK4ubeh}(h]h ]h"]h$]h&]jAjBjuh1jjjhjhhhjhK4ubah}(h]jah ](j j!eh"]h$]h&]j%j&)j'huh1jhjhK4hjhhubj))}(hhh]h)}(h'returns true if currently okay to sleeph]h'returns true if currently okay to sleep}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:176: ./include/drm/drm_util.hhK4hjEhhubah}(h]h ]h"]h$]h&]uh1j(hjhhhjhK4ubeh}(h]h ](j functioneh"]h$]h&]jIj jJj`jKj`jLjMjNuh1jhhhjhNhNubjP)}(hXK**Parameters** ``void`` no arguments **Description** This function shall not be used in new code. The check for running in atomic context may not work - see linux/preempt.h. FIXME: All users of drm_can_sleep should be removed (see todo.rst) **Return** False if kgdb is active, we are in atomic context or irqs are disabled.h](h)}(h**Parameters**h]jZ)}(hjjh]h Parameters}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjhubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:176: ./include/drm/drm_util.hhK8hjdubj)}(hhh]j)}(h``void`` no arguments h](j)}(h``void``h]j)}(hjh]hvoid}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:176: ./include/drm/drm_util.hhKhjubj)}(hhh]h)}(h no argumentsh]h no arguments}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjdubh)}(h**Description**h]jZ)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:176: ./include/drm/drm_util.hhKhjdubh)}(hxThis function shall not be used in new code. The check for running in atomic context may not work - see linux/preempt.h.h]hxThis function shall not be used in new code. The check for running in atomic context may not work - see linux/preempt.h.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:176: ./include/drm/drm_util.hhK5hjdubh)}(hBFIXME: All users of drm_can_sleep should be removed (see todo.rst)h]hBFIXME: All users of drm_can_sleep should be removed (see todo.rst)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:176: ./include/drm/drm_util.hhK8hjdubh)}(h **Return**h]jZ)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:176: ./include/drm/drm_util.hhK:hjdubh)}(hGFalse if kgdb is active, we are in atomic context or irqs are disabled.h]hGFalse if kgdb is active, we are in atomic context or irqs are disabled.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:176: ./include/drm/drm_util.hhK;hjdubeh}(h]h ] kernelindentah"]h$]h&]uh1jOhjhhhNhNubeh}(h] utilitiesah ]h"] utilitiesah$]h&]uh1hhjٳhhhhhKubeh}(h]misc-utilitiesah ]h"]misc utilitiesah$]h&]uh1hhhhhhhhKubh)}(hhh](h)}(h Unit testingh]h Unit testing}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj6hhhhhKubh)}(hhh](h)}(hKUnith]hKUnit}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjGhhhhhKubh)}(hiKUnit (Kernel unit testing framework) provides a common framework for unit tests within the Linux kernel.h]hiKUnit (Kernel unit testing framework) provides a common framework for unit tests within the Linux kernel.}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjGhhubh)}(hThis section covers the specifics for the DRM subsystem. For general information about KUnit, please refer to Documentation/dev-tools/kunit/start.rst.h]hThis section covers the specifics for the DRM subsystem. For general information about KUnit, please refer to Documentation/dev-tools/kunit/start.rst.}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjGhhubh)}(hhh](h)}(hHow to run the tests?h]hHow to run the tests?}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjthhhhhKubh)}(hIn order to facilitate running the test suite, a configuration file is present in ``drivers/gpu/drm/tests/.kunitconfig``. It can be used by ``kunit.py`` as follows:h](hRIn order to facilitate running the test suite, a configuration file is present in }(hjhhhNhNubj)}(h&``drivers/gpu/drm/tests/.kunitconfig``h]h"drivers/gpu/drm/tests/.kunitconfig}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh. It can be used by }(hjhhhNhNubj)}(h ``kunit.py``h]hkunit.py}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh as follows:}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhKhjthhubj2)}(h$ ./tools/testing/kunit/kunit.py run --kunitconfig=drivers/gpu/drm/tests \ --kconfig_add CONFIG_VIRTIO_UML=y \ --kconfig_add CONFIG_UML_PCI_OVER_VIRTIO=yh]h$ ./tools/testing/kunit/kunit.py run --kunitconfig=drivers/gpu/drm/tests \ --kconfig_add CONFIG_VIRTIO_UML=y \ --kconfig_add CONFIG_UML_PCI_OVER_VIRTIO=y}hjsbah}(h]h ]h"]h$]h&]jAjBjCjDbashjE}uh1j1hhhKhjthhubhnote)}(hThe configuration included in ``.kunitconfig`` should be as generic as possible. ``CONFIG_VIRTIO_UML`` and ``CONFIG_UML_PCI_OVER_VIRTIO`` are not included in it because they are only required for User Mode Linux.h]h)}(hThe configuration included in ``.kunitconfig`` should be as generic as possible. ``CONFIG_VIRTIO_UML`` and ``CONFIG_UML_PCI_OVER_VIRTIO`` are not included in it because they are only required for User Mode Linux.h](hThe configuration included in }(hjhhhNhNubj)}(h``.kunitconfig``h]h .kunitconfig}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh# should be as generic as possible. }(hjhhhNhNubj)}(h``CONFIG_VIRTIO_UML``h]hCONFIG_VIRTIO_UML}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh and }(hjhhhNhNubj)}(h``CONFIG_UML_PCI_OVER_VIRTIO``h]hCONFIG_UML_PCI_OVER_VIRTIO}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhK are not included in it because they are only required for User Mode Linux.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1jhjthhhhhNubeh}(h]how-to-run-the-testsah ]h"]how to run the tests?ah$]h&]uh1hhjGhhhhhKubh)}(hhh](h)}(hKUnit Coverage Rulesh]hKUnit Coverage Rules}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhKubh)}(hX*KUnit support is gradually added to the DRM framework and helpers. There's no general requirement for the framework and helpers to have KUnit tests at the moment. However, patches that are affecting a function or helper already covered by KUnit tests must provide tests if the change calls for one.h]hX,KUnit support is gradually added to the DRM framework and helpers. There’s no general requirement for the framework and helpers to have KUnit tests at the moment. However, patches that are affecting a function or helper already covered by KUnit tests must provide tests if the change calls for one.}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjhhubeh}(h]kunit-coverage-rulesah ]h"]kunit coverage rulesah$]h&]uh1hhjGhhhhhKubeh}(h]kunitah ]h"]kunitah$]h&]uh1hhj6hhhhhKubeh}(h] unit-testingah ]h"] unit testingah$]h&]uh1hhhhhhhhKubh)}(hhh](h)}(hLegacy Support Codeh]hLegacy Support Code}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjVhhhhhKubh)}(hXaThe section very briefly covers some of the old legacy support code which is only used by old DRM drivers which have done a so-called shadow-attach to the underlying device instead of registering as a real driver. This also includes some of the old generic buffer management and command submission code. Do not use any of this in new and modern drivers.h]hXaThe section very briefly covers some of the old legacy support code which is only used by old DRM drivers which have done a so-called shadow-attach to the underlying device instead of registering as a real driver. This also includes some of the old generic buffer management and command submission code. Do not use any of this in new and modern drivers.}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjVhhubh)}(hhh](h)}(hLegacy Suspend/Resumeh]hLegacy Suspend/Resume}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjuhhhhhKubh)}(hX/The DRM core provides some suspend/resume code, but drivers wanting full suspend/resume support should provide save() and restore() functions. These are called at suspend, hibernate, or resume time, and should perform any state save or restore required by your device across suspend or hibernate states.h]hX/The DRM core provides some suspend/resume code, but drivers wanting full suspend/resume support should provide save() and restore() functions. These are called at suspend, hibernate, or resume time, and should perform any state save or restore required by your device across suspend or hibernate states.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjuhhubh)}(hXint (\*suspend) (struct drm_device \*, pm_message_t state); int (\*resume) (struct drm_device \*); Those are legacy suspend and resume methods which *only* work with the legacy shadow-attach driver registration functions. New driver should use the power management interface provided by their bus type (usually through the :c:type:`struct device_driver ` dev_pm_ops) and set these methods to NULL.h](hint (*suspend) (struct drm_device *, pm_message_t state); int (*resume) (struct drm_device *); Those are legacy suspend and resume methods which }(hjhhhNhNubj@)}(h*only*h]honly}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j@hjubh work with the legacy shadow-attach driver registration functions. New driver should use the power management interface provided by their bus type (usually through the }(hjhhhNhNubh)}(h.:c:type:`struct device_driver `h]j)}(hjh]hstruct device_driver}(hjhhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjjj device_driveruh1hhhhKhjubh+ dev_pm_ops) and set these methods to NULL.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhKhjuhhubeh}(h]legacy-suspend-resumeah ]h"]legacy suspend/resumeah$]h&]uh1hhjVhhhhhKubh)}(hhh](h)}(hLegacy DMA Servicesh]hLegacy DMA Services}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhKubh)}(hwThis should cover how DMA mapping etc. is supported by the core. These functions are deprecated and should not be used.h]hwThis should cover how DMA mapping etc. is supported by the core. These functions are deprecated and should not be used.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjhhubeh}(h]legacy-dma-servicesah ]h"]legacy dma servicesah$]h&]uh1hhjVhhhhhKubeh}(h]legacy-support-codeah ]h"]legacy support codeah$]h&]uh1hhhhhhhhKubeh}(h] drm-internalsah ]h"] drm internalsah$]h&]uh1hhhhhhhhKubeh}(h]h ]h"]h$]h&]sourcehuh1hcurrent_sourceN current_lineNsettingsdocutils.frontendValues)}(hN generatorN datestampN source_linkN source_urlN toc_backlinksentryfootnote_backlinksK sectnum_xformKstrip_commentsNstrip_elements_with_classesN strip_classesN report_levelK halt_levelKexit_status_levelKdebugNwarning_streamN tracebackinput_encoding utf-8-siginput_encoding_error_handlerstrictoutput_encodingutf-8output_encoding_error_handlerj9error_encodingutf-8error_encoding_error_handlerbackslashreplace language_codeenrecord_dependenciesNconfigN id_prefixhauto_id_prefixid dump_settingsNdump_internalsNdump_transformsNdump_pseudo_xmlNexpose_internalsNstrict_visitorN_disable_configN_sourceh _destinationN _config_files]7/var/lib/git/docbuild/linux/Documentation/docutils.confafile_insertion_enabled raw_enabledKline_length_limitM'pep_referencesN pep_base_urlhttps://peps.python.org/pep_file_url_templatepep-%04drfc_referencesN rfc_base_url&https://datatracker.ietf.org/doc/html/ tab_widthKtrim_footnote_reference_spacesyntax_highlightlong smart_quotessmartquotes_locales]character_level_inline_markupdoctitle_xform docinfo_xformKsectsubtitle_xform image_loadinglinkembed_stylesheetcloak_email_addressessection_self_linkenvNubreporterNindirect_targets]substitution_defs}substitution_names}refnames}refids}jFm]j;masnameids}(jjj%mj"mjjjjjjj\jYjNjNjjj2Pj/PjOjOjPjPj*Pj'PjmjmjֳjӳjʳjFmjɳjƳj3j0jjj+j(jSjPjKjHjjjCj@j jjjjju nametypes}(jj%mjjjj\jNjj2PjOjPj*Pjmjֳjʳjɳj3jj+jSjKjjCj jjuh}(jhj"mhjjjjjjjYjjNj_jjjjjj2j7jjjjjjjjj%j%jS(jX(j)j)j,j,jr/jw/j0j0j2j2j4j4j6j6j7j7j9j9j"=j'=j AjAjCjCjEjEj.Gj3GjJjJjLjLj/PjNjOjNjPjOj'PjPjmj5PjPjPjSjSjVjVjYjYj[j[j]j]j_j_jbjbjejejLijQijjjjjӳj(mjFmjGmjƳjGmjnjnjpjpjsjsjjjjjjjjjƉjˉj]jbjюj֎jEjJjjjjjjjjjɡjΡjjj%j*jjjjj jjgjlj0jٳjjj4j9jjjjjjjhjmjjjnjsjjjOjTjljqjjjnjsjIjNjjjhjmjjj`jejjj`jejjjjjjj(jjjjPj6jHjGjjtj@jjjVjjujju footnote_refs} citation_refs} autofootnotes]autofootnote_refs]symbol_footnotes]symbol_footnote_refs] footnotes] citations]autofootnote_startKsymbol_footnote_startK id_counter collectionsCounter}Rparse_messages]hsystem_message)}(hhh]h)}(heUnexpected possible title overline or transition. Treating it as ordinary text because it's so short.h]hgUnexpected possible title overline or transition. Treating it as ordinary text because it’s so short.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]levelKtypeINFOlineKXsourcejuh1jhjubatransform_messages]j)}(hhh]h)}(hhh]h5Hyperlink target "drm-driver-fops" is not referenced.}hjsbah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]levelKtypejsourcehlineKuh1juba transformerN include_log] decorationNhhub.