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]hPortuguese (Brazilian)}hhsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget%/translations/pt_BR/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 }(hjhhhNhNubh)}(h(:c:type:`struct drm_driver `h]hliteral)}(hjh]hstruct drm_driver}(hjhhhNhNubah}(h]h ](xrefcc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocgpu/drm-internals refdomainj!reftypetype refexplicitrefwarn reftarget drm_driveruh1hhhhKhjubhX 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().}(hjhhhNhNubeh}(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)}(hjIh]hstruct drm_driver}(hjKhhhNhNubah}(h]h ](j j!c-typeeh"]h$]h&]uh1jhjGubah}(h]h ]h"]h$]h&]refdocj- refdomainj!reftypetype refexplicitrefwarnj3 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)}(hjlh]hstruct drm_driver}(hjnhhhNhNubah}(h]h ](j j!c-typeeh"]h$]h&]uh1jhjjubah}(h]h ]h"]h$]h&]refdocj- refdomainj!reftypetype refexplicitrefwarnj3 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.}(hj'hhhNhNubah}(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.}(hj6hhhNhNubah}(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);}hjGsbah}(h]h ]h"]h$]h&] xml:spacepreserveforcelanguagej!highlight_args}uh1jEhZ/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.}(hj\hhhNhNubah}(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}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjshhhhhKOubh)}(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 }(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 refexplicitrefwarnj3 drm_deviceuh1hh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:81: ./drivers/gpu/drm/drm_drv.chM hjubhX. 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().}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhM hjshhubh)}(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 refexplicitrefwarnj3 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&]uh1hhjhMhjshhubh)}(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 refexplicitrefwarnj3 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&]uh1hhjhMhjshhubh)}(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)}(hj$h]hdevice}(hj&hhhNhNubah}(h]h ](j j!c-typeeh"]h$]h&]uh1jhj"ubah}(h]h ]h"]h$]h&]refdocj- refdomainj!reftypetype refexplicitrefwarnj3deviceuh1hh[/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)}(hjHh]h drm_device}(hjJhhhNhNubah}(h]h ](j j!c-typeeh"]h$]h&]uh1jhjFubah}(h]h ]h"]h$]h&]refdocj- refdomainj!reftypetype refexplicitrefwarnj3 drm_deviceuh1hhjAhMhjubhP managed resources with drmm_add_action(), drmm_kmalloc() and related functions.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjAhMhjshhubh)}(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().}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:81: ./drivers/gpu/drm/drm_drv.chM$hjshhubh)}(hhh](h)}(hDisplay driver exampleh]hDisplay driver example}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj~hNhNubh)}(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().}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:81: ./drivers/gpu/drm/drm_drv.chM+hj~ubjF)}(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&]jUjVjWjXj!jY}uh1jEh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:81: ./drivers/gpu/drm/drm_drv.chM/hj~ubh)}(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.chMhj~ubeh}(h]display-driver-exampleah ]h"]display driver exampleah$]h&]uh1hhjshhhNhNubhindex)}(hhh]h}(h]h ]h"]h$]h&]entries](singledrm_wedge_task_info (C struct)c.drm_wedge_task_infohNtauh1jhjshhhNhNubhdesc)}(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&]uh1jhj ubah}(h]h ](sig-namedescnameeh"]h$]h&]jUjVuh1j hjhhhjhKubeh}(h]h ]h"]h$]h&]jUjV 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}(hjAhhhNhNubah}(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!objtypejYdesctypejYnoindex noindexentrynocontentsentryuh1jhhhjshNhNubh 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}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jmhjiubh:}(hjihhhNhNubeh}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:84: ./include/drm/drm_device.hhK.hjeubjF)}(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]; };}hjsbah}(h]h ]h"]h$]h&]jUjVuh1jEhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:84: ./include/drm/drm_device.hhK0hjeubh)}(h **Members**h]jn)}(hjh]hMembers}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jmhjubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:84: ./include/drm/drm_device.hhK5hjeubhdefinition_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.hhK0hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhK/hjubeh}(h]h ]h"]h$]h&]uh1jhjeubeh}(h]h ] kernelindentah"]h$]h&]uh1jchjshhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jswitch_power_state (C enum)c.switch_power_statehNtauh1jhjshhhNhNubj)}(hhh](j)}(hswitch_power_stateh]j)}(henum switch_power_stateh](j)}(henumh]henum}(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOhhhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:84: ./include/drm/drm_device.hhK6ubj)}(h h]h }(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOhhhjahK6ubj )}(hswitch_power_stateh]j)}(hjMh]hswitch_power_state}(hjthhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjpubah}(h]h ](j#j$eh"]h$]h&]jUjVuh1j hjOhhhjahK6ubeh}(h]h ]h"]h$]h&]jUjVj.uh1jj/j0hjKhhhjahK6ubah}(h]jFah ](j4j5eh"]h$]h&]j9j:)j;huh1jhjahK6hjHhhubj=)}(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.hhK4hjhhubah}(h]h ]h"]h$]h&]uh1j<hjHhhhjahK6ubeh}(h]h ](j!enumeh"]h$]h&]j]j!j^jj_jj`jajbuh1jhhhjshNhNubjd)}(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]jn)}(hjh]h Constants}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jmhjubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:84: ./include/drm/drm_device.hhK8hjubj)}(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.hhK;hjubj)}(hhh]h)}(hPower state is ONh]hPower state is ON}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhK;hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhK;hjubj)}(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>hj ubj)}(hhh]h)}(hPower state is OFFh]hPower state is OFF}(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>hjubj)}(h6``DRM_SWITCH_POWER_CHANGING`` Power state is changing h](j)}(h``DRM_SWITCH_POWER_CHANGING``h]j)}(hjIh]hDRM_SWITCH_POWER_CHANGING}(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.hhKAhjCubj)}(hhh]h)}(hPower state is changingh]hPower state is changing}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj^hKAhj_ubah}(h]h ]h"]h$]h&]uh1jhjCubeh}(h]h ]h"]h$]h&]uh1jhj^hKAhjubj)}(h*``DRM_SWITCH_POWER_DYNAMIC_OFF`` Suspendedh](j)}(h ``DRM_SWITCH_POWER_DYNAMIC_OFF``h]j)}(hjh]hDRM_SWITCH_POWER_DYNAMIC_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.hhKChj|ubj)}(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.hhKDhjubah}(h]h ]h"]h$]h&]uh1jhj|ubeh}(h]h ]h"]h$]h&]uh1jhjhKChjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jchjshhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jdrm_device (C struct) c.drm_devicehNtauh1jhjshhhNhNubj)}(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.hhKIubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhKIubj )}(h drm_deviceh]j)}(hjh]h drm_device}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](j#j$eh"]h$]h&]jUjVuh1j hjhhhjhKIubeh}(h]h ]h"]h$]h&]jUjVj.uh1jj/j0hjhhhjhKIubah}(h]jah ](j4j5eh"]h$]h&]j9j:)j;huh1jhjhKIhjhhubj=)}(hhh]h)}(hDRM device structureh]hDRM device structure}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:84: ./include/drm/drm_device.hhKFhjhhubah}(h]h ]h"]h$]h&]uh1j<hjhhhjhKIubeh}(h]h ](j!structeh"]h$]h&]j]j!j^j6j_j6j`jajbuh1jhhhjshNhNubjd)}(hX**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; #ifdef CONFIG_TRANSPARENT_HUGEPAGE; struct vfsmount *huge_mnt; #endif; 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; struct list_head client_sysrq_list; 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**. ``managed.resources`` managed resources list ``managed.final_kfree`` pointer for final kfree() call ``managed.lock`` protects **managed.resources** ``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` ``huge_mnt`` Huge tmpfs mountpoint used at GEM object initialization drm_gem_object_init(). Drivers can call drm_gem_huge_mnt_create() to create, mount and use it. The default tmpfs mountpoint (`shm_mnt`) is used if NULL. ``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`. ``client_sysrq_list`` Entry into list of devices registered for sysrq. Allows in-kernel clients on this device to handle sysrq keys. ``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](jn)}(h**Definition**h]h Definition}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1jmhj>ubh:}(hj>hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:84: ./include/drm/drm_device.hhKJhj:ubjF)}(hXstruct 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; #ifdef CONFIG_TRANSPARENT_HUGEPAGE; struct vfsmount *huge_mnt; #endif; 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; struct list_head client_sysrq_list; 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]hXstruct 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; #ifdef CONFIG_TRANSPARENT_HUGEPAGE; struct vfsmount *huge_mnt; #endif; 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; struct list_head client_sysrq_list; 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; };}hj[sbah}(h]h ]h"]h$]h&]jUjVuh1jEhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:84: ./include/drm/drm_device.hhKLhj:ubh)}(h **Members**h]jn)}(hjlh]hMembers}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jmhjjubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:84: ./include/drm/drm_device.hhK~hj:ubj)}(hhh](j)}(h-``if_version`` Highest interface version set h](j)}(h``if_version``h]j)}(hjh]h if_version}(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)}(hHighest interface version seth]hHighest interface version set}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKMhjubj)}(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.hhKPhjubj)}(hhh]h)}(hObject ref-counth]hObject ref-count}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKPhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKPhjubj)}(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.hhKShjubj)}(hhh]h)}(hDevice structure of bus-deviceh]hDevice structure of bus-device}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKShjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKShjubj)}(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)}(hj6h]hdma_dev}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj4ubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:84: ./include/drm/drm_device.hhKfhj0ubj)}(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 }(hjOhhhNhNubjn)}(h**dev**h]hdev}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jmhjOubh 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.}(hjOhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:84: ./include/drm/drm_device.hhKWhjLubh)}(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.}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:84: ./include/drm/drm_device.hhK\hjLubh)}(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 }(hjhhhNhNubjn)}(h **dma_dev**h]hdma_dev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jmhjubh} field should point the bus controller that does DMA on behalve of such a device. Required for importing buffers via dma-buf.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:84: ./include/drm/drm_device.hhK`hjLubh)}(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.hhKehjLubeh}(h]h ]h"]h$]h&]uh1jhj0ubeh}(h]h ]h"]h$]h&]uh1jhjKhKfhjubj)}(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.hhKnhjubj)}(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]sbj3 drm_deviceuh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:84: ./include/drm/drm_device.hhKmhjubh as tracked by }(hjhhhNhNubjn)}(h**ref**h]href}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jmhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj hKmhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKnhjubj)}(h-``managed.resources`` managed resources list h](j)}(h``managed.resources``h]j)}(hj8 h]hmanaged.resources}(hj: hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6 ubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:84: ./include/drm/drm_device.hhKshj2 ubj)}(hhh]h)}(hmanaged resources listh]hmanaged resources list}(hjQ hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjM hKshjN ubah}(h]h ]h"]h$]h&]uh1jhj2 ubeh}(h]h ]h"]h$]h&]uh1jhjM hKshjubj)}(h7``managed.final_kfree`` pointer for final kfree() call h](j)}(h``managed.final_kfree``h]j)}(hjq h]hmanaged.final_kfree}(hjs hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjo ubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:84: ./include/drm/drm_device.hhKuhjk ubj)}(hhh]h)}(hpointer for final kfree() callh]hpointer for final kfree() call}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hKuhj ubah}(h]h ]h"]h$]h&]uh1jhjk ubeh}(h]h ]h"]h$]h&]uh1jhj hKuhjubj)}(h0``managed.lock`` protects **managed.resources** h](j)}(h``managed.lock``h]j)}(hj h]h managed.lock}(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.hhKwhj ubj)}(hhh]h)}(hprotects **managed.resources**h](h protects }(hj hhhNhNubjn)}(h**managed.resources**h]hmanaged.resources}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jmhj ubeh}(h]h ]h"]h$]h&]uh1hhj hKwhj ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj hKwhjubj)}(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.hhK{hj ubj)}(hhh]h)}(hDRM driver managing the deviceh]hDRM driver managing the 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{hjubj)}(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.hhKhj$ 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.}(hjC hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:84: ./include/drm/drm_device.hhKhj@ 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 }(hjR hhhNhNubh)}(h:c:type:`drm_device`h]j)}(hj\ h]h drm_device}(hj^ hhhNhNubah}(h]h ](j j!c-typeeh"]h$]h&]uh1jhjZ ubah}(h]h ]h"]h$]h&]refdocj- refdomainj!reftypetype refexplicitrefwarnj j j3 drm_deviceuh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:84: ./include/drm/drm_device.hhKhjR ubh& in their larger per-device structure.}(hjR hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjy hKhj@ ubeh}(h]h ]h"]h$]h&]uh1jhj$ ubeh}(h]h ]h"]h$]h&]uh1jhj? hKhjubj)}(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 hhhNhNubjn)}(h**dev**h]hdev}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jmhj 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 hKhjubj)}(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 hKhjubj)}(h$``accel`` Compute Acceleration node h](j)}(h ``accel``h]j)}(hj h]haccel}(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)}(hCompute Acceleration nodeh]hCompute Acceleration node}(hj5 hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj1 hKhj2 ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj1 hKhjubj)}(hS``registered`` Internally used by drm_dev_register() and drm_connector_register(). h](j)}(h``registered``h]j)}(hjU h]h registered}(hjW hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjS ubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:84: ./include/drm/drm_device.hhKhjO ubj)}(hhh]h)}(hCInternally used by drm_dev_register() and drm_connector_register().h]hCInternally used by drm_dev_register() and drm_connector_register().}(hjn hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjj hKhjk ubah}(h]h ]h"]h$]h&]uh1jhjO ubeh}(h]h ]h"]h$]h&]uh1jhjj hKhjubj)}(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 refexplicitrefwarnj j j3 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 hKhjubj)}(h``huge_mnt`` Huge tmpfs mountpoint used at GEM object initialization drm_gem_object_init(). Drivers can call drm_gem_huge_mnt_create() to create, mount and use it. The default tmpfs mountpoint (`shm_mnt`) is used if NULL. h](j)}(h ``huge_mnt``h]j)}(hj h]hhuge_mnt}(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)}(hHuge tmpfs mountpoint used at GEM object initialization drm_gem_object_init(). Drivers can call drm_gem_huge_mnt_create() to create, mount and use it. The default tmpfs mountpoint (`shm_mnt`) is used if NULL.h](hHuge tmpfs mountpoint used at GEM object initialization drm_gem_object_init(). Drivers can call drm_gem_huge_mnt_create() to create, mount and use it. The default tmpfs mountpoint (}(hj hhhNhNubhtitle_reference)}(h `shm_mnt`h]hshm_mnt}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j hj ubh) is used if NULL.}(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 hKhjubj)}(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)}(hj5 h]hdriver_features}(hj7 hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3 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}(hjN hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:84: ./include/drm/drm_device.hhKhjK 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 }(hj] hhhNhNubh)}(h(:c:type:`struct drm_driver `h]j)}(hjg h]hstruct drm_driver}(hji hhhNhNubah}(h]h ](j j!c-typeeh"]h$]h&]uh1jhje ubah}(h]h ]h"]h$]h&]refdocj- refdomainj!reftypetype refexplicitrefwarnj j j3 drm_driveruh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:84: ./include/drm/drm_device.hhKhj] ubh instance across all devices.}(hj] hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj hKhjK ubeh}(h]h ]h"]h$]h&]uh1jhj/ ubeh}(h]h ]h"]h$]h&]uh1jhjJ hKhjubj)}(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 hKhjubj)}(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 hKhjubj)}(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) hKhjubj)}(hm``master_mutex`` Lock for :c:type:`drm_minor.master ` and :c:type:`drm_file.is_master ` h](j)}(h``master_mutex``h]j)}(hjM h]h master_mutex}(hjO hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjK ubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:84: ./include/drm/drm_device.hhKhjG ubj)}(hhh]h)}(h[Lock for :c:type:`drm_minor.master ` and :c:type:`drm_file.is_master `h](h Lock for }(hjf hhhNhNubh)}(h&:c:type:`drm_minor.master `h]j)}(hjp h]hdrm_minor.master}(hjr hhhNhNubah}(h]h ](j j!c-typeeh"]h$]h&]uh1jhjn ubah}(h]h ]h"]h$]h&]refdocj- refdomainj!reftypetype refexplicitrefwarnj j j3 drm_minoruh1hhjb hKhjf ubh and }(hjf hhhNhNubh)}(h':c:type:`drm_file.is_master `h]j)}(hj h]hdrm_file.is_master}(hj hhhNhNubah}(h]h ](j j!c-typeeh"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]refdocj- refdomainj!reftypetype refexplicitrefwarnj j j3drm_fileuh1hhjb hKhjf ubeh}(h]h ]h"]h$]h&]uh1hhjb hKhjc ubah}(h]h ]h"]h$]h&]uh1jhjG ubeh}(h]h ]h"]h$]h&]uh1jhjb hKhjubj)}(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 hKhjubj)}(h*``filelist_mutex`` Protects **filelist**. h](j)}(h``filelist_mutex``h]j)}(hjh]hfilelist_mutex}(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.hhKhj ubj)}(hhh]h)}(hProtects **filelist**.h](h Protects }(hjhhhNhNubjn)}(h **filelist**h]hfilelist}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1jmhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubj)}(h\``filelist`` List of userspace clients, linked through :c:type:`drm_file.lhead `. h](j)}(h ``filelist``h]j)}(hjMh]hfilelist}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjKubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:84: ./include/drm/drm_device.hhKhjGubj)}(hhh]h)}(hNList of userspace clients, linked through :c:type:`drm_file.lhead `.h](h*List of userspace clients, linked through }(hjfhhhNhNubh)}(h#:c:type:`drm_file.lhead `h]j)}(hjph]hdrm_file.lhead}(hjrhhhNhNubah}(h]h ](j j!c-typeeh"]h$]h&]uh1jhjnubah}(h]h ]h"]h$]h&]refdocj- refdomainj!reftypetype refexplicitrefwarnj j j3drm_fileuh1hhjbhKhjfubh.}(hjfhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjbhKhjcubah}(h]h ]h"]h$]h&]uh1jhjGubeh}(h]h ]h"]h$]h&]uh1jhjbhKhjubj)}(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)}(hjh]hfilelist_internal}(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)}(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 }(hjhhhNhNubh)}(h:c:type:`filelist_mutex`h]j)}(hjh]hfilelist_mutex}(hjhhhNhNubah}(h]h ](j j!c-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj- refdomainj!reftypetype refexplicitrefwarnj j j3filelist_mutexuh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:84: ./include/drm/drm_device.hhKhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubj)}(h;``clientlist_mutex`` Protects :c:type:`clientlist` access. h](j)}(h``clientlist_mutex``h]j)}(hjh]hclientlist_mutex}(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)}(h%Protects :c:type:`clientlist` access.h](h Protects }(hjhhhNhNubh)}(h:c:type:`clientlist`h]j)}(hj)h]h clientlist}(hj+hhhNhNubah}(h]h ](j j!c-typeeh"]h$]h&]uh1jhj'ubah}(h]h ]h"]h$]h&]refdocj- refdomainj!reftypetype refexplicitrefwarnj j j3 clientlistuh1hhjhKhjubh access.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubj)}(hS``clientlist`` List of in-kernel clients. Protected by :c:type:`clientlist_mutex`. h](j)}(h``clientlist``h]j)}(hjbh]h clientlist}(hjdhhhNhNubah}(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)}(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)}(hjh]hclientlist_mutex}(hjhhhNhNubah}(h]h ](j j!c-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj- refdomainj!reftypetype refexplicitrefwarnj j j3clientlist_mutexuh1hhjwhKhj{ubh.}(hj{hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjwhKhjxubah}(h]h ]h"]h$]h&]uh1jhj\ubeh}(h]h ]h"]h$]h&]uh1jhjwhKhjubj)}(h``client_sysrq_list`` Entry into list of devices registered for sysrq. Allows in-kernel clients on this device to handle sysrq keys. h](j)}(h``client_sysrq_list``h]j)}(hjh]hclient_sysrq_list}(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)}(hnEntry into list of devices registered for sysrq. Allows in-kernel clients on this device to handle sysrq keys.h]hnEntry into list of devices registered for sysrq. Allows in-kernel clients on this device to handle sysrq keys.}(hjhhhNhNubah}(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&]uh1jhjhMhjubj)}(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.hhMhjubj)}(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.hhM hjubh)}(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 }(hj hhhNhNubjn)}(h**max_vblank_count**h]hmax_vblank_count}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1jmhj ubh, }(hj hhhNhNubh)}(h<:c:type:`drm_crtc_funcs.get_vblank_counter `h]j)}(hj<h]h!drm_crtc_funcs.get_vblank_counter}(hj>hhhNhNubah}(h]h ](j j!c-typeeh"]h$]h&]uh1jhj:ubah}(h]h ]h"]h$]h&]refdocj- refdomainj!reftypetype refexplicitrefwarnj j j3drm_crtc_funcsuh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:84: ./include/drm/drm_device.hhMhj ubh and }(hj hhhNhNubh)}(hK:c:type:`drm_vblank_crtc_config.disable_immediate `h]j)}(hj`h]h(drm_vblank_crtc_config.disable_immediate}(hjbhhhNhNubah}(h]h ](j j!c-typeeh"]h$]h&]uh1jhj^ubah}(h]h ]h"]h$]h&]refdocj- refdomainj!reftypetype refexplicitrefwarnj j j3drm_vblank_crtc_configuh1hhjYhMhj ubh.}(hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjYhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj hMhjubj)}(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)}(hjh]hvblank}(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)}(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 }(hjhhhNhNubh)}(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 refexplicitrefwarnj j j3drm_crtcuh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:84: ./include/drm/drm_device.hhMhjubhl. For historical reasons (vblank support predates kernel modesetting) this is free-standing and not part of }(hjhhhNhNubh)}(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 refexplicitrefwarnj j j3drm_crtcuh1hhjhMhjubhH itself. It must be initialized explicitly by calling drm_vblank_init().}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(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}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj.hM$hj/ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj.hM$hjubj)}(hY``vbl_lock`` Top-level vblank references lock, wraps the low-level **vblank_time_lock**. h](j)}(h ``vbl_lock``h]j)}(hjRh]hvbl_lock}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1jhjPubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:84: ./include/drm/drm_device.hhM+hjLubj)}(hhh]h)}(hKTop-level vblank references lock, wraps the low-level **vblank_time_lock**.h](h6Top-level vblank references lock, wraps the low-level }(hjkhhhNhNubjn)}(h**vblank_time_lock**h]hvblank_time_lock}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1jmhjkubh.}(hjkhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:84: ./include/drm/drm_device.hhM*hjhubah}(h]h ]h"]h$]h&]uh1jhjLubeh}(h]h ]h"]h$]h&]uh1jhjghM+hjubj)}(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)}(hjh]hmax_vblank_count}(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)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:84: ./include/drm/drm_device.hhM0hjubh)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:84: ./include/drm/drm_device.hhM4hjubh)}(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 refexplicitrefwarnj j j3drm_vblank_crtcuh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:84: ./include/drm/drm_device.hhM:hjubh, in which case }(hjhhhNhNubjn)}(h**max_vblank_count**h]hmax_vblank_count}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jmhjubh\ 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:hjubh)}(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)}(hj#h]h!drm_crtc_funcs.get_vblank_counter}(hj%hhhNhNubah}(h]h ](j j!c-typeeh"]h$]h&]uh1jhj!ubah}(h]h ]h"]h$]h&]refdocj- refdomainj!reftypetype refexplicitrefwarnj j j3drm_crtc_funcsuh1hhjhM@hjubh must be set.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhM@hjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM@hjubj)}(h,``vblank_event_list`` List of vblank events h](j)}(h``vblank_event_list``h]j)}(hj\h]hvblank_event_list}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjZubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:84: ./include/drm/drm_device.hhMFhjVubj)}(hhh]h)}(hList of vblank eventsh]hList of vblank events}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjqhMFhjrubah}(h]h ]h"]h$]h&]uh1jhjVubeh}(h]h ]h"]h$]h&]uh1jhjqhMFhjubj)}(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)}(hjh]h event_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.hhMKhjubj)}(hhh]h)}(hoProtects **vblank_event_list** and event delivery in general. See drm_send_event() and drm_send_event_locked().h](h Protects }(hjhhhNhNubjn)}(h**vblank_event_list**h]hvblank_event_list}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jmhjubhQ and event delivery in general. See drm_send_event() and drm_send_event_locked().}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:84: ./include/drm/drm_device.hhMJhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMKhjubj)}(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.hhMQhjubj)}(hhh]h)}(hNumber of CRTCs on this deviceh]hNumber of CRTCs on this device}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMQhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMQhjubj)}(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.hhMThjubj)}(hhh]h)}(hCurrent mode configh]hCurrent mode config}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj/hMThj0ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj/hMThjubj)}(h%``object_name_lock`` GEM information h](j)}(h``object_name_lock``h]j)}(hjSh]hobject_name_lock}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjQubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:84: ./include/drm/drm_device.hhMWhjMubj)}(hhh]h)}(hGEM informationh]hGEM information}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhMWhjiubah}(h]h ]h"]h$]h&]uh1jhjMubeh}(h]h ]h"]h$]h&]uh1jhjhhMWhjubj)}(h$``object_name_idr`` GEM information h](j)}(h``object_name_idr``h]j)}(hjh]hobject_name_idr}(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.hhMZhjubj)}(hhh]h)}(hGEM informationh]hGEM information}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMZhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMZhjubj)}(h'``vma_offset_manager`` GEM information h](j)}(h``vma_offset_manager``h]j)}(hjh]hvma_offset_manager}(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]hjubj)}(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.hhM`hjubj)}(hhh]h)}(hVRAM MM memory managerh]hVRAM MM memory manager}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM`hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM`hjubj)}(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)}(hj7h]hswitch_power_state}(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.hhMghj1ubj)}(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 }(hjPhhhNhNubh)}(hM:c:type:`vga_switcheroo_client_ops.set_gpu_state `h]j)}(hjZh]h'vga_switcheroo_client_ops.set_gpu_state}(hj\hhhNhNubah}(h]h ](j j!c-typeeh"]h$]h&]uh1jhjXubah}(h]h ]h"]h$]h&]refdocj- refdomainj!reftypetype refexplicitrefwarnj j j3vga_switcheroo_client_opsuh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:84: ./include/drm/drm_device.hhMdhjPubh callback}(hjPhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjwhMdhjMubah}(h]h ]h"]h$]h&]uh1jhj1ubeh}(h]h ]h"]h$]h&]uh1jhjLhMghjubj)}(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)}(hjh]h fb_helper}(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.hhMohjubj)}(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().}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:84: ./include/drm/drm_device.hhMnhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMohjubj)}(h2``debugfs_root`` Root directory for debugfs files.h](j)}(h``debugfs_root``h]j)}(hjh]h debugfs_root}(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.hhMuhjubj)}(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.hhMvhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMuhjubeh}(h]h ]h"]h$]h&]uh1jhj:ubeh}(h]h ] kernelindentah"]h$]h&]uh1jchjshhhNhNubh)}(h**Description**h]jn)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jmhjubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:84: ./include/drm/drm_device.hhMyhjshhubh)}(hIThis structure represent a complete card that may contain multiple heads.h]hIThis structure represent a complete card that may contain multiple heads.}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:84: ./include/drm/drm_device.hhKGhjshhubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jdrm_dev_dma_dev (C function)c.drm_dev_dma_devhNtauh1jhjshhhNhNubj)}(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}(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKhhhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:84: ./include/drm/drm_device.hhMubj)}(h h]h }(hj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKhhhj\hMubh)}(hhh]j)}(hdeviceh]hdevice}(hjnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkubah}(h]h ]h"]h$]h&] refdomainj!reftype identifier reftargetjpmodnameN classnameNj j )}j ]j ASTIdentifier)}jdrm_dev_dma_devsbc.drm_dev_dma_devasbuh1hhjKhhhj\hMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKhhhj\hMubhdesc_sig_punctuation)}(h*h]h*}(hjhhhNhNubah}(h]h ]pah"]h$]h&]uh1jhjKhhhj\hMubj )}(hdrm_dev_dma_devh]j)}(hjh]hdrm_dev_dma_dev}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](j#j$eh"]h$]h&]jUjVuh1j hjKhhhj\hMubhdesc_parameterlist)}(h(struct drm_device *dev)h]hdesc_parameter)}(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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj!reftypej reftargetjmodnameN classnameNj j )}j ]jc.drm_dev_dma_devasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hdevh]hdev}(hj+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjUjVuh1jhjubah}(h]h ]h"]h$]h&]jUjVuh1jhjKhhhj\hMubeh}(h]h ]h"]h$]h&]jUjVj.uh1jj/j0hjGhhhj\hMubah}(h]jBah ](j4j5eh"]h$]h&]j9j:)j;huh1jhj\hMhjDhhubj=)}(hhh]h)}(h'returns the DMA device for a DRM deviceh]h'returns the DMA device for a DRM device}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:84: ./include/drm/drm_device.hhMhjRhhubah}(h]h ]h"]h$]h&]uh1j<hjDhhhj\hMubeh}(h]h ](j!functioneh"]h$]h&]j]j!j^jmj_jmj`jajbuh1jhhhjshNhNubjd)}(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]jn)}(hjwh]h Parameters}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jmhjuubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:84: ./include/drm/drm_device.hhMhjqubj)}(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&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:84: ./include/drm/drm_device.hhMhjubj)}(hhh]h)}(h DRM deviceh]h DRM device}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjqubh)}(h**Description**h]jn)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jmhjubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:84: ./include/drm/drm_device.hhMhjqubh)}(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.hhMhjqubh)}(h **Return**h]jn)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jmhjubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:84: ./include/drm/drm_device.hhMhjqubh)}(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.hhMhjqubeh}(h]h ] kernelindentah"]h$]h&]uh1jchjshhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jdrm_driver_feature (C enum)c.drm_driver_featurehNtauh1jhjshhhNhNubj)}(hhh](j)}(hdrm_driver_featureh]j)}(henum drm_driver_featureh](j)}(hjUh]henum}(hj=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9hhhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhKubj)}(h h]h }(hjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9hhhjJhKubj )}(hdrm_driver_featureh]j)}(hj7h]hdrm_driver_feature}(hj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubah}(h]h ](j#j$eh"]h$]h&]jUjVuh1j hj9hhhjJhKubeh}(h]h ]h"]h$]h&]jUjVj.uh1jj/j0hj5hhhjJhKubah}(h]j0ah ](j4j5eh"]h$]h&]j9j:)j;huh1jhjJhKhj2hhubj=)}(hhh]h)}(h feature flagsh]h feature flags}(hjhhhNhNubah}(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<hj2hhhjJhKubeh}(h]h ](j!enumeh"]h$]h&]j]j!j^jj_jj`jajbuh1jhhhjshNhNubjd)}(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]jn)}(hjh]h Constants}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jmhjubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhK8hjubj)}(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)}(hjh]h DRIVER_GEM}(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` for details. h](j)}(h``DRIVER_RENDER``h]j)}(hj3h]h DRIVER_RENDER}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhKChj-ubj)}(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 }(hjLhhhNhNubh)}(h0:ref:`section on render nodes `h]hinline)}(hjVh]hsection on render nodes}(hjZhhhNhNubah}(h]h ](j stdstd-refeh"]h$]h&]uh1jXhjTubah}(h]h ]h"]h$]h&]refdocj- refdomainjdreftyperef refexplicitrefwarnj3drm_render_nodeuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhKBhjLubh for details.}(hjLhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjvhKBhjIubah}(h]h ]h"]h$]h&]uh1jhj-ubeh}(h]h ]h"]h$]h&]uh1jhjHhKChjubj)}(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)}(hjh]h DRIVER_ATOMIC}(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.hhKJhjubj)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhKFhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKJhjubj)}(hm``DRIVER_SYNCOBJ`` Driver supports :c:type:`drm_syncobj` for explicit synchronization of command submission. h](j)}(h``DRIVER_SYNCOBJ``h]j)}(hjh]hDRIVER_SYNCOBJ}(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.hhKNhjubj)}(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 refexplicitrefwarnj j j3 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&]uh1hhj hKMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKNhjubj)}(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)}(hj*h]hDRIVER_SYNCOBJ_TIMELINE}(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.hhKRhj$ubj)}(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 }(hjChhhNhNubh)}(h:c:type:`drm_syncobj`h]j)}(hjMh]h drm_syncobj}(hjOhhhNhNubah}(h]h ](j j!c-typeeh"]h$]h&]uh1jhjKubah}(h]h ]h"]h$]h&]refdocj- refdomainj!reftypetype refexplicitrefwarnj j j3 drm_syncobjuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhKQhjCubh4 for explicit synchronization of command submission.}(hjChhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjjhKQhj@ubah}(h]h ]h"]h$]h&]uh1jhj$ubeh}(h]h ]h"]h$]h&]uh1jhj?hKRhjubj)}(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)}(hjh]hDRIVER_COMPUTE_ACCEL}(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.hhKWhjubj)}(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 }(hjhhhNhNubjn)}(h**DRIVER_RENDER**h]h DRIVER_RENDER}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jmhjubh and }(hjhhhNhNubjn)}(h**DRIVER_MODESET**h]hDRIVER_MODESET}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jmhjubh. Devices that support both graphics and compute acceleration should be handled by two drivers that are connected using auxiliary bus.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhKUhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKWhjubj)}(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&]uh1jhjhKZhjubj)}(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}(hj hhhNhNubah}(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).}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhK]hj4ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj3hK`hjubj)}(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)}(hjXh]hDRIVER_USE_AGP}(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.hhKdhjRubj)}(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.}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhKchjnubah}(h]h ]h"]h$]h&]uh1jhjRubeh}(h]h ]h"]h$]h&]uh1jhjmhKdhjubj)}(hJ``DRIVER_LEGACY`` Denote a legacy driver using shadow attach. Do not use. h](j)}(h``DRIVER_LEGACY``h]j)}(hjh]h DRIVER_LEGACY}(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.hhKghjubj)}(hhh]h)}(h7Denote a legacy driver using shadow attach. Do not use.h]h7Denote a legacy driver using shadow attach. Do not use.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKghjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKghjubj)}(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)}(hjh]hDRIVER_PCI_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.hhKkhjubj)}(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&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKkhjubj)}(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&]uh1jhjhKphjubj)}(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)}(hj?h]hDRIVER_HAVE_DMA}(hjAhhhNhNubah}(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.hhKthj9ubj)}(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.}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhKshjUubah}(h]h ]h"]h$]h&]uh1jhj9ubeh}(h]h ]h"]h$]h&]uh1jhjThKthjubj)}(hL``DRIVER_HAVE_IRQ`` Legacy irq support. Only for legacy drivers. Do not use.h](j)}(h``DRIVER_HAVE_IRQ``h]j)}(hjyh]hDRIVER_HAVE_IRQ}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjwubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhKvhjsubj)}(hhh]h)}(h8Legacy irq support. Only for legacy drivers. Do not use.h]h8Legacy irq support. 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.hhKwhjubah}(h]h ]h"]h$]h&]uh1jhjsubeh}(h]h ]h"]h$]h&]uh1jhjhKvhjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jchjshhhNhNubh)}(h**Description**h]jn)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jmhjubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhKyhjshhubh)}(hoSee :c:type:`drm_driver.driver_features `, drm_device.driver_features and drm_core_check_feature().h](hSee }(hjhhhNhNubh)}(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 refexplicitrefwarnj j j3 drm_driveruh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhK5hjubh:, drm_device.driver_features and drm_core_check_feature().}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhK5hjshhubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jdrm_driver (C struct) c.drm_driverhNtauh1jhjshhhNhNubj)}(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 }(hj+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhj*hK;ubj )}(h drm_driverh]j)}(hjh]h drm_driver}(hj=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9ubah}(h]h ](j#j$eh"]h$]h&]jUjVuh1j hjhhhj*hK;ubeh}(h]h ]h"]h$]h&]jUjVj.uh1jj/j0hjhhhj*hK;ubah}(h]jah ](j4j5eh"]h$]h&]j9j:)j;huh1jhj*hK;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.hhKhj\hhubah}(h]h ]h"]h$]h&]uh1j<hjhhhj*hK;ubeh}(h]h ](j!structeh"]h$]h&]j]j!j^jwj_jwj`jajbuh1jhhhjshNhNubjd)}(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](jn)}(h**Definition**h]h Definition}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jmhjubh:}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhKhj{ubjF)}(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; };}hjsbah}(h]h ]h"]h$]h&]jUjVuh1jEhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhKhj{ubh)}(h **Members**h]jn)}(hjh]hMembers}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jmhjubah}(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)}(hjh]hload}(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)}(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 refexplicitrefwarnj j j3 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)}(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:}(hj&hhhNhNubah}(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.}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubj)}(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)}(hjUh]hopen}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjSubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhKhjOubj)}(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 }(hjnhhhNhNubh)}(h$:c:type:`struct drm_file `h]j)}(hjxh]hstruct drm_file}(hjzhhhNhNubah}(h]h ](j j!c-typeeh"]h$]h&]uh1jhjvubah}(h]h ]h"]h$]h&]refdocj- refdomainj!reftypetype refexplicitrefwarnj j j3drm_fileuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhKhjnubh 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 }(hjnhhhNhNubjn)}(h **postclose**h]h postclose}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jmhjnubh.}(hjnhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhKhjkubh)}(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 }(hjhhhNhNubh)}(h$:c:type:`struct drm_file `h]j)}(hjh]hstruct drm_file}(hjhhhNhNubah}(h]h ](j j!c-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj- refdomainj!reftypetype refexplicitrefwarnj j j3drm_fileuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhKhjubh (see }(hjhhhNhNubh)}(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 refexplicitrefwarnj j j3drm_fileuh1hhjhKhjubh and }(hjhhhNhNubh)}(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 refexplicitrefwarnj j j3 drm_deviceuh1hhjhKhjubh) there should never be a need to set up any modeset related resources in this callback. Doing so would be a driver design bug.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhKhjkubh)}(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.hhKhjkubh)}(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.}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhKhjkubeh}(h]h ]h"]h$]h&]uh1jhjOubeh}(h]h ]h"]h$]h&]uh1jhjjhKhjubj)}(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)}(hjZh]h postclose}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjXubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhKhjTubj)}(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 }(hjshhhNhNubh)}(h$:c:type:`struct drm_file `h]j)}(hj}h]hstruct drm_file}(hjhhhNhNubah}(h]h ](j j!c-typeeh"]h$]h&]uh1jhj{ubah}(h]h ]h"]h$]h&]refdocj- refdomainj!reftypetype refexplicitrefwarnj j j3drm_fileuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhKhjsubhP is closed. Useful for tearing down driver-private data structures allocated in }(hjshhhNhNubjn)}(h**open**h]hopen}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jmhjsubh> like buffer allocators, execution contexts or similar things.}(hjshhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhKhjpubh)}(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 }(hjhhhNhNubh)}(h$:c:type:`struct drm_file `h]j)}(hjh]hstruct drm_file}(hjhhhNhNubah}(h]h ](j j!c-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj- refdomainj!reftypetype refexplicitrefwarnj j j3drm_fileuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhKhjubh (see }(hjhhhNhNubh)}(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 refexplicitrefwarnj j j3drm_fileuh1hhjhKhjubh and }(hjhhhNhNubh)}(h(:c:type:`drm_device.master `h]j)}(hjh]hdrm_device.master}(hj hhhNhNubah}(h]h ](j j!c-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj- refdomainj!reftypetype refexplicitrefwarnj j j3 drm_deviceuh1hhjhKhjubh) there should never be a need to tear down any modeset related resources in this callback. Doing so would be a driver design bug.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhKhjpubeh}(h]h ]h"]h$]h&]uh1jhjTubeh}(h]h ]h"]h$]h&]uh1jhjohKhjubj)}(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)}(hjAh]hunload}(hjChhhNhNubah}(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.hhKhj;ubj)}(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 }(hjZhhhNhNubh)}(h(:c:type:`struct drm_device `h]j)}(hjdh]hstruct drm_device}(hjfhhhNhNubah}(h]h ](j j!c-typeeh"]h$]h&]uh1jhjbubah}(h]h ]h"]h$]h&]refdocj- refdomainj!reftypetype refexplicitrefwarnj j j3 drm_deviceuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhKhjZubh.}(hjZhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhKhjWubh)}(hAThe unload() hook is called right after unregistering the device.h]hAThe unload() hook is called right after unregistering the device.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhKhjWubeh}(h]h ]h"]h$]h&]uh1jhj;ubeh}(h]h ]h"]h$]h&]uh1jhjVhKhjubj)}(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)}(hjh]hrelease}(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)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhKhjubh)}(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 refexplicitrefwarnj j j3 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&]uh1hhjhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(hM``master_set`` Called whenever the minor master is set. Only used by vmwgfx. h](j)}(h``master_set``h]j)}(hj h]h master_set}(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)}(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.}(hj2 hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj. hM hj/ ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj. hM hjubj)}(hR``master_drop`` Called whenever the minor master is dropped. Only used by vmwgfx. h](j)}(h``master_drop``h]j)}(hjR h]h master_drop}(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.hhMhjL ubj)}(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.}(hjk hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjg hMhjh ubah}(h]h ]h"]h$]h&]uh1jhjL ubeh}(h]h ]h"]h$]h&]uh1jhjg hMhjubj)}(hI``debugfs_init`` Allows drivers to create driver-specific debugfs files. h](j)}(h``debugfs_init``h]j)}(hj h]h debugfs_init}(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)}(h7Allows drivers to create driver-specific debugfs files.h]h7Allows drivers to create driver-specific debugfs files.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hMhj ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj hMhjubj)}(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)}(hj h]hgem_create_object}(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)}(hconstructor for gem objectsh]hconstructor for gem objects}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhMhj ubh)}(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.}(hj hhhNhNubah}(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 ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj hM"hjubj)}(hC``prime_handle_to_fd`` PRIME export function. Only used by vmwgfx. h](j)}(h``prime_handle_to_fd``h]j)}(hj !h]hprime_handle_to_fd}(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)}(h+PRIME export function. Only used by vmwgfx.h]h+PRIME export function. Only used by vmwgfx.}(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(hjubj)}(hC``prime_fd_to_handle`` PRIME import function. Only used by vmwgfx. h](j)}(h``prime_fd_to_handle``h]j)}(hjF!h]hprime_fd_to_handle}(hjH!hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjD!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)}(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&]uh1jhj@!ubeh}(h]h ]h"]h$]h&]uh1jhj[!hM/hjubj)}(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.hhM9hjy!ubj)}(hhh](h)}(hImport hook for GEM drivers.h]hImport hook for GEM drivers.}(hj!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.}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj!hM9hj!ubeh}(h]h ]h"]h$]h&]uh1jhjy!ubeh}(h]h ]h"]h$]h&]uh1jhj!hM9hjubj)}(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)}(hj!h]hgem_prime_import_sg_table}(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.hhMAhj!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&]uh1jhj!ubeh}(h]h ]h"]h$]h&]uh1jhj!hMAhjubj)}(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 }(hj8"hhhNhNubh)}(h:c:type:`drm_mode_create_dumb`h]j)}(hjB"h]hdrm_mode_create_dumb}(hjD"hhhNhNubah}(h]h ](j j!c-typeeh"]h$]h&]uh1jhj@"ubah}(h]h ]h"]h$]h&]refdocj- refdomainj!reftypetype refexplicitrefwarnj j j3drm_mode_create_dumbuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhMShj8"ubhX argument. The callback needs to fill the handle, pitch and size for the created buffer.}(hj8"hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj_"hMShj"ubh)}(hCalled by the user via ioctl.h]hCalled by the user via ioctl.}(hjj"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:}(hjy"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.}(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[hjubj)}(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)}(hj"h]hdumb_map_offset}(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.hhMmhj"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.}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhMchj"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.hhMfhj"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.hhMihj"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.hhMkhj"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&]uh1hhj"hMmhj"ubeh}(h]h ]h"]h$]h&]uh1jhj"ubeh}(h]h ]h"]h$]h&]uh1jhj"hMmhjubj)}(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.}(hj6#hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhMvhj3#ubh)}(h-This callback is mandatory for fbdev support.h]h-This callback is mandatory for fbdev support.}(hjE#hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhMzhj3#ubh)}(hReturns:h]hReturns:}(hjT#hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhM|hj3#ubh)}(h00 on success ot a negative error code otherwise.h]h00 on success ot a negative error code otherwise.}(hjc#hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj2#hM~hj3#ubeh}(h]h ]h"]h$]h&]uh1jhj#ubeh}(h]h ]h"]h$]h&]uh1jhj2#hM~hjubj)}(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}(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)}(hIPrint device specific fdinfo. See Documentation/gpu/drm-usage-stats.rst.h]hIPrint device specific fdinfo. See Documentation/gpu/drm-usage-stats.rst.}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj#hMhj#ubah}(h]h ]h"]h$]h&]uh1jhj}#ubeh}(h]h ]h"]h$]h&]uh1jhj#hMhjubj)}(h``major`` driver major number h](j)}(h ``major``h]j)}(hj#h]hmajor}(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 major numberh]hdriver major number}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj#hMhj#ubah}(h]h ]h"]h$]h&]uh1jhj#ubeh}(h]h ]h"]h$]h&]uh1jhj#hMhjubj)}(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 $hMhjubj)}(h"``patchlevel`` driver patch level h](j)}(h``patchlevel``h]j)}(hj.$h]h patchlevel}(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)}(hdriver patch levelh]hdriver patch level}(hjG$hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjC$hMhjD$ubah}(h]h ]h"]h$]h&]uh1jhj($ubeh}(h]h ]h"]h$]h&]uh1jhjC$hMhjubj)}(h``name`` driver name h](j)}(h``name``h]j)}(hjg$h]hname}(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)}(h driver nameh]h driver name}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj|$hMhj}$ubah}(h]h ]h"]h$]h&]uh1jhja$ubeh}(h]h ]h"]h$]h&]uh1jhj|$hMhjubj)}(h``desc`` driver description h](j)}(h``desc``h]j)}(hj$h]hdesc}(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 descriptionh]hdriver description}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj$hMhj$ubah}(h]h ]h"]h$]h&]uh1jhj$ubeh}(h]h ]h"]h$]h&]uh1jhj$hMhjubj)}(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 refexplicitrefwarnj j j3drm_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 refexplicitrefwarnj j j3 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$hMhjubj)}(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)}(hjY%h]hioctls}(hj[%hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjW%ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhMhjS%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 }(hjr%hhhNhNubh)}(hI:ref:`IOCTL support in the userland interfaces chapter`h]jY)}(hj|%h]h0IOCTL support in the userland interfaces chapter}(hj~%hhhNhNubah}(h]h ](j stdstd-refeh"]h$]h&]uh1jXhjz%ubah}(h]h ]h"]h$]h&]refdocj- refdomainj%reftyperef refexplicitrefwarnj3drm_driver_ioctluh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhMhjr%ubh for the full details.}(hjr%hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj%hMhjo%ubah}(h]h ]h"]h$]h&]uh1jhjS%ubeh}(h]h ]h"]h$]h&]uh1jhjn%hMhjubj)}(h0``num_ioctls`` Number of entries in **ioctls**. h](j)}(h``num_ioctls``h]j)}(hj%h]h num_ioctls}(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 Number of entries in **ioctls**.h](hNumber of entries in }(hj%hhhNhNubjn)}(h **ioctls**h]hioctls}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1jmhj%ubh.}(hj%hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj%hMhj%ubah}(h]h ]h"]h$]h&]uh1jhj%ubeh}(h]h ]h"]h$]h&]uh1jhj%hMhjubj)}(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]jY)}(hj%&h]hfile operations}(hj'&hhhNhNubah}(h]h ](j stdstd-refeh"]h$]h&]uh1jXhj#&ubah}(h]h ]h"]h$]h&]refdocj- refdomainj1&reftyperef refexplicitrefwarnj3drm_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&]uh1hhjC&hMhj&ubah}(h]h ]h"]h$]h&]uh1jhj%ubeh}(h]h ]h"]h$]h&]uh1jhj&hMhjubeh}(h]h ]h"]h$]h&]uh1jhj{ubeh}(h]h ] kernelindentah"]h$]h&]uh1jchjshhhNhNubh)}(h**Description**h]jn)}(hji&h]h Description}(hjk&hhhNhNubah}(h]h ]h"]h$]h&]uh1jmhjg&ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhMhjshhubh)}(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)}(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 refexplicitrefwarnj j j3 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)}(hj&h]hdrm_mode_config_funcs}(hj&hhhNhNubah}(h]h ](j j!c-typeeh"]h$]h&]uh1jhj&ubah}(h]h ]h"]h$]h&]refdocj- refdomainj!reftypetype refexplicitrefwarnj j j3drm_mode_config_funcsuh1hhj&hKhj&ubh4 or into a new operations structure for GEM drivers.}(hj&hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj&hKhjshhubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jdevm_drm_dev_alloc (C macro)c.devm_drm_dev_allochNtauh1jhjshhhNhNubj)}(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 ](j#j$eh"]h$]h&]jUjVuh1j hj&hhhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhMubah}(h]h ]h"]h$]h&]jUjVj.uh1jj/j0hj&hhhj'hMubah}(h]j&ah ](j4j5eh"]h$]h&]j9j:)j;huh1jhj'hMhj&hhubj=)}(hhh]h}(h]h ]h"]h$]h&]uh1j<hj&hhhj'hMubeh}(h]h ](j!macroeh"]h$]h&]j]j!j^j'j_j'j`jajbuh1jhhhjshNhNubh)}(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.hhMhjshhubh 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)}(hjI'h]h drm_device}(hjK'hhhNhNubah}(h]h ](j j!c-typeeh"]h$]h&]uh1jhjG'ubah}(h]h ]h"]h$]h&]refdocj- refdomainj!reftypetype refexplicitrefwarnj j j3 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&]uh1hhjf'hMhj;'ubah}(h]h ]h"]h$]h&]uh1j9'hjf'hMhjshhubjd)}(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]jn)}(hj}'h]h Parameters}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1jmhj{'ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhMhjw'ubj)}(hhh](j)}(h ``parent`` Parent device object h](j)}(h ``parent``h]j)}(hj'h]hparent}(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)}(hParent device objecth]hParent device object}(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``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.hhMhj'ubj)}(hhh]h)}(h DRM driverh]h DRM driver}(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)}(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)}(hj1(h]h drm_device}(hj3(hhhNhNubah}(h]h ](j j!c-typeeh"]h$]h&]uh1jhj/(ubah}(h]h ]h"]h$]h&]refdocj- refdomainj!reftypetype refexplicitrefwarnj j j3 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)}(hjf(h]hmember}(hjh(hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjd(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)}(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 refexplicitrefwarnj j j3 drm_deviceuh1hhj{(hMhj(ubh within }(hj(hhhNhNubjn)}(h**type**h]htype}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1jmhj(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&]uh1jhjw'ubh)}(h**Description**h]jn)}(hj(h]h Description}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1jmhj(ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhMhjw'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.hhMhjw'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.hhMhjw'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 refexplicitrefwarnj j j3 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&]uh1hhj1)hMhjw'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)}(hjF)h]h drm_device}(hjH)hhhNhNubah}(h]h ](j j!c-typeeh"]h$]h&]uh1jhjD)ubah}(h]h ]h"]h$]h&]refdocj- refdomainj!reftypetype refexplicitrefwarnj j j3 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&]uh1hhjc)hMhjw'ubh)}(h **Return**h]jn)}(hjp)h]hReturn}(hjr)hhhNhNubah}(h]h ]h"]h$]h&]uh1jmhjn)ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhMhjw'ubh)}(h1Pointer to new DRM device, or ERR_PTR on failure.h]h1Pointer to new DRM device, or ERR_PTR on failure.}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhMhjw'ubeh}(h]h ] kernelindentah"]h$]h&]uh1jchjshhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j!drm_dev_is_unplugged (C function)c.drm_dev_is_unpluggedhNtauh1jhjshhhNhNubj)}(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}(hj)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 }(hj)hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj)hhhj)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 ](j#j$eh"]h$]h&]jUjVuh1j hj)hhhj)hMubj)}(h(struct drm_device *dev)h]j)}(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 classnameNj j )}j ]j)}jj)sbc.drm_dev_is_unpluggedasbuh1hhj)ubj)}(h h]h }(hj3*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj)ubj)}(hjh]h*}(hjA*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj)ubj)}(hdevh]hdev}(hjN*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj)ubeh}(h]h ]h"]h$]h&]noemphjUjVuh1jhj)ubah}(h]h ]h"]h$]h&]jUjVuh1jhj)hhhj)hMubeh}(h]h ]h"]h$]h&]jUjVj.uh1jj/j0hj)hhhj)hMubah}(h]j)ah ](j4j5eh"]h$]h&]j9j:)j;huh1jhj)hMhj)hhubj=)}(hhh]h)}(his a DRM device unpluggedh]his a DRM device unplugged}(hjx*hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhMhju*hhubah}(h]h ]h"]h$]h&]uh1j<hj)hhhj)hMubeh}(h]h ](j!functioneh"]h$]h&]j]j!j^j*j_j*j`jajbuh1jhhhjshNhNubjd)}(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]jn)}(hj*h]h Parameters}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1jmhj*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)}(hj*h]hstruct 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)}(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*ubah}(h]h ]h"]h$]h&]uh1jhj*ubh)}(h**Description**h]jn)}(hj*h]h Description}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1jmhj*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&]uh1jchjshhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j(drm_core_check_all_features (C function)c.drm_core_check_all_featureshNtauh1jhjshhhNhNubj)}(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](j))}(hj)h]hbool}(hjH+hhhNhNubah}(h]h ]j)ah"]h$]h&]uh1j)hjD+hhhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhMubj)}(h h]h }(hjV+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjD+hhhjU+hMubj )}(hdrm_core_check_all_featuresh]j)}(hdrm_core_check_all_featuresh]hdrm_core_check_all_features}(hjh+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjd+ubah}(h]h ](j#j$eh"]h$]h&]jUjVuh1j hjD+hhhjU+hMubj)}(h,(const struct drm_device *dev, u32 features)h](j)}(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}(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 classnameNj j )}j ]j)}jjj+sbc.drm_core_check_all_featuresasbuh1hhj+ubj)}(h h]h }(hj+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj+ubj)}(hjh]h*}(hj+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj+ubj)}(hdevh]hdev}(hj+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj+ubeh}(h]h ]h"]h$]h&]noemphjUjVuh1jhj|+ubj)}(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 classnameNj j )}j ]j+c.drm_core_check_all_featuresasbuh1hhj,ubj)}(h h]h }(hj3,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,ubj)}(hfeaturesh]hfeatures}(hjA,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,ubeh}(h]h ]h"]h$]h&]noemphjUjVuh1jhj|+ubeh}(h]h ]h"]h$]h&]jUjVuh1jhjD+hhhjU+hMubeh}(h]h ]h"]h$]h&]jUjVj.uh1jj/j0hj@+hhhjU+hMubah}(h]j;+ah ](j4j5eh"]h$]h&]j9j:)j;huh1jhjU+hMhj=+hhubj=)}(hhh]h)}(hcheck driver feature flags maskh]hcheck driver feature flags mask6}(hjk,hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhMhjh,hhubah}(h]h ]h"]h$]h&]uh1j<hj=+hhhjU+hMubeh}(h]h ](j!functioneh"]h$]h&]j]j!j^j,j_j,j`jajbuh1jhhhjshNhNubjd)}(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]jn)}(hj,h]h Parameters}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1jmhj,ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhM hj,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}(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&``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 hj,ubeh}(h]h ]h"]h$]h&]uh1jhj,ubh)}(h**Description**h]jn)}(hj -h]h Description}(hj"-hhhNhNubah}(h]h ]h"]h$]h&]uh1jmhj-ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhM hj,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 }(hj6-hhhNhNubjn)}(h**dev**h]hdev}(hj>-hhhNhNubah}(h]h ]h"]h$]h&]uh1jmhj6-ubh for driver features, see }(hj6-hhhNhNubh)}(h1:c:type:`drm_driver.driver_features `h]j)}(hjR-h]hdrm_driver.driver_features}(hjT-hhhNhNubah}(h]h ](j j!c-typeeh"]h$]h&]uh1jhjP-ubah}(h]h ]h"]h$]h&]refdocj- refdomainj!reftypetype refexplicitrefwarnj j j3 drm_driveruh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhM hj6-ubh, }(hj6-hhhNhNubh)}(h1:c:type:`drm_device.driver_features `h]j)}(hjv-h]hdrm_device.driver_features}(hjx-hhhNhNubah}(h]h ](j j!c-typeeh"]h$]h&]uh1jhjt-ubah}(h]h ]h"]h$]h&]refdocj- refdomainj!reftypetype refexplicitrefwarnj j j3 drm_deviceuh1hhjo-hM hj6-ubh, and the various }(hj6-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 refexplicitrefwarnj j j3drm_driver_featureuh1hhjo-hM hj6-ubh flags.}(hj6-hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjo-hM hj,ubh)}(hUReturns true if all features in the **features** mask are supported, false otherwise.h](h$Returns true if all features in the }(hj-hhhNhNubjn)}(h **features**h]hfeatures}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1jmhj-ubh% mask are 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&]uh1jchjshhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j#drm_core_check_feature (C function)c.drm_core_check_featurehNtauh1jhjshhhNhNubj)}(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](j))}(hj)h]hbool}(hj.hhhNhNubah}(h]h ]j)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 ](j#j$eh"]h$]h&]jUjVuh1j hj-hhhj.hMubj)}(h?(const struct drm_device *dev, enum drm_driver_feature feature)h](j)}(hconst struct drm_device *devh](j)}(hj+h]hconst}(hj=.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9.ubj)}(h h]h }(hjJ.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9.ubj)}(hjh]hstruct}(hjX.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9.ubj)}(h h]h }(hje.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9.ubh)}(hhh]j)}(h drm_deviceh]h drm_device}(hjv.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjs.ubah}(h]h ]h"]h$]h&] refdomainj!reftypej reftargetjx.modnameN classnameNj j )}j ]j)}jj#.sbc.drm_core_check_featureasbuh1hhj9.ubj)}(h h]h }(hj.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9.ubj)}(hjh]h*}(hj.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9.ubj)}(hdevh]hdev}(hj.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9.ubeh}(h]h ]h"]h$]h&]noemphjUjVuh1jhj5.ubj)}(henum drm_driver_feature featureh](j)}(hjUh]henum}(hj.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.ubj)}(h h]h }(hj.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.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 classnameNj j )}j ]j.c.drm_core_check_featureasbuh1hhj.ubj)}(h h]h }(hj/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.ubj)}(hfeatureh]hfeature}(hj/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.ubeh}(h]h ]h"]h$]h&]noemphjUjVuh1jhj5.ubeh}(h]h ]h"]h$]h&]jUjVuh1jhj-hhhj.hMubeh}(h]h ]h"]h$]h&]jUjVj.uh1jj/j0hj-hhhj.hMubah}(h]j-ah ](j4j5eh"]h$]h&]j9j:)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&]j]j!j^jV/j_jV/j`jajbuh1jhhhjshNhNubjd)}(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]jn)}(hj`/h]h Parameters}(hjb/hhhNhNubah}(h]h ]h"]h$]h&]uh1jmhj^/ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhMhjZ/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.hhMhjy/ubj)}(hhh]h)}(hDRM device to checkh]hDRM device to check}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj/hMhj/ubah}(h]h ]h"]h$]h&]uh1jhjy/ubeh}(h]h ]h"]h$]h&]uh1jhj/hMhjv/ubj)}(h1``enum drm_driver_feature feature`` feature flag h](j)}(h#``enum drm_driver_feature feature``h]j)}(hj/h]henum drm_driver_feature feature}(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 feature flagh]h feature flag}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj/hMhj/ubah}(h]h ]h"]h$]h&]uh1jhj/ubeh}(h]h ]h"]h$]h&]uh1jhj/hMhjv/ubeh}(h]h ]h"]h$]h&]uh1jhjZ/ubh)}(h**Description**h]jn)}(hj/h]h Description}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1jmhj/ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhMhjZ/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 0hhhNhNubjn)}(h**dev**h]hdev}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jmhj 0ubh for driver features, see }(hj 0hhhNhNubh)}(h1:c:type:`drm_driver.driver_features `h]j)}(hj%0h]hdrm_driver.driver_features}(hj'0hhhNhNubah}(h]h ](j j!c-typeeh"]h$]h&]uh1jhj#0ubah}(h]h ]h"]h$]h&]refdocj- refdomainj!reftypetype refexplicitrefwarnj j j3 drm_driveruh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhMhj 0ubh, }(hj 0hhhNhNubh)}(h1:c:type:`drm_device.driver_features `h]j)}(hjI0h]hdrm_device.driver_features}(hjK0hhhNhNubah}(h]h ](j j!c-typeeh"]h$]h&]uh1jhjG0ubah}(h]h ]h"]h$]h&]refdocj- refdomainj!reftypetype refexplicitrefwarnj j j3 drm_deviceuh1hhjB0hMhj 0ubh, and the various }(hj 0hhhNhNubh)}(h6:c:type:`enum drm_driver_feature `h]j)}(hjl0h]henum drm_driver_feature}(hjn0hhhNhNubah}(h]h ](j j!c-typeeh"]h$]h&]uh1jhjj0ubah}(h]h ]h"]h$]h&]refdocj- refdomainj!reftypetype refexplicitrefwarnj j j3drm_driver_featureuh1hhjB0hMhj 0ubh flags.}(hj 0hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjB0hMhjZ/ubh)}(h>Returns true if the **feature** is supported, false otherwise.h](hReturns true if the }(hj0hhhNhNubjn)}(h **feature**h]hfeature}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jmhj0ubh is supported, false otherwise.}(hj0hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhM hjZ/ubeh}(h]h ] kernelindentah"]h$]h&]uh1jchjshhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j(drm_drv_uses_atomic_modeset (C function)c.drm_drv_uses_atomic_modesethNtauh1jhjshhhNhNubj)}(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](j))}(hj)h]hbool}(hj0hhhNhNubah}(h]h ]j)ah"]h$]h&]uh1j)hj0hhhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhM*ubj)}(h h]h }(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0hhhj0hM*ubj )}(hdrm_drv_uses_atomic_modeseth]j)}(hdrm_drv_uses_atomic_modeseth]hdrm_drv_uses_atomic_modeset}(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0ubah}(h]h ](j#j$eh"]h$]h&]jUjVuh1j hj0hhhj0hM*ubj)}(h(struct drm_device *dev)h]j)}(hstruct drm_device *devh](j)}(hjh]hstruct}(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj 1ubj)}(h h]h }(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj 1ubh)}(hhh]j)}(h drm_deviceh]h drm_device}(hj.1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj+1ubah}(h]h ]h"]h$]h&] refdomainj!reftypej reftargetj01modnameN classnameNj j )}j ]j)}jj0sbc.drm_drv_uses_atomic_modesetasbuh1hhj 1ubj)}(h h]h }(hjN1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj 1ubj)}(hjh]h*}(hj\1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj 1ubj)}(hdevh]hdev}(hji1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj 1ubeh}(h]h ]h"]h$]h&]noemphjUjVuh1jhj1ubah}(h]h ]h"]h$]h&]jUjVuh1jhj0hhhj0hM*ubeh}(h]h ]h"]h$]h&]jUjVj.uh1jj/j0hj0hhhj0hM*ubah}(h]j0ah ](j4j5eh"]h$]h&]j9j:)j;huh1jhj0hM*hj0hhubj=)}(hhh]h)}(h.check if the driver implements atomic_commit()h]h.check if the driver implements atomic_commit()}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhM*hj1hhubah}(h]h ]h"]h$]h&]uh1j<hj0hhhj0hM*ubeh}(h]h ](j!functioneh"]h$]h&]j]j!j^j1j_j1j`jajbuh1jhhhjshNhNubjd)}(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]jn)}(hj1h]h Parameters}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jmhj1ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhM.hj1ubj)}(hhh]j)}(h&``struct drm_device *dev`` DRM device h](j)}(h``struct drm_device *dev``h]j)}(hj1h]hstruct drm_device *dev}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhM,hj1ubj)}(hhh]h)}(h DRM deviceh]h DRM device}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj1hM,hj1ubah}(h]h ]h"]h$]h&]uh1jhj1ubeh}(h]h ]h"]h$]h&]uh1jhj1hM,hj1ubah}(h]h ]h"]h$]h&]uh1jhj1ubh)}(h**Description**h]jn)}(hj2h]h Description}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jmhj 2ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhM.hj1ubh)}(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.}(hj%2hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhM-hj1ubeh}(h]h ] kernelindentah"]h$]h&]uh1jchjshhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jdrm_put_dev (C function) c.drm_put_devhNtauh1jhjshhhNhNubj)}(hhh](j)}(h)void drm_put_dev (struct drm_device *dev)h]j)}(h(void drm_put_dev(struct drm_device *dev)h](j))}(hvoidh]hvoid}(hjT2hhhNhNubah}(h]h ]j)ah"]h$]h&]uh1j)hjP2hhh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:90: ./drivers/gpu/drm/drm_drv.chMubj)}(h h]h }(hjc2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjP2hhhjb2hMubj )}(h drm_put_devh]j)}(h drm_put_devh]h drm_put_dev}(hju2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjq2ubah}(h]h ](j#j$eh"]h$]h&]jUjVuh1j hjP2hhhjb2hMubj)}(h(struct drm_device *dev)h]j)}(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}(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2ubah}(h]h ]h"]h$]h&] refdomainj!reftypej reftargetj2modnameN classnameNj j )}j ]j)}jjw2sb c.drm_put_devasbuh1hhj2ubj)}(h h]h }(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2ubj)}(hjh]h*}(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2ubj)}(hdevh]hdev}(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2ubeh}(h]h ]h"]h$]h&]noemphjUjVuh1jhj2ubah}(h]h ]h"]h$]h&]jUjVuh1jhjP2hhhjb2hMubeh}(h]h ]h"]h$]h&]jUjVj.uh1jj/j0hjL2hhhjb2hMubah}(h]jG2ah ](j4j5eh"]h$]h&]j9j:)j;huh1jhjb2hMhjI2hhubj=)}(hhh]h)}(h#Unregister and release a DRM deviceh]h#Unregister and release a DRM device}(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<hjI2hhhjb2hMubeh}(h]h ](j!functioneh"]h$]h&]j]j!j^j,3j_j,3j`jajbuh1jhhhjshNhNubjd)}(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]jn)}(hj63h]h Parameters}(hj83hhhNhNubah}(h]h ]h"]h$]h&]uh1jmhj43ubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:90: ./drivers/gpu/drm/drm_drv.chMhj03ubj)}(hhh]j)}(h&``struct drm_device *dev`` DRM device h](j)}(h``struct drm_device *dev``h]j)}(hjU3h]hstruct drm_device *dev}(hjW3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjS3ubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:90: ./drivers/gpu/drm/drm_drv.chMhjO3ubj)}(hhh]h)}(h DRM deviceh]h DRM device}(hjn3hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjj3hMhjk3ubah}(h]h ]h"]h$]h&]uh1jhjO3ubeh}(h]h ]h"]h$]h&]uh1jhjj3hMhjL3ubah}(h]h ]h"]h$]h&]uh1jhj03ubh)}(h**Description**h]jn)}(hj3h]h Description}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jmhj3ubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:90: ./drivers/gpu/drm/drm_drv.chMhj03ubh)}(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.}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:90: ./drivers/gpu/drm/drm_drv.chMhj03ubh)}(h2Cleans up all DRM device, calling drm_lastclose().h]h2Cleans up all DRM device, calling drm_lastclose().}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:90: ./drivers/gpu/drm/drm_drv.chMhj03ubh)}(h**Note**h]jn)}(hj3h]hNote}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jmhj3ubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:90: ./drivers/gpu/drm/drm_drv.chMhj03ubh)}(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.}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:90: ./drivers/gpu/drm/drm_drv.chMhj03ubeh}(h]h ] kernelindentah"]h$]h&]uh1jchjshhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jdrm_dev_enter (C function)c.drm_dev_enterhNtauh1jhjshhhNhNubj)}(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](j))}(hj)h]hbool}(hj 4hhhNhNubah}(h]h ]j)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_enterh]j)}(h drm_dev_enterh]h drm_dev_enter}(hj+4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'4ubah}(h]h ](j#j$eh"]h$]h&]jUjVuh1j hj4hhhj4hMubj)}(h"(struct drm_device *dev, int *idx)h](j)}(hstruct drm_device *devh](j)}(hjh]hstruct}(hjG4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjC4ubj)}(h h]h }(hjT4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjC4ubh)}(hhh]j)}(h drm_deviceh]h drm_device}(hje4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjb4ubah}(h]h ]h"]h$]h&] refdomainj!reftypej reftargetjg4modnameN classnameNj j )}j ]j)}jj-4sbc.drm_dev_enterasbuh1hhjC4ubj)}(h h]h }(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjC4ubj)}(hjh]h*}(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjC4ubj)}(hdevh]hdev}(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjC4ubeh}(h]h ]h"]h$]h&]noemphjUjVuh1jhj?4ubj)}(hint *idxh](j))}(hinth]hint}(hj4hhhNhNubah}(h]h ]j)ah"]h$]h&]uh1j)hj4ubj)}(h h]h }(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4ubj)}(hjh]h*}(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4ubj)}(hidxh]hidx}(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4ubeh}(h]h ]h"]h$]h&]noemphjUjVuh1jhj?4ubeh}(h]h ]h"]h$]h&]jUjVuh1jhj4hhhj4hMubeh}(h]h ]h"]h$]h&]jUjVj.uh1jj/j0hj4hhhj4hMubah}(h]j3ah ](j4j5eh"]h$]h&]j9j:)j;huh1jhj4hMhj4hhubj=)}(hhh]h)}(hEnter device critical sectionh]hEnter 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.chMhj 5hhubah}(h]h ]h"]h$]h&]uh1j<hj4hhhj4hMubeh}(h]h ](j!functioneh"]h$]h&]j]j!j^j$5j_j$5j`jajbuh1jhhhjshNhNubjd)}(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]jn)}(hj.5h]h Parameters}(hj05hhhNhNubah}(h]h ]h"]h$]h&]uh1jmhj,5ubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:90: ./drivers/gpu/drm/drm_drv.chMhj(5ubj)}(hhh](j)}(h&``struct drm_device *dev`` DRM device h](j)}(h``struct drm_device *dev``h]j)}(hjM5h]hstruct drm_device *dev}(hjO5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjK5ubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:90: ./drivers/gpu/drm/drm_drv.chMhjG5ubj)}(hhh]h)}(h DRM deviceh]h DRM device}(hjf5hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjb5hMhjc5ubah}(h]h ]h"]h$]h&]uh1jhjG5ubeh}(h]h ]h"]h$]h&]uh1jhjb5hMhjD5ubj)}(hQ``int *idx`` Pointer to index that will be passed to the matching drm_dev_exit() 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)}(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()}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj5hMhj5ubah}(h]h ]h"]h$]h&]uh1jhj5ubeh}(h]h ]h"]h$]h&]uh1jhj5hMhjD5ubeh}(h]h ]h"]h$]h&]uh1jhj(5ubh)}(h**Description**h]jn)}(hj5h]h Description}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jmhj5ubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:90: ./drivers/gpu/drm/drm_drv.chMhj(5ubh)}(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.}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:90: ./drivers/gpu/drm/drm_drv.chMhj(5ubh)}(h **Return**h]jn)}(hj5h]hReturn}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jmhj5ubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:90: ./drivers/gpu/drm/drm_drv.chMhj(5ubh)}(h7True if it is OK to enter the section, false otherwise.h]h7True if it is OK to enter the section, false otherwise.}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:90: ./drivers/gpu/drm/drm_drv.chMhj(5ubeh}(h]h ] kernelindentah"]h$]h&]uh1jchjshhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jdrm_dev_exit (C function)c.drm_dev_exithNtauh1jhjshhhNhNubj)}(hhh](j)}(hvoid drm_dev_exit (int idx)h]j)}(hvoid drm_dev_exit(int idx)h](j))}(hvoidh]hvoid}(hj-6hhhNhNubah}(h]h ]j)ah"]h$]h&]uh1j)hj)6hhh[/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&]uh1jhj)6hhhj;6hMubj )}(h drm_dev_exith]j)}(h drm_dev_exith]h drm_dev_exit}(hjN6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJ6ubah}(h]h ](j#j$eh"]h$]h&]jUjVuh1j hj)6hhhj;6hMubj)}(h (int idx)h]j)}(hint idxh](j))}(hinth]hint}(hjj6hhhNhNubah}(h]h ]j)ah"]h$]h&]uh1j)hjf6ubj)}(h h]h }(hjx6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjf6ubj)}(hidxh]hidx}(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjf6ubeh}(h]h ]h"]h$]h&]noemphjUjVuh1jhjb6ubah}(h]h ]h"]h$]h&]jUjVuh1jhj)6hhhj;6hMubeh}(h]h ]h"]h$]h&]jUjVj.uh1jj/j0hj%6hhhj;6hMubah}(h]j 6ah ](j4j5eh"]h$]h&]j9j:)j;huh1jhj;6hMhj"6hhubj=)}(hhh]h)}(hExit device critical sectionh]hExit device critical section}(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<hj"6hhhj;6hMubeh}(h]h ](j!functioneh"]h$]h&]j]j!j^j6j_j6j`jajbuh1jhhhjshNhNubjd)}(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]jn)}(hj6h]h Parameters}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jmhj6ubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:90: ./drivers/gpu/drm/drm_drv.chMhj6ubj)}(hhh]j)}(h0``int idx`` index returned from drm_dev_enter() h](j)}(h ``int idx``h]j)}(hj6h]hint idx}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6ubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:90: ./drivers/gpu/drm/drm_drv.chMhj6ubj)}(hhh]h)}(h#index returned from drm_dev_enter()h]h#index returned from drm_dev_enter()}(hj 7hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj7hMhj7ubah}(h]h ]h"]h$]h&]uh1jhj6ubeh}(h]h ]h"]h$]h&]uh1jhj7hMhj6ubah}(h]h ]h"]h$]h&]uh1jhj6ubh)}(h**Description**h]jn)}(hj,7h]h Description}(hj.7hhhNhNubah}(h]h ]h"]h$]h&]uh1jmhj*7ubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:90: ./drivers/gpu/drm/drm_drv.chMhj6ubh)}(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.}(hjB7hhhNhNubah}(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&]uh1jchjshhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jdrm_dev_unplug (C function)c.drm_dev_unplughNtauh1jhjshhhNhNubj)}(hhh](j)}(h,void drm_dev_unplug (struct drm_device *dev)h]j)}(h+void drm_dev_unplug(struct drm_device *dev)h](j))}(hvoidh]hvoid}(hjq7hhhNhNubah}(h]h ]j)ah"]h$]h&]uh1j)hjm7hhh[/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&]uh1jhjm7hhhj7hMubj )}(hdrm_dev_unplugh]j)}(hdrm_dev_unplugh]hdrm_dev_unplug}(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7ubah}(h]h ](j#j$eh"]h$]h&]jUjVuh1j hjm7hhhj7hMubj)}(h(struct drm_device *dev)h]j)}(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}(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7ubah}(h]h ]h"]h$]h&] refdomainj!reftypej reftargetj7modnameN classnameNj j )}j ]j)}jj7sbc.drm_dev_unplugasbuh1hhj7ubj)}(h h]h }(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7ubj)}(hjh]h*}(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7ubj)}(hdevh]hdev}(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7ubeh}(h]h ]h"]h$]h&]noemphjUjVuh1jhj7ubah}(h]h ]h"]h$]h&]jUjVuh1jhjm7hhhj7hMubeh}(h]h ]h"]h$]h&]jUjVj.uh1jj/j0hji7hhhj7hMubah}(h]jd7ah ](j4j5eh"]h$]h&]j9j:)j;huh1jhj7hMhjf7hhubj=)}(hhh]h)}(hunplug a DRM deviceh]hunplug a DRM device}(hj18hhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:90: ./drivers/gpu/drm/drm_drv.chMhj.8hhubah}(h]h ]h"]h$]h&]uh1j<hjf7hhhj7hMubeh}(h]h ](j!functioneh"]h$]h&]j]j!j^jI8j_jI8j`jajbuh1jhhhjshNhNubjd)}(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]jn)}(hjS8h]h Parameters}(hjU8hhhNhNubah}(h]h ]h"]h$]h&]uh1jmhjQ8ubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:90: ./drivers/gpu/drm/drm_drv.chMhjM8ubj)}(hhh]j)}(h&``struct drm_device *dev`` DRM device h](j)}(h``struct drm_device *dev``h]j)}(hjr8h]hstruct drm_device *dev}(hjt8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjp8ubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:90: ./drivers/gpu/drm/drm_drv.chMhjl8ubj)}(hhh]h)}(h DRM deviceh]h DRM device}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj8hMhj8ubah}(h]h ]h"]h$]h&]uh1jhjl8ubeh}(h]h ]h"]h$]h&]uh1jhj8hMhji8ubah}(h]h ]h"]h$]h&]uh1jhjM8ubh)}(h**Description**h]jn)}(hj8h]h Description}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jmhj8ubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:90: ./drivers/gpu/drm/drm_drv.chMhjM8ubh)}(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 }(hj8hhhNhNubjn)}(h**dev**h]hdev}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jmhj8ubh.}(hj8hhhNhNubeh}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:90: ./drivers/gpu/drm/drm_drv.chMhjM8ubeh}(h]h ] kernelindentah"]h$]h&]uh1jchjshhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j drm_dev_set_dma_dev (C function)c.drm_dev_set_dma_devhNtauh1jhjshhhNhNubj)}(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](j))}(hvoidh]hvoid}(hj9hhhNhNubah}(h]h ]j)ah"]h$]h&]uh1j)hj9hhh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:90: ./drivers/gpu/drm/drm_drv.chMubj)}(h h]h }(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9hhhj9hMubj )}(hdrm_dev_set_dma_devh]j)}(hdrm_dev_set_dma_devh]hdrm_dev_set_dma_dev}(hj%9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!9ubah}(h]h ](j#j$eh"]h$]h&]jUjVuh1j hj9hhhj9hMubj)}(h0(struct drm_device *dev, struct device *dma_dev)h](j)}(hstruct drm_device *devh](j)}(hjh]hstruct}(hjA9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=9ubj)}(h h]h }(hjN9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=9ubh)}(hhh]j)}(h drm_deviceh]h drm_device}(hj_9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\9ubah}(h]h ]h"]h$]h&] refdomainj!reftypej reftargetja9modnameN classnameNj j )}j ]j)}jj'9sbc.drm_dev_set_dma_devasbuh1hhj=9ubj)}(h h]h }(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=9ubj)}(hjh]h*}(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=9ubj)}(hdevh]hdev}(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=9ubeh}(h]h ]h"]h$]h&]noemphjUjVuh1jhj99ubj)}(hstruct device *dma_devh](j)}(hjh]hstruct}(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9ubj)}(h h]h }(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9ubh)}(hhh]j)}(hdeviceh]hdevice}(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9ubah}(h]h ]h"]h$]h&] refdomainj!reftypej reftargetj9modnameN classnameNj j )}j ]j{9c.drm_dev_set_dma_devasbuh1hhj9ubj)}(h h]h }(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9ubj)}(hjh]h*}(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9ubj)}(hdma_devh]hdma_dev}(hj :hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9ubeh}(h]h ]h"]h$]h&]noemphjUjVuh1jhj99ubeh}(h]h ]h"]h$]h&]jUjVuh1jhj9hhhj9hMubeh}(h]h ]h"]h$]h&]jUjVj.uh1jj/j0hj8hhhj9hMubah}(h]j8ah ](j4j5eh"]h$]h&]j9j:)j;huh1jhj9hMhj8hhubj=)}(hhh]h)}(h#set the DMA device for a DRM deviceh]h#set the DMA device for a DRM device}(hj4:hhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:90: ./drivers/gpu/drm/drm_drv.chMhj1:hhubah}(h]h ]h"]h$]h&]uh1j<hj8hhhj9hMubeh}(h]h ](j!functioneh"]h$]h&]j]j!j^jL:j_jL:j`jajbuh1jhhhjshNhNubjd)}(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]jn)}(hjV:h]h Parameters}(hjX:hhhNhNubah}(h]h ]h"]h$]h&]uh1jmhjT:ubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:90: ./drivers/gpu/drm/drm_drv.chMhjP:ubj)}(hhh](j)}(h&``struct drm_device *dev`` DRM device h](j)}(h``struct drm_device *dev``h]j)}(hju:h]hstruct drm_device *dev}(hjw:hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjs:ubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:90: ./drivers/gpu/drm/drm_drv.chMhjo:ubj)}(hhh]h)}(h DRM deviceh]h DRM device}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj:hMhj:ubah}(h]h ]h"]h$]h&]uh1jhjo:ubeh}(h]h ]h"]h$]h&]uh1jhj:hMhjl:ubj)}(h.``struct device *dma_dev`` DMA device or NULL h](j)}(h``struct device *dma_dev``h]j)}(hj:h]hstruct device *dma_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.chMhj:ubj)}(hhh]h)}(hDMA device or NULLh]hDMA device or NULL}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj:hMhj:ubah}(h]h ]h"]h$]h&]uh1jhj:ubeh}(h]h ]h"]h$]h&]uh1jhj:hMhjl:ubeh}(h]h ]h"]h$]h&]uh1jhjP:ubh)}(h**Description**h]jn)}(hj:h]h Description}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1jmhj:ubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:90: ./drivers/gpu/drm/drm_drv.chMhjP:ubh)}(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 }(hj:hhhNhNubjn)}(h **dma_dev**h]hdma_dev}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1jmhj:ubh$. Pass NULL to clear the DMA device.}(hj:hhhNhNubeh}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:90: ./drivers/gpu/drm/drm_drv.chMhjP:ubeh}(h]h ] kernelindentah"]h$]h&]uh1jchjshhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j!drm_dev_wedged_event (C function)c.drm_dev_wedged_eventhNtauh1jhjshhhNhNubj)}(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](j))}(hinth]hint}(hj@;hhhNhNubah}(h]h ]j)ah"]h$]h&]uh1j)hj<;hhh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:90: ./drivers/gpu/drm/drm_drv.chM$ubj)}(h h]h }(hjO;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj<;hhhjN;hM$ubj )}(hdrm_dev_wedged_eventh]j)}(hdrm_dev_wedged_eventh]hdrm_dev_wedged_event}(hja;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj];ubah}(h]h ](j#j$eh"]h$]h&]jUjVuh1j hj<;hhhjN;hM$ubj)}(hP(struct drm_device *dev, unsigned long method, struct drm_wedge_task_info *info)h](j)}(hstruct drm_device *devh](j)}(hjh]hstruct}(hj};hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjy;ubj)}(h h]h }(hj;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjy;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 classnameNj j )}j ]j)}jjc;sbc.drm_dev_wedged_eventasbuh1hhjy;ubj)}(h h]h }(hj;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjy;ubj)}(hjh]h*}(hj;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjy;ubj)}(hdevh]hdev}(hj;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjy;ubeh}(h]h ]h"]h$]h&]noemphjUjVuh1jhju;ubj)}(hunsigned long methodh](j))}(hunsignedh]hunsigned}(hj;hhhNhNubah}(h]h ]j)ah"]h$]h&]uh1j)hj;ubj)}(h h]h }(hj;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;ubj))}(hlongh]hlong}(hj <hhhNhNubah}(h]h ]j)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&]noemphjUjVuh1jhju;ubj)}(h struct drm_wedge_task_info *infoh](j)}(hjh]hstruct}(hj@<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj<<ubj)}(h h]h }(hjM<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 classnameNj j )}j ]j;c.drm_dev_wedged_eventasbuh1hhj<<ubj)}(h h]h }(hj|<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj<<ubj)}(hjh]h*}(hj<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj<<ubj)}(hinfoh]hinfo}(hj<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj<<ubeh}(h]h ]h"]h$]h&]noemphjUjVuh1jhju;ubeh}(h]h ]h"]h$]h&]jUjVuh1jhj<;hhhjN;hM$ubeh}(h]h ]h"]h$]h&]jUjVj.uh1jj/j0hj8;hhhjN;hM$ubah}(h]j3;ah ](j4j5eh"]h$]h&]j9j:)j;huh1jhjN;hM$hj5;hhubj=)}(hhh]h)}(hgenerate a device wedged ueventh]hgenerate a device wedged uevent}(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<hhubah}(h]h ]h"]h$]h&]uh1j<hj5;hhhjN;hM$ubeh}(h]h ](j!functioneh"]h$]h&]j]j!j^j<j_j<j`jajbuh1jhhhjshNhNubjd)}(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]jn)}(hj<h]h Parameters}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1jmhj<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&]uh1jhj9=ubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:90: ./drivers/gpu/drm/drm_drv.chM&hj5=ubj)}(hhh]h)}(h!method(s) to be used for recoveryh]h!method(s) to be used for recovery}(hjT=hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjP=hM&hjQ=ubah}(h]h ]h"]h$]h&]uh1jhj5=ubeh}(h]h ]h"]h$]h&]uh1jhjP=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)}(hjt=h]h struct drm_wedge_task_info *info}(hjv=hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjr=ubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:90: ./drivers/gpu/drm/drm_drv.chM'hjn=ubj)}(hhh]h)}(h*optional information about the guilty taskh]h*optional information about the guilty task}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj=hM'hj=ubah}(h]h ]h"]h$]h&]uh1jhjn=ubeh}(h]h ]h"]h$]h&]uh1jhj=hM'hj<ubeh}(h]h ]h"]h$]h&]uh1jhj<ubh)}(h**Description**h]jn)}(hj=h]h Description}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1jmhj=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 }(hj=hhhNhNubjn)}(h**dev**h]hdev}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1jmhj=ubh . Recovery }(hj=hhhNhNubjn)}(h **method**h]hmethod}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1jmhj=ubh9(s) of choice will be sent in the uevent environment as }(hj=hhhNhNubj)}(h#``WEDGED=[,..,]``h]hWEDGED=[,..,]}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj=ubhN in order of less to more side-effects. If caller is unsure about recovery or }(hj=hhhNhNubjn)}(h **method**h]hmethod}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1jmhj=ubh is unknown (0), }(hj=hhhNhNubj)}(h``WEDGED=unknown``h]hWEDGED=unknown}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj=ubh will be sent instead.}(hj=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]jn)}(hj?>h]hReturn}(hjA>hhhNhNubah}(h]h ]h"]h$]h&]uh1jmhj=>ubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:90: ./drivers/gpu/drm/drm_drv.chM1hj<ubh)}(h,0 on success, negative error code otherwise.h]h,0 on success, negative error code otherwise.}(hjU>hhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:90: ./drivers/gpu/drm/drm_drv.chM2hj<ubeh}(h]h ] kernelindentah"]h$]h&]uh1jchjshhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j__drm_dev_alloc (C function)c.__drm_dev_allochNtauh1jhjshhhNhNubj)}(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](j))}(hvoidh]hvoid}(hj>hhhNhNubah}(h]h ]j)ah"]h$]h&]uh1j)hj>hhh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:90: ./drivers/gpu/drm/drm_drv.chMKubj)}(h h]h }(hj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>hhhj>hMKubj)}(hjh]h*}(hj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>hhhj>hMKubj )}(h__drm_dev_alloch]j)}(h__drm_dev_alloch]h__drm_dev_alloc}(hj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>ubah}(h]h ](j#j$eh"]h$]h&]jUjVuh1j hj>hhhj>hMKubj)}(hT(struct device *parent, const struct drm_driver *driver, size_t size, size_t offset)h](j)}(hstruct device *parenth](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)}(hdeviceh]hdevice}(hj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>ubah}(h]h ]h"]h$]h&] refdomainj!reftypej reftargetj>modnameN classnameNj j )}j ]j)}jj>sbc.__drm_dev_allocasbuh1hhj>ubj)}(h h]h }(hj ?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>ubj)}(hjh]h*}(hj?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>ubj)}(hparenth]hparent}(hj'?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>ubeh}(h]h ]h"]h$]h&]noemphjUjVuh1jhj>ubj)}(hconst struct drm_driver *driverh](j)}(hj+h]hconst}(hj@?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(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 classnameNj j )}j ]j?c.__drm_dev_allocasbuh1hhj?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&]noemphjUjVuh1jhj>ubj)}(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 classnameNj j )}j ]j?c.__drm_dev_allocasbuh1hhj@ubj)}(h h]h }(hj4@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@ubj)}(hoffseth]hoffset}(hjB@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@ubeh}(h]h ]h"]h$]h&]noemphjUjVuh1jhj>ubeh}(h]h ]h"]h$]h&]jUjVuh1jhj>hhhj>hMKubeh}(h]h ]h"]h$]h&]jUjVj.uh1jj/j0hj|>hhhj>hMKubah}(h]jw>ah ](j4j5eh"]h$]h&]j9j:)j;huh1jhj>hMKhjy>hhubj=)}(hhh]h)}(h-Allocation of a :c:type:`drm_device` instanceh](hAllocation of a }(hjl@hhhNhNubh)}(h:c:type:`drm_device`h]j)}(hjv@h]h drm_device}(hjx@hhhNhNubah}(h]h ](j j!c-typeeh"]h$]h&]uh1jhjt@ubah}(h]h ]h"]h$]h&]refdocj- refdomainj!reftypetype refexplicitrefwarnj j )}j ]j?c.__drm_dev_allocasbj3 drm_deviceuh1hhjb2hMhjl@ubh instance}(hjl@hhhNhNubeh}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:90: ./drivers/gpu/drm/drm_drv.chMKhji@hhubah}(h]h ]h"]h$]h&]uh1j<hjy>hhhj>hMKubeh}(h]h ](j!functioneh"]h$]h&]j]j!j^j@j_j@j`jajbuh1jhhhjshNhNubjd)}(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]jn)}(hj@h]h Parameters}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1jmhj@ubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:90: ./drivers/gpu/drm/drm_drv.chMOhj@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.chMLhj@ubj)}(hhh]h)}(hParent device objecth]hParent device object}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj@hMLhj@ubah}(h]h ]h"]h$]h&]uh1jhj@ubeh}(h]h ]h"]h$]h&]uh1jhj@hMLhj@ubj)}(h/``const struct drm_driver *driver`` DRM driver h](j)}(h#``const struct drm_driver *driver``h]j)}(hjAh]hconst struct drm_driver *driver}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj Aubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:90: ./drivers/gpu/drm/drm_drv.chMMhjAubj)}(hhh]h)}(h DRM driverh]h DRM driver}(hj'AhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj#AhMMhj$Aubah}(h]h ]h"]h$]h&]uh1jhjAubeh}(h]h ]h"]h$]h&]uh1jhj#AhMMhj@ubj)}(hH``size_t size`` the size of the struct which contains struct drm_device h](j)}(h``size_t size``h]j)}(hjGAh]h size_t size}(hjIAhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjEAubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:90: ./drivers/gpu/drm/drm_drv.chMNhjAAubj)}(hhh]h)}(h7the size of the struct which contains struct drm_deviceh]h7the size of the struct which contains struct drm_device}(hj`AhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj\AhMNhj]Aubah}(h]h ]h"]h$]h&]uh1jhjAAubeh}(h]h ]h"]h$]h&]uh1jhj\AhMNhj@ubj)}(hO``size_t offset`` the offset of the :c:type:`drm_device` within the container. Rh](j)}(h``size_t offset``h]j)}(hjAh]h size_t offset}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj~Aubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:90: ./drivers/gpu/drm/drm_drv.chMOhjzAubj)}(hhh]h)}(hBhhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:90: ./drivers/gpu/drm/drm_drv.chMYhj@ubeh}(h]h ] kernelindentah"]h$]h&]uh1jchjshhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jdrm_dev_alloc (C function)c.drm_dev_allochNtauh1jhjshhhNhNubj)}(hhh](j)}(hZstruct drm_device * drm_dev_alloc (const struct drm_driver *driver, struct device *parent)h]j)}(hXstruct drm_device *drm_dev_alloc(const struct drm_driver *driver, struct device *parent)h](j)}(hjh]hstruct}(hjmBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjiBhhh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:90: ./drivers/gpu/drm/drm_drv.chMtubj)}(h h]h }(hj{BhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjiBhhhjzBhMtubh)}(hhh]j)}(h drm_deviceh]h drm_device}(hjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBubah}(h]h ]h"]h$]h&] refdomainj!reftypej reftargetjBmodnameN classnameNj j )}j ]j)}j drm_dev_allocsbc.drm_dev_allocasbuh1hhjiBhhhjzBhMtubj)}(h h]h }(hjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjiBhhhjzBhMtubj)}(hjh]h*}(hjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjiBhhhjzBhMtubj )}(h drm_dev_alloch]j)}(hjBh]h drm_dev_alloc}(hjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBubah}(h]h ](j#j$eh"]h$]h&]jUjVuh1j hjiBhhhjzBhMtubj)}(h8(const struct drm_driver *driver, struct device *parent)h](j)}(hconst struct drm_driver *driverh](j)}(hj+h]hconst}(hjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBubj)}(h h]h }(hjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBubj)}(hjh]hstruct}(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBubj)}(h h]h }(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBubh)}(hhh]j)}(h drm_driverh]h drm_driver}(hj ChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjCubah}(h]h ]h"]h$]h&] refdomainj!reftypej reftargetj"CmodnameN classnameNj j )}j ]jBc.drm_dev_allocasbuh1hhjBubj)}(h h]h }(hj>ChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBubj)}(hjh]h*}(hjLChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBubj)}(hdriverh]hdriver}(hjYChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBubeh}(h]h ]h"]h$]h&]noemphjUjVuh1jhjBubj)}(hstruct device *parenth](j)}(hjh]hstruct}(hjrChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnCubj)}(h h]h }(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnCubh)}(hhh]j)}(hdeviceh]hdevice}(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjCubah}(h]h ]h"]h$]h&] refdomainj!reftypej reftargetjCmodnameN classnameNj j )}j ]jBc.drm_dev_allocasbuh1hhjnCubj)}(h h]h }(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnCubj)}(hjh]h*}(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnCubj)}(hparenth]hparent}(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnCubeh}(h]h ]h"]h$]h&]noemphjUjVuh1jhjBubeh}(h]h ]h"]h$]h&]jUjVuh1jhjiBhhhjzBhMtubeh}(h]h ]h"]h$]h&]jUjVj.uh1jj/j0hjeBhhhjzBhMtubah}(h]j`Bah ](j4j5eh"]h$]h&]j9j:)j;huh1jhjzBhMthjbBhhubj=)}(hhh]h)}(hAllocate new DRM deviceh]hAllocate new DRM device}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:90: ./drivers/gpu/drm/drm_drv.chMthjChhubah}(h]h ]h"]h$]h&]uh1j<hjbBhhhjzBhMtubeh}(h]h ](j!functioneh"]h$]h&]j]j!j^j Dj_j Dj`jajbuh1jhhhjshNhNubjd)}(hX**Parameters** ``const struct drm_driver *driver`` DRM driver to allocate device for ``struct device *parent`` Parent device object **Description** This is the deprecated version of devm_drm_dev_alloc(), which does not support subclassing through embedding the struct :c:type:`drm_device` in a driver private structure, and which does not support automatic cleanup through devres. **Return** Pointer to new DRM device, or ERR_PTR on failure.h](h)}(h**Parameters**h]jn)}(hjDh]h Parameters}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1jmhjDubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:90: ./drivers/gpu/drm/drm_drv.chMxhjDubj)}(hhh](j)}(hF``const struct drm_driver *driver`` DRM driver to allocate device for h](j)}(h#``const struct drm_driver *driver``h]j)}(hj4Dh]hconst struct drm_driver *driver}(hj6DhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2Dubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:90: ./drivers/gpu/drm/drm_drv.chMuhj.Dubj)}(hhh]h)}(h!DRM driver to allocate device forh]h!DRM driver to allocate device for}(hjMDhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjIDhMuhjJDubah}(h]h ]h"]h$]h&]uh1jhj.Dubeh}(h]h ]h"]h$]h&]uh1jhjIDhMuhj+Dubj)}(h/``struct device *parent`` Parent device object h](j)}(h``struct device *parent``h]j)}(hjmDh]hstruct device *parent}(hjoDhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjkDubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:90: ./drivers/gpu/drm/drm_drv.chMvhjgDubj)}(hhh]h)}(hParent device objecth]hParent device object}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjDhMvhjDubah}(h]h ]h"]h$]h&]uh1jhjgDubeh}(h]h ]h"]h$]h&]uh1jhjDhMvhj+Dubeh}(h]h ]h"]h$]h&]uh1jhjDubh)}(h**Description**h]jn)}(hjDh]h Description}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1jmhjDubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:90: ./drivers/gpu/drm/drm_drv.chMxhjDubh)}(hThis is the deprecated version of devm_drm_dev_alloc(), which does not support subclassing through embedding the struct :c:type:`drm_device` in a driver private structure, and which does not support automatic cleanup through devres.h](hxThis is the deprecated version of devm_drm_dev_alloc(), which does not support subclassing through embedding the struct }(hjDhhhNhNubh)}(h:c:type:`drm_device`h]j)}(hjDh]h drm_device}(hjDhhhNhNubah}(h]h ](j j!c-typeeh"]h$]h&]uh1jhjDubah}(h]h ]h"]h$]h&]refdocj- refdomainj!reftypetype refexplicitrefwarnj j j3 drm_deviceuh1hh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:90: ./drivers/gpu/drm/drm_drv.chMwhjDubh\ in a driver private structure, and which does not support automatic cleanup through devres.}(hjDhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjDhMwhjDubh)}(h **Return**h]jn)}(hjDh]hReturn}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1jmhjDubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:90: ./drivers/gpu/drm/drm_drv.chM{hjDubh)}(h1Pointer to new DRM device, or ERR_PTR on failure.h]h1Pointer to new DRM device, or ERR_PTR on failure.}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:90: ./drivers/gpu/drm/drm_drv.chM|hjDubeh}(h]h ] kernelindentah"]h$]h&]uh1jchjshhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jdrm_dev_get (C function) c.drm_dev_gethNtauh1jhjshhhNhNubj)}(hhh](j)}(h)void drm_dev_get (struct drm_device *dev)h]j)}(h(void drm_dev_get(struct drm_device *dev)h](j))}(hvoidh]hvoid}(hj7EhhhNhNubah}(h]h ]j)ah"]h$]h&]uh1j)hj3Ehhh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:90: ./drivers/gpu/drm/drm_drv.chMubj)}(h h]h }(hjFEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3EhhhjEEhMubj )}(h drm_dev_geth]j)}(h drm_dev_geth]h drm_dev_get}(hjXEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjTEubah}(h]h ](j#j$eh"]h$]h&]jUjVuh1j hj3EhhhjEEhMubj)}(h(struct drm_device *dev)h]j)}(hstruct drm_device *devh](j)}(hjh]hstruct}(hjtEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjpEubj)}(h h]h }(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjpEubh)}(hhh]j)}(h drm_deviceh]h drm_device}(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEubah}(h]h ]h"]h$]h&] refdomainj!reftypej reftargetjEmodnameN classnameNj j )}j ]j)}jjZEsb c.drm_dev_getasbuh1hhjpEubj)}(h h]h }(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjpEubj)}(hjh]h*}(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjpEubj)}(hdevh]hdev}(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjpEubeh}(h]h ]h"]h$]h&]noemphjUjVuh1jhjlEubah}(h]h ]h"]h$]h&]jUjVuh1jhj3EhhhjEEhMubeh}(h]h ]h"]h$]h&]jUjVj.uh1jj/j0hj/EhhhjEEhMubah}(h]j*Eah ](j4j5eh"]h$]h&]j9j:)j;huh1jhjEEhMhj,Ehhubj=)}(hhh]h)}(hTake reference of a DRM deviceh]hTake reference of a DRM device}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:90: ./drivers/gpu/drm/drm_drv.chMhjEhhubah}(h]h ]h"]h$]h&]uh1j<hj,EhhhjEEhMubeh}(h]h ](j!functioneh"]h$]h&]j]j!j^jFj_jFj`jajbuh1jhhhjshNhNubjd)}(hX**Parameters** ``struct drm_device *dev`` device to take reference of or NULL **Description** This increases the ref-count of **dev** by one. You *must* already own a reference when calling this. Use drm_dev_put() to drop this reference again. This function never fails. However, this function does not provide *any* guarantee whether the device is alive or running. It only provides a reference to the object and the memory associated with it.h](h)}(h**Parameters**h]jn)}(hjFh]h Parameters}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jmhjFubah}(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 take reference of or NULL h](j)}(h``struct drm_device *dev``h]j)}(hj8Fh]hstruct drm_device *dev}(hj:FhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6Fubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:90: ./drivers/gpu/drm/drm_drv.chMhj2Fubj)}(hhh]h)}(h#device to take reference of or NULLh]h#device to take reference of or NULL}(hjQFhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjMFhMhjNFubah}(h]h ]h"]h$]h&]uh1jhj2Fubeh}(h]h ]h"]h$]h&]uh1jhjMFhMhj/Fubah}(h]h ]h"]h$]h&]uh1jhjFubh)}(h**Description**h]jn)}(hjsFh]h Description}(hjuFhhhNhNubah}(h]h ]h"]h$]h&]uh1jmhjqFubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:90: ./drivers/gpu/drm/drm_drv.chMhjFubh)}(hThis increases the ref-count of **dev** by one. You *must* already own a reference when calling this. Use drm_dev_put() to drop this reference again.h](h This increases the ref-count of }(hjFhhhNhNubjn)}(h**dev**h]hdev}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jmhjFubh by one. You }(hjFhhhNhNubjA)}(h*must*h]hmust}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jAhjFubh[ already own a reference when calling this. Use drm_dev_put() to drop this reference again.}(hjFhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:90: ./drivers/gpu/drm/drm_drv.chMhjFubh)}(hThis function never fails. However, this function does not provide *any* guarantee whether the device is alive or running. It only provides a reference to the object and the memory associated with it.h](hCThis function never fails. However, this function does not provide }(hjFhhhNhNubjA)}(h*any*h]hany}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jAhjFubh guarantee whether the device is alive or running. It only provides a reference to the object and the memory associated with it.}(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&]uh1jchjshhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jdrm_dev_put (C function) c.drm_dev_puthNtauh1jhjshhhNhNubj)}(hhh](j)}(h)void drm_dev_put (struct drm_device *dev)h]j)}(h(void drm_dev_put(struct drm_device *dev)h](j))}(hvoidh]hvoid}(hjFhhhNhNubah}(h]h ]j)ah"]h$]h&]uh1j)hjFhhh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:90: ./drivers/gpu/drm/drm_drv.chMubj)}(h h]h }(hj GhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjFhhhj GhMubj )}(h drm_dev_puth]j)}(h drm_dev_puth]h drm_dev_put}(hjGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGubah}(h]h ](j#j$eh"]h$]h&]jUjVuh1j hjFhhhj GhMubj)}(h(struct drm_device *dev)h]j)}(hstruct drm_device *devh](j)}(hjh]hstruct}(hj:GhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6Gubj)}(h h]h }(hjGGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6Gubh)}(hhh]j)}(h drm_deviceh]h drm_device}(hjXGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUGubah}(h]h ]h"]h$]h&] refdomainj!reftypej reftargetjZGmodnameN classnameNj j )}j ]j)}jj Gsb c.drm_dev_putasbuh1hhj6Gubj)}(h h]h }(hjxGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6Gubj)}(hjh]h*}(hjGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6Gubj)}(hdevh]hdev}(hjGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6Gubeh}(h]h ]h"]h$]h&]noemphjUjVuh1jhj2Gubah}(h]h ]h"]h$]h&]jUjVuh1jhjFhhhj GhMubeh}(h]h ]h"]h$]h&]jUjVj.uh1jj/j0hjFhhhj GhMubah}(h]jFah ](j4j5eh"]h$]h&]j9j:)j;huh1jhj GhMhjFhhubj=)}(hhh]h)}(hDrop reference of a DRM deviceh]hDrop reference of a DRM device}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:90: ./drivers/gpu/drm/drm_drv.chMhjGhhubah}(h]h ]h"]h$]h&]uh1j<hjFhhhj GhMubeh}(h]h ](j!functioneh"]h$]h&]j]j!j^jGj_jGj`jajbuh1jhhhjshNhNubjd)}(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]jn)}(hjGh]h Parameters}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jmhjGubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:90: ./drivers/gpu/drm/drm_drv.chMhjGubj)}(hhh]j)}(h?``struct drm_device *dev`` device to drop reference of or NULL h](j)}(h``struct drm_device *dev``h]j)}(hjGh]hstruct drm_device *dev}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjGubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:90: ./drivers/gpu/drm/drm_drv.chMhjGubj)}(hhh]h)}(h#device to drop reference of or NULLh]h#device to drop reference of or NULL}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjHhMhjHubah}(h]h ]h"]h$]h&]uh1jhjGubeh}(h]h ]h"]h$]h&]uh1jhjHhMhjGubah}(h]h ]h"]h$]h&]uh1jhjGubh)}(h**Description**h]jn)}(hj9Hh]h Description}(hj;HhhhNhNubah}(h]h ]h"]h$]h&]uh1jmhj7Hubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:90: ./drivers/gpu/drm/drm_drv.chMhjGubh)}(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 }(hjOHhhhNhNubjn)}(h**dev**h]hdev}(hjWHhhhNhNubah}(h]h ]h"]h$]h&]uh1jmhjOHubh@ by one. The device is destroyed if the ref-count drops to zero.}(hjOHhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:90: ./drivers/gpu/drm/drm_drv.chMhjGubeh}(h]h ] kernelindentah"]h$]h&]uh1jchjshhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j(drmm_cgroup_register_region (C function)c.drmm_cgroup_register_regionhNtauh1jhjshhhNhNubj)}(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}(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHhhh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:90: ./drivers/gpu/drm/drm_drv.chMubj)}(h h]h }(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHhhhjHhMubh)}(hhh]j)}(hdmem_cgroup_regionh]hdmem_cgroup_region}(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHubah}(h]h ]h"]h$]h&] refdomainj!reftypej reftargetjHmodnameN classnameNj j )}j ]j)}jdrmm_cgroup_register_regionsbc.drmm_cgroup_register_regionasbuh1hhjHhhhjHhMubj)}(h h]h }(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHhhhjHhMubj)}(hjh]h*}(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHhhhjHhMubj )}(hdrmm_cgroup_register_regionh]j)}(hjHh]hdrmm_cgroup_register_region}(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHubah}(h]h ](j#j$eh"]h$]h&]jUjVuh1j hjHhhhjHhMubj)}(h;(struct drm_device *dev, const char *region_name, u64 size)h](j)}(hstruct drm_device *devh](j)}(hjh]hstruct}(hj IhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjIubj)}(h h]h }(hjIhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjIubh)}(hhh]j)}(h drm_deviceh]h drm_device}(hj(IhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%Iubah}(h]h ]h"]h$]h&] refdomainj!reftypej reftargetj*ImodnameN classnameNj j )}j ]jHc.drmm_cgroup_register_regionasbuh1hhjIubj)}(h h]h }(hjFIhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjIubj)}(hjh]h*}(hjTIhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjIubj)}(hdevh]hdev}(hjaIhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjIubeh}(h]h ]h"]h$]h&]noemphjUjVuh1jhjIubj)}(hconst char *region_nameh](j)}(hj+h]hconst}(hjzIhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvIubj)}(h h]h }(hjIhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvIubj))}(hcharh]hchar}(hjIhhhNhNubah}(h]h ]j)ah"]h$]h&]uh1j)hjvIubj)}(h h]h }(hjIhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvIubj)}(hjh]h*}(hjIhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvIubj)}(h region_nameh]h region_name}(hjIhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvIubeh}(h]h ]h"]h$]h&]noemphjUjVuh1jhjIubj)}(hu64 sizeh](h)}(hhh]j)}(hu64h]hu64}(hjIhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjIubah}(h]h ]h"]h$]h&] refdomainj!reftypej reftargetjImodnameN classnameNj j )}j ]jHc.drmm_cgroup_register_regionasbuh1hhjIubj)}(h h]h }(hjIhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjIubj)}(hsizeh]hsize}(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjIubeh}(h]h ]h"]h$]h&]noemphjUjVuh1jhjIubeh}(h]h ]h"]h$]h&]jUjVuh1jhjHhhhjHhMubeh}(h]h ]h"]h$]h&]jUjVj.uh1jj/j0hjHhhhjHhMubah}(h]jHah ](j4j5eh"]h$]h&]j9j:)j;huh1jhjHhMhjHhhubj=)}(hhh]h)}(h,Register a region of a DRM device to cgroupsh]h,Register a region of a DRM device to cgroups}(hj0JhhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:90: ./drivers/gpu/drm/drm_drv.chMhj-Jhhubah}(h]h ]h"]h$]h&]uh1j<hjHhhhjHhMubeh}(h]h ](j!functioneh"]h$]h&]j]j!j^jHJj_jHJj`jajbuh1jhhhjshNhNubjd)}(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]jn)}(hjRJh]h Parameters}(hjTJhhhNhNubah}(h]h ]h"]h$]h&]uh1jmhjPJubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:90: ./drivers/gpu/drm/drm_drv.chMhjLJubj)}(hhh](j)}(h-``struct drm_device *dev`` device for region h](j)}(h``struct drm_device *dev``h]j)}(hjqJh]hstruct drm_device *dev}(hjsJhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjoJubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:90: ./drivers/gpu/drm/drm_drv.chMhjkJubj)}(hhh]h)}(hdevice for regionh]hdevice for region}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjJhMhjJubah}(h]h ]h"]h$]h&]uh1jhjkJubeh}(h]h ]h"]h$]h&]uh1jhjJhMhjhJubj)}(h8``const char *region_name`` Region name for registering h](j)}(h``const char *region_name``h]j)}(hjJh]hconst char *region_name}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjJubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:90: ./drivers/gpu/drm/drm_drv.chMhjJubj)}(hhh]h)}(hRegion name for registeringh]hRegion name for registering}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjJhMhjJubah}(h]h ]h"]h$]h&]uh1jhjJubeh}(h]h ]h"]h$]h&]uh1jhjJhMhjhJubj)}(h%``u64 size`` Size of region in bytes h](j)}(h ``u64 size``h]j)}(hjJh]hu64 size}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjJubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:90: ./drivers/gpu/drm/drm_drv.chMhjJubj)}(hhh]h)}(hSize of region in bytesh]hSize of region in bytes}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjJhMhjJubah}(h]h ]h"]h$]h&]uh1jhjJubeh}(h]h ]h"]h$]h&]uh1jhjJhMhjhJubeh}(h]h ]h"]h$]h&]uh1jhjLJubh)}(h**Description**h]jn)}(hjKh]h Description}(hj KhhhNhNubah}(h]h ]h"]h$]h&]uh1jmhjKubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:90: ./drivers/gpu/drm/drm_drv.chMhjLJubh)}(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 }(hj4KhhhNhNubjn)}(h**dev**h]hdev}(hj` 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]jn)}(hjLh]h Parameters}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jmhjLubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:90: ./drivers/gpu/drm/drm_drv.chMhjLubj)}(hhh](j)}(h.``struct drm_device *dev`` Device to register h](j)}(h``struct drm_device *dev``h]j)}(hjLh]hstruct drm_device *dev}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjLubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:90: ./drivers/gpu/drm/drm_drv.chMhjLubj)}(hhh]h)}(hDevice to registerh]hDevice to register}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjLhMhjLubah}(h]h ]h"]h$]h&]uh1jhjLubeh}(h]h ]h"]h$]h&]uh1jhjLhMhjLubj)}(hF``unsigned long flags`` Flags passed to the driver's .load() function h](j)}(h``unsigned long flags``h]j)}(hjMh]hunsigned long flags}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjLubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:90: ./drivers/gpu/drm/drm_drv.chMhjLubj)}(hhh]h)}(h-Flags passed to the driver's .load() functionh]h/Flags passed to the driver’s .load() function}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjMhMhjMubah}(h]h ]h"]h$]h&]uh1jhjLubeh}(h]h ]h"]h$]h&]uh1jhjMhMhjLubeh}(h]h ]h"]h$]h&]uh1jhjLubh)}(h**Description**h]jn)}(hj;Mh]h Description}(hj=MhhhNhNubah}(h]h ]h"]h$]h&]uh1jmhj9Mubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:90: ./drivers/gpu/drm/drm_drv.chMhjLubh)}(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 }(hjQMhhhNhNubjn)}(h**dev**h]hdev}(hjYMhhhNhNubah}(h]h ]h"]h$]h&]uh1jmhjQMubhT with the system, advertise device to user-space and start normal device operation. }(hjQMhhhNhNubjn)}(h**dev**h]hdev}(hjkMhhhNhNubah}(h]h ]h"]h$]h&]uh1jmhjQMubh3 must be initialized via drm_dev_init() previously.}(hjQMhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:90: ./drivers/gpu/drm/drm_drv.chMhjLubh)}(h$Never call this twice on any device!h]h$Never call this twice on any device!}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:90: ./drivers/gpu/drm/drm_drv.chMhjLubh)}(h**NOTE**h]jn)}(hjMh]hNOTE}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jmhjMubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:90: ./drivers/gpu/drm/drm_drv.chMhjLubh)}(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 }(hjMhhhNhNubh)}(h&:c:type:`drm_driver.load `h]j)}(hjMh]hdrm_driver.load}(hjMhhhNhNubah}(h]h ](j j!c-typeeh"]h$]h&]uh1jhjMubah}(h]h ]h"]h$]h&]refdocj- refdomainj!reftypetype refexplicitrefwarnj j j3 drm_driveruh1hh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:90: ./drivers/gpu/drm/drm_drv.chMhjMubhS method after registering the device nodes, creating race conditions. Usage of the }(hjMhhhNhNubh)}(h&:c:type:`drm_driver.load `h]j)}(hjMh]hdrm_driver.load}(hjMhhhNhNubah}(h]h ](j j!c-typeeh"]h$]h&]uh1jhjMubah}(h]h ]h"]h$]h&]refdocj- refdomainj!reftypetype refexplicitrefwarnj j j3 drm_driveruh1hhjMhMhjMubhl methods is therefore deprecated, drivers must perform all initialization before calling drm_dev_register().}(hjMhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjMhMhjLubh)}(h **Return**h]jn)}(hjNh]hReturn}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jmhjNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:90: ./drivers/gpu/drm/drm_drv.chMhjLubh)}(h-0 on success, negative error code on failure.h]h-0 on success, negative error code on failure.}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:90: ./drivers/gpu/drm/drm_drv.chMhjLubeh}(h]h ] kernelindentah"]h$]h&]uh1jchjshhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jdrm_dev_unregister (C function)c.drm_dev_unregisterhNtauh1jhjshhhNhNubj)}(hhh](j)}(h0void drm_dev_unregister (struct drm_device *dev)h]j)}(h/void drm_dev_unregister(struct drm_device *dev)h](j))}(hvoidh]hvoid}(hjGNhhhNhNubah}(h]h ]j)ah"]h$]h&]uh1j)hjCNhhh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:90: ./drivers/gpu/drm/drm_drv.chMkubj)}(h h]h }(hjVNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjCNhhhjUNhMkubj )}(hdrm_dev_unregisterh]j)}(hdrm_dev_unregisterh]hdrm_dev_unregister}(hjhNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdNubah}(h]h ](j#j$eh"]h$]h&]jUjVuh1j hjCNhhhjUNhMkubj)}(h(struct drm_device *dev)h]j)}(hstruct drm_device *devh](j)}(hjh]hstruct}(hjNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNubj)}(h h]h }(hjNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNubh)}(hhh]j)}(h drm_deviceh]h drm_device}(hjNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNubah}(h]h ]h"]h$]h&] refdomainj!reftypej reftargetjNmodnameN classnameNj j )}j ]j)}jjjNsbc.drm_dev_unregisterasbuh1hhjNubj)}(h h]h }(hjNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNubj)}(hjh]h*}(hjNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNubj)}(hdevh]hdev}(hjNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNubeh}(h]h ]h"]h$]h&]noemphjUjVuh1jhj|Nubah}(h]h ]h"]h$]h&]jUjVuh1jhjCNhhhjUNhMkubeh}(h]h ]h"]h$]h&]jUjVj.uh1jj/j0hj?NhhhjUNhMkubah}(h]j:Nah ](j4j5eh"]h$]h&]j9j:)j;huh1jhjUNhMkhj`. 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 }(hj PhhhNhNubh)}(h*:ref:`component helper library`h]jY)}(hjPh]hcomponent helper library}(hjPhhhNhNubah}(h]h ](j stdstd-refeh"]h$]h&]uh1jXhjPubah}(h]h ]h"]h$]h&]refdocj- refdomainjPreftyperef refexplicitrefwarnj3 componentuh1hh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:99: ./drivers/gpu/drm/drm_drv.chMhj PubhS. For consistency and better options for code reuse the following guidelines apply:}(hj PhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj1PhMhjOhhubj:')}(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 }(hjKPhhhNhNubh)}(hA:c:type:`component_master_ops.master_bind `h]j)}(hjUPh]h component_master_ops.master_bind}(hjWPhhhNhNubah}(h]h ](j j!c-typeeh"]h$]h&]uh1jhjSPubah}(h]h ]h"]h$]h&]refdocj- refdomainj!reftypetype refexplicitrefwarnj j j3component_master_opsuh1hh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:99: ./drivers/gpu/drm/drm_drv.chMhjKPubh callback, starting with devm_drm_dev_alloc(), then binding all components with component_bind_all() and finishing with drm_dev_register().}(hjKPhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjrPhMhjGPubah}(h]h ]h"]h$]h&]uh1jEPhjBPubjFP)}(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 }(hjPhhhNhNubh)}(h(:c:type:`struct drm_device `h]j)}(hjPh]hstruct drm_device}(hjPhhhNhNubah}(h]h ](j j!c-typeeh"]h$]h&]uh1jhjPubah}(h]h ]h"]h$]h&]refdocj- refdomainj!reftypetype refexplicitrefwarnj j j3 drm_deviceuh1hh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:99: ./drivers/gpu/drm/drm_drv.chMhjPubhD of the device instance, not some driver specific private structure.}(hjPhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjPhMhjPubah}(h]h ]h"]h$]h&]uh1jEPhjBPubjFP)}(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 }(hjPhhhNhNubh)}(h:c:type:`drm_bridge`h]j)}(hjPh]h drm_bridge}(hjPhhhNhNubah}(h]h ](j j!c-typeeh"]h$]h&]uh1jhjPubah}(h]h ]h"]h$]h&]refdocj- refdomainj!reftypetype refexplicitrefwarnj j j3 drm_bridgeuh1hh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:99: ./drivers/gpu/drm/drm_drv.chMhjPubh or }(hjPhhhNhNubh)}(h:c:type:`drm_panel`h]j)}(hjPh]h drm_panel}(hjPhhhNhNubah}(h]h ](j j!c-typeeh"]h$]h&]uh1jhjPubah}(h]h ]h"]h$]h&]refdocj- refdomainj!reftypetype refexplicitrefwarnj j j3 drm_paneluh1hhjPhMhjPubh, 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.}(hjPhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjPhMhjPubah}(h]h ]h"]h$]h&]uh1jEPhjBPubeh}(h]h ]h"]h$]h&]bullet-uh1j@PhjrPhMhjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj:Wubah}(h]h ]h"]h$]h&]uh1jh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:132: ./drivers/gpu/drm/drm_managed.chKhj6Wubj)}(hhh]h)}(hsize of the memory allocationh]hsize of the memory allocation}(hjUWhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjQWhKhjRWubah}(h]h ]h"]h$]h&]uh1jhj6Wubeh}(h]h ]h"]h$]h&]uh1jhjQWhKhjVubj)}(h#``gfp_t gfp`` GFP allocation flags h](j)}(h ``gfp_t gfp``h]j)}(hjuWh]h gfp_t gfp}(hjwWhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjsWubah}(h]h ]h"]h$]h&]uh1jh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:132: ./drivers/gpu/drm/drm_managed.chKhjoWubj)}(hhh]h)}(hGFP allocation flagsh]hGFP allocation flags}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjWhKhjWubah}(h]h ]h"]h$]h&]uh1jhjoWubeh}(h]h ]h"]h$]h&]uh1jhjWhKhjVubeh}(h]h ]h"]h$]h&]uh1jhjVubh)}(h**Description**h]jn)}(hjWh]h Description}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jmhjWubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:132: ./drivers/gpu/drm/drm_managed.chKhjVubh)}(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 }(hjWhhhNhNubh)}(h:c:type:`drm_device`h]j)}(hjWh]h drm_device}(hjWhhhNhNubah}(h]h ](j j!c-typeeh"]h$]h&]uh1jhjWubah}(h]h ]h"]h$]h&]refdocj- refdomainj!reftypetype refexplicitrefwarnj j j3 drm_deviceuh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:132: ./drivers/gpu/drm/drm_managed.chKhjWubh 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().}(hjWhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjWhKhjVubeh}(h]h ] kernelindentah"]h$]h&]uh1jchjQhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jdrmm_kstrdup (C function)c.drmm_kstrduphNtauh1jhjQhhhNhNubj)}(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](j))}(hcharh]hchar}(hjXhhhNhNubah}(h]h ]j)ah"]h$]h&]uh1j)hjXhhh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:132: ./drivers/gpu/drm/drm_managed.chKubj)}(h h]h }(hj'XhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjXhhhj&XhKubj)}(hjh]h*}(hj5XhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjXhhhj&XhKubj )}(h drmm_kstrduph]j)}(h drmm_kstrduph]h drmm_kstrdup}(hjFXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBXubah}(h]h ](j#j$eh"]h$]h&]jUjVuh1j hjXhhhj&XhKubj)}(h2(struct drm_device *dev, const char *s, gfp_t gfp)h](j)}(hstruct drm_device *devh](j)}(hjh]hstruct}(hjbXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^Xubj)}(h h]h }(hjoXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^Xubh)}(hhh]j)}(h drm_deviceh]h drm_device}(hjXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj}Xubah}(h]h ]h"]h$]h&] refdomainj!reftypej reftargetjXmodnameN classnameNj j )}j ]j)}jjHXsbc.drmm_kstrdupasbuh1hhj^Xubj)}(h h]h }(hjXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^Xubj)}(hjh]h*}(hjXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^Xubj)}(hdevh]hdev}(hjXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^Xubeh}(h]h ]h"]h$]h&]noemphjUjVuh1jhjZXubj)}(h const char *sh](j)}(hj+h]hconst}(hjXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjXubj)}(h h]h }(hjXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjXubj))}(hcharh]hchar}(hjXhhhNhNubah}(h]h ]j)ah"]h$]h&]uh1j)hjXubj)}(h h]h }(hjXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjXubj)}(hjh]h*}(hj YhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjXubj)}(hsh]hs}(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjXubeh}(h]h ]h"]h$]h&]noemphjUjVuh1jhjZXubj)}(h gfp_t gfph](h)}(hhh]j)}(hgfp_th]hgfp_t}(hj4YhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1Yubah}(h]h ]h"]h$]h&] refdomainj!reftypej reftargetj6YmodnameN classnameNj j )}j ]jXc.drmm_kstrdupasbuh1hhj-Yubj)}(h h]h }(hjRYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-Yubj)}(hgfph]hgfp}(hj`YhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-Yubeh}(h]h ]h"]h$]h&]noemphjUjVuh1jhjZXubeh}(h]h ]h"]h$]h&]jUjVuh1jhjXhhhj&XhKubeh}(h]h ]h"]h$]h&]jUjVj.uh1jj/j0hjXhhhj&XhKubah}(h]j Xah ](j4j5eh"]h$]h&]j9j:)j;huh1jhj&XhKhj Xhhubj=)}(hhh]h)}(h&:c:type:`drm_device` managed kstrdup()h](h)}(h:c:type:`drm_device`h]j)}(hjYh]h drm_device}(hjYhhhNhNubah}(h]h ](j j!c-typeeh"]h$]h&]uh1jhjYubah}(h]h ]h"]h$]h&]refdocj- refdomainj!reftypetype refexplicitrefwarnj j )}j ]jXc.drmm_kstrdupasbj3 drm_deviceuh1hhjXRhKhjYubh managed kstrdup()}(hjYhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:132: ./drivers/gpu/drm/drm_managed.chKhjYhhubah}(h]h ]h"]h$]h&]uh1j<hj Xhhhj&XhKubeh}(h]h ](j!functioneh"]h$]h&]j]j!j^jYj_jYj`jajbuh1jhhhjQhNhNubjd)}(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]jn)}(hjYh]h Parameters}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1jmhjYubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:132: ./drivers/gpu/drm/drm_managed.chKhjYubj)}(hhh](j)}(h&``struct drm_device *dev`` DRM device h](j)}(h``struct drm_device *dev``h]j)}(hjYh]hstruct drm_device *dev}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjYubah}(h]h ]h"]h$]h&]uh1jh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:132: ./drivers/gpu/drm/drm_managed.chKhjYubj)}(hhh]h)}(h DRM deviceh]h DRM device}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjZhKhjZubah}(h]h ]h"]h$]h&]uh1jhjYubeh}(h]h ]h"]h$]h&]uh1jhjZhKhjYubj)}(h7``const char *s`` 0-terminated string to be duplicated h](j)}(h``const char *s``h]j)}(hj(Zh]h const char *s}(hj*ZhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj&Zubah}(h]h ]h"]h$]h&]uh1jh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:132: ./drivers/gpu/drm/drm_managed.chKhj"Zubj)}(hhh]h)}(h$0-terminated string to be duplicatedh]h$0-terminated string to be duplicated}(hjAZhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj=ZhKhj>Zubah}(h]h ]h"]h$]h&]uh1jhj"Zubeh}(h]h ]h"]h$]h&]uh1jhj=ZhKhjYubj)}(h#``gfp_t gfp`` GFP allocation flags h](j)}(h ``gfp_t gfp``h]j)}(hjaZh]h gfp_t gfp}(hjcZhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj_Zubah}(h]h ]h"]h$]h&]uh1jh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:132: ./drivers/gpu/drm/drm_managed.chKhj[Zubj)}(hhh]h)}(hGFP allocation flagsh]hGFP allocation flags}(hjzZhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjvZhKhjwZubah}(h]h ]h"]h$]h&]uh1jhj[Zubeh}(h]h ]h"]h$]h&]uh1jhjvZhKhjYubeh}(h]h ]h"]h$]h&]uh1jhjYubh)}(h**Description**h]jn)}(hjZh]h Description}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jmhjZubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:132: ./drivers/gpu/drm/drm_managed.chKhjYubh)}(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 }(hjZhhhNhNubh)}(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 refexplicitrefwarnj j j3 drm_deviceuh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:132: ./drivers/gpu/drm/drm_managed.chKhjZubh 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().}(hjZhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjZhKhjYubeh}(h]h ] kernelindentah"]h$]h&]uh1jchjQhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jdrmm_kfree (C function) c.drmm_kfreehNtauh1jhjQhhhNhNubj)}(hhh](j)}(h4void drmm_kfree (struct drm_device *dev, void *data)h]j)}(h3void drmm_kfree(struct drm_device *dev, void *data)h](j))}(hvoidh]hvoid}(hj[hhhNhNubah}(h]h ]j)ah"]h$]h&]uh1j)hj[hhh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:132: ./drivers/gpu/drm/drm_managed.chMubj)}(h h]h }(hj[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj[hhhj[hMubj )}(h drmm_kfreeh]j)}(h drmm_kfreeh]h drmm_kfree}(hj%[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj![ubah}(h]h ](j#j$eh"]h$]h&]jUjVuh1j hj[hhhj[hMubj)}(h$(struct drm_device *dev, void *data)h](j)}(hstruct drm_device *devh](j)}(hjh]hstruct}(hjA[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=[ubj)}(h h]h }(hjN[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 reftargetja[modnameN classnameNj j )}j ]j)}jj'[sb c.drmm_kfreeasbuh1hhj=[ubj)}(h h]h }(hj[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=[ubj)}(hjh]h*}(hj[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=[ubj)}(hdevh]hdev}(hj[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=[ubeh}(h]h ]h"]h$]h&]noemphjUjVuh1jhj9[ubj)}(h void *datah](j))}(hvoidh]hvoid}(hj[hhhNhNubah}(h]h ]j)ah"]h$]h&]uh1j)hj[ubj)}(h h]h }(hj[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj[ubj)}(hjh]h*}(hj[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj[ubj)}(hdatah]hdata}(hj[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj[ubeh}(h]h ]h"]h$]h&]noemphjUjVuh1jhj9[ubeh}(h]h ]h"]h$]h&]jUjVuh1jhj[hhhj[hMubeh}(h]h ]h"]h$]h&]jUjVj.uh1jj/j0hjZhhhj[hMubah}(h]jZah ](j4j5eh"]h$]h&]j9j:)j;huh1jhj[hMhjZhhubj=)}(hhh]h)}(h$:c:type:`drm_device` managed kfree()h](h)}(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 refexplicitrefwarnj j )}j ]j{[ c.drmm_kfreeasbj3 drm_deviceuh1hhjXRhKhj\ubh managed kfree()}(hj\hhhNhNubeh}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:132: ./drivers/gpu/drm/drm_managed.chMhj\hhubah}(h]h ]h"]h$]h&]uh1j<hjZhhhj[hMubeh}(h]h ](j!functioneh"]h$]h&]j]j!j^jB\j_jB\j`jajbuh1jhhhjQhNhNubjd)}(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]jn)}(hjL\h]h Parameters}(hjN\hhhNhNubah}(h]h ]h"]h$]h&]uh1jmhjJ\ubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:132: ./drivers/gpu/drm/drm_managed.chMhjF\ubj)}(hhh](j)}(h&``struct drm_device *dev`` DRM device h](j)}(h``struct drm_device *dev``h]j)}(hjk\h]hstruct drm_device *dev}(hjm\hhhNhNubah}(h]h ]h"]h$]h&]uh1jhji\ubah}(h]h ]h"]h$]h&]uh1jh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:132: ./drivers/gpu/drm/drm_managed.chMhje\ubj)}(hhh]h)}(h DRM deviceh]h DRM device}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj\hMhj\ubah}(h]h ]h"]h$]h&]uh1jhje\ubeh}(h]h ]h"]h$]h&]uh1jhj\hMhjb\ubj)}(h-``void *data`` memory allocation to be freed h](j)}(h``void *data``h]j)}(hj\h]h void *data}(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)}(hmemory allocation to be freedh]hmemory allocation to be freed}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj\hMhj\ubah}(h]h ]h"]h$]h&]uh1jhj\ubeh}(h]h ]h"]h$]h&]uh1jhj\hMhjb\ubeh}(h]h ]h"]h$]h&]uh1jhjF\ubh)}(h**Description**h]jn)}(hj\h]h Description}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1jmhj\ubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:132: ./drivers/gpu/drm/drm_managed.chMhjF\ubh)}(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 refexplicitrefwarnj j j3 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\hhhNhNubjn)}(h**dev**h]hdev}(hj!]hhhNhNubah}(h]h ]h"]h$]h&]uh1jmhj\ubh.}(hj\hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj]hMhjF\ubeh}(h]h ] kernelindentah"]h$]h&]uh1jchjQhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jdrmm_add_action (C macro)c.drmm_add_actionhNtauh1jhjQhhhNhNubj)}(hhh](j)}(hdrmm_add_actionh]j)}(hdrmm_add_actionh]j )}(hdrmm_add_actionh]j)}(hjS]h]hdrmm_add_action}(hj]]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjY]ubah}(h]h ](j#j$eh"]h$]h&]jUjVuh1j hjU]hhh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:135: ./include/drm/drm_managed.hhKubah}(h]h ]h"]h$]h&]jUjVj.uh1jj/j0hjQ]hhhjp]hKubah}(h]jL]ah ](j4j5eh"]h$]h&]j9j:)j;huh1jhjp]hKhjN]hhubj=)}(hhh]h}(h]h ]h"]h$]h&]uh1j<hjN]hhhjp]hKubeh}(h]h ](j!macroeh"]h$]h&]j]j!j^j]j_j]j`jajbuh1jhhhjQhNhNubh)}(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&]uh1jhj]ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:135: ./include/drm/drm_managed.hhKhjQhhubj:')}(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 }(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 refexplicitrefwarnj j j3 drm_deviceuh1hh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:135: ./include/drm/drm_managed.hhKhj]ubeh}(h]h ]h"]h$]h&]uh1hhj]hKhj]ubah}(h]h ]h"]h$]h&]uh1j9'hj]hKhjQhhubjd)}(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]jn)}(hj]h]h Parameters}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1jmhj]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&]uh1jhj9^ubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:135: ./include/drm/drm_managed.hhKhj5^ubj)}(hhh]h)}(h8function which should be called when **dev** is releasedh](h%function which should be called when }(hjT^hhhNhNubjn)}(h**dev**h]hdev}(hj\^hhhNhNubah}(h]h ]h"]h$]h&]uh1jmhjT^ubh is released}(hjT^hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjP^hKhjQ^ubah}(h]h ]h"]h$]h&]uh1jhj5^ubeh}(h]h ]h"]h$]h&]uh1jhjP^hKhj]ubj)}(h.``data`` opaque pointer, passed to **action** h](j)}(h``data``h]j)}(hj^h]hdata}(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$opaque pointer, passed to **action**h](hopaque pointer, passed to }(hj^hhhNhNubjn)}(h **action**h]haction}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1jmhj^ubeh}(h]h ]h"]h$]h&]uh1hhj^hKhj^ubah}(h]h ]h"]h$]h&]uh1jhj^ubeh}(h]h ]h"]h$]h&]uh1jhj^hKhj]ubeh}(h]h ]h"]h$]h&]uh1jhj]ubh)}(h**Description**h]jn)}(hj^h]h Description}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1jmhj^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^hhhNhNubjn)}(h **release**h]hrelease}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1jmhj^ubh action with optional parameter }(hj^hhhNhNubjn)}(h**data**h]hdata}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1jmhj^ubh$ to the list of cleanup actions for }(hj^hhhNhNubjn)}(h**dev**h]hdev}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1jmhj^ubhW. The cleanup actions will be run in reverse order in the final drm_dev_put() call for }(hj^hhhNhNubjn)}(h**dev**h]hdev}(hj#_hhhNhNubah}(h]h ]h"]h$]h&]uh1jmhj^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&]uh1jchjQhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j"drmm_add_action_or_reset (C macro)c.drmm_add_action_or_resethNtauh1jhjQhhhNhNubj)}(hhh](j)}(hdrmm_add_action_or_reseth]j)}(hdrmm_add_action_or_reseth]j )}(hdrmm_add_action_or_reseth]j)}(hjV_h]hdrmm_add_action_or_reset}(hj`_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\_ubah}(h]h ](j#j$eh"]h$]h&]jUjVuh1j hjX_hhh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:135: ./include/drm/drm_managed.hhK!ubah}(h]h ]h"]h$]h&]jUjVj.uh1jj/j0hjT_hhhjs_hK!ubah}(h]jO_ah ](j4j5eh"]h$]h&]j9j:)j;huh1jhjs_hK!hjQ_hhubj=)}(hhh]h}(h]h ]h"]h$]h&]uh1j<hjQ_hhhjs_hK!ubeh}(h]h ](j!macroeh"]h$]h&]j]j!j^j_j_j_j`jajbuh1jhhhjQhNhNubh)}(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#hjQhhubj:')}(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 }(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 refexplicitrefwarnj j j3 drm_deviceuh1hh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:135: ./include/drm/drm_managed.hhK!hj_ubeh}(h]h ]h"]h$]h&]uh1hhj_hK!hj_ubah}(h]h ]h"]h$]h&]uh1j9'hj_hK!hjQhhubjd)}(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]jn)}(hj_h]h Parameters}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1jmhj_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#hj8`ubj)}(hhh]h)}(h8function which should be called when **dev** is releasedh](h%function which should be called when }(hjW`hhhNhNubjn)}(h**dev**h]hdev}(hj_`hhhNhNubah}(h]h ]h"]h$]h&]uh1jmhjW`ubh is released}(hjW`hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjS`hK#hjT`ubah}(h]h ]h"]h$]h&]uh1jhj8`ubeh}(h]h ]h"]h$]h&]uh1jhjS`hK#hj_ubj)}(h.``data`` opaque pointer, passed to **action** h](j)}(h``data``h]j)}(hj`h]hdata}(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$opaque pointer, passed to **action**h](hopaque pointer, passed to }(hj`hhhNhNubjn)}(h **action**h]haction}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1jmhj`ubeh}(h]h ]h"]h$]h&]uh1hhj`hK$hj`ubah}(h]h ]h"]h$]h&]uh1jhj`ubeh}(h]h ]h"]h$]h&]uh1jhj`hK$hj_ubeh}(h]h ]h"]h$]h&]uh1jhj_ubh)}(h**Description**h]jn)}(hj`h]h Description}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1jmhj`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`hhhNhNubjn)}(h **action**h]haction}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1jmhj`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&]uh1jchjQhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jdrmm_kzalloc (C function)c.drmm_kzallochNtauh1jhjQhhhNhNubj)}(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](j))}(hvoidh]hvoid}(hj)ahhhNhNubah}(h]h ]j)ah"]h$]h&]uh1j)hj%ahhh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:135: ./include/drm/drm_managed.hhK7ubj)}(h h]h }(hj8ahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%ahhhj7ahK7ubj)}(hjh]h*}(hjFahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%ahhhj7ahK7ubj )}(h drmm_kzalloch]j)}(h drmm_kzalloch]h drmm_kzalloc}(hjWahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSaubah}(h]h ](j#j$eh"]h$]h&]jUjVuh1j hj%ahhhj7ahK7ubj)}(h0(struct drm_device *dev, size_t size, gfp_t gfp)h](j)}(hstruct drm_device *devh](j)}(hjh]hstruct}(hjsahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjoaubj)}(h h]h }(hjahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjoaubh)}(hhh]j)}(h drm_deviceh]h drm_device}(hjahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjaubah}(h]h ]h"]h$]h&] refdomainj!reftypej reftargetjamodnameN classnameNj j )}j ]j)}jjYasbc.drmm_kzallocasbuh1hhjoaubj)}(h h]h }(hjahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjoaubj)}(hjh]h*}(hjahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjoaubj)}(hdevh]hdev}(hjahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjoaubeh}(h]h ]h"]h$]h&]noemphjUjVuh1jhjkaubj)}(h size_t sizeh](h)}(hhh]j)}(hsize_th]hsize_t}(hjahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjaubah}(h]h ]h"]h$]h&] refdomainj!reftypej reftargetjamodnameN classnameNj j )}j ]jac.drmm_kzallocasbuh1hhjaubj)}(h h]h }(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjaubj)}(hsizeh]hsize}(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjaubeh}(h]h ]h"]h$]h&]noemphjUjVuh1jhjkaubj)}(h gfp_t gfph](h)}(hhh]j)}(hgfp_th]hgfp_t}(hj0bhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-bubah}(h]h ]h"]h$]h&] refdomainj!reftypej reftargetj2bmodnameN classnameNj j )}j ]jac.drmm_kzallocasbuh1hhj)bubj)}(h h]h }(hjNbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj)bubj)}(hgfph]hgfp}(hj\bhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj)bubeh}(h]h ]h"]h$]h&]noemphjUjVuh1jhjkaubeh}(h]h ]h"]h$]h&]jUjVuh1jhj%ahhhj7ahK7ubeh}(h]h ]h"]h$]h&]jUjVj.uh1jj/j0hj!ahhhj7ahK7ubah}(h]jaah ](j4j5eh"]h$]h&]j9j:)j;huh1jhj7ahK7hjahhubj=)}(hhh]h)}(h&:c:type:`drm_device` managed kzalloc()h](h)}(h:c:type:`drm_device`h]j)}(hjbh]h drm_device}(hjbhhhNhNubah}(h]h ](j j!c-typeeh"]h$]h&]uh1jhjbubah}(h]h ]h"]h$]h&]refdocj- refdomainj!reftypetype refexplicitrefwarnj j )}j ]jac.drmm_kzallocasbj3 drm_deviceuh1hhjp]hKhjbubh managed kzalloc()}(hjbhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:135: ./include/drm/drm_managed.hhK7hjbhhubah}(h]h ]h"]h$]h&]uh1j<hjahhhj7ahK7ubeh}(h]h ](j!functioneh"]h$]h&]j]j!j^jbj_jbj`jajbuh1jhhhjQhNhNubjd)}(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]jn)}(hjbh]h Parameters}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1jmhjbubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:135: ./include/drm/drm_managed.hhK;hjbubj)}(hhh](j)}(h&``struct drm_device *dev`` DRM device h](j)}(h``struct drm_device *dev``h]j)}(hjbh]hstruct drm_device *dev}(hjbhhhNhNubah}(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.hhK8hjbubj)}(hhh]h)}(h DRM deviceh]h DRM device}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1hhjchK8hjcubah}(h]h ]h"]h$]h&]uh1jhjbubeh}(h]h ]h"]h$]h&]uh1jhjchK8hjbubj)}(h.``size_t size`` size of the memory allocation h](j)}(h``size_t size``h]j)}(hj$ch]h size_t size}(hj&chhhNhNubah}(h]h ]h"]h$]h&]uh1jhj"cubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:135: ./include/drm/drm_managed.hhK9hjcubj)}(hhh]h)}(hsize of the memory allocationh]hsize of the memory allocation}(hj=chhhNhNubah}(h]h ]h"]h$]h&]uh1hhj9chK9hj:cubah}(h]h ]h"]h$]h&]uh1jhjcubeh}(h]h ]h"]h$]h&]uh1jhj9chK9hjbubj)}(h#``gfp_t gfp`` GFP allocation flags h](j)}(h ``gfp_t gfp``h]j)}(hj]ch]h gfp_t gfp}(hj_chhhNhNubah}(h]h ]h"]h$]h&]uh1jhj[cubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:135: ./include/drm/drm_managed.hhK:hjWcubj)}(hhh]h)}(hGFP allocation flagsh]hGFP allocation flags}(hjvchhhNhNubah}(h]h ]h"]h$]h&]uh1hhjrchK:hjscubah}(h]h ]h"]h$]h&]uh1jhjWcubeh}(h]h ]h"]h$]h&]uh1jhjrchK:hjbubeh}(h]h ]h"]h$]h&]uh1jhjbubh)}(h**Description**h]jn)}(hjch]h Description}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1jmhjcubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:135: ./include/drm/drm_managed.hhKmhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj:mubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:135: ./include/drm/drm_managed.hhKhj6mubj)}(hhh]h)}(h+printf format for the name of the workqueueh]h+printf format for the name of the workqueue}(hjUmhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjQmhKhjRmubah}(h]h ]h"]h$]h&]uh1jhj6mubeh}(h]h ]h"]h$]h&]uh1jhjQmhKhjlubj)}(hK``flags`` WQ_* flags (only WQ_FREEZABLE and WQ_MEM_RECLAIM are meaningful) h](j)}(h ``flags``h]j)}(hjumh]hflags}(hjwmhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjsmubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:135: ./include/drm/drm_managed.hhKhjomubj)}(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)}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjmhKhjmubah}(h]h ]h"]h$]h&]uh1jhjomubeh}(h]h ]h"]h$]h&]uh1jhjmhKhjlubj)}(h``args...`` args for **fmt** h](j)}(h ``args...``h]j)}(hjmh]hargs...}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjmubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:135: ./include/drm/drm_managed.hhKhjmubj)}(hhh]h)}(hargs for **fmt**h](h args for }(hjmhhhNhNubjn)}(h**fmt**h]hfmt}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jmhjmubeh}(h]h ]h"]h$]h&]uh1hhjmhKhjmubah}(h]h ]h"]h$]h&]uh1jhjmubeh}(h]h ]h"]h$]h&]uh1jhjmhKhjlubeh}(h]h ]h"]h$]h&]uh1jhjlubh)}(h**Description**h]jn)}(hjmh]h Description}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jmhjmubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:135: ./include/drm/drm_managed.hhKhjlubh)}(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 }(hj nhhhNhNubh)}(h:c:type:`drm_device`h]j)}(hjnh]h drm_device}(hjnhhhNhNubah}(h]h ](j j!c-typeeh"]h$]h&]uh1jhjnubah}(h]h ]h"]h$]h&]refdocj- refdomainj!reftypetype refexplicitrefwarnj j j3 drm_deviceuh1hh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:135: ./include/drm/drm_managed.hhKhj nubh}-managed version of alloc_ordered_workqueue(). The allocated workqueue is automatically destroyed on the final drm_dev_put().}(hj nhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj4nhKhjlubh)}(h **Return**h]jn)}(hjAnh]hReturn}(hjCnhhhNhNubah}(h]h ]h"]h$]h&]uh1jmhj?nubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:135: ./include/drm/drm_managed.hhKhjlubh)}(h1workqueue on success, negative ERR_PTR otherwise.h]h1workqueue on success, negative ERR_PTR otherwise.}(hjWnhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:135: ./include/drm/drm_managed.hhKhjlubeh}(h]h ] kernelindentah"]h$]h&]uh1jchjQhhhNhNubeh}(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}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj}nhhhhhKubhtarget)}(h.. _drm_driver_fops:h]h}(h]h ]h"]h$]h&]refiddrm-driver-fopsuh1jnhKhj}nhhhhubh)}(hhh](h)}(hFile Operationsh]hFile Operations}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjnhhhhhKubh)}(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 }(hjnhhhNhNubh)}(h2:c:type:`struct file_operations `h]j)}(hjnh]hstruct file_operations}(hjnhhhNhNubah}(h]h ](j j!c-typeeh"]h$]h&]uh1jhjnubah}(h]h ]h"]h$]h&]refdocj- refdomainj!reftypetype refexplicitrefwarnj j j3file_operationsuh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:146: ./drivers/gpu/drm/drm_file.chKHhjnubh must be stored in the }(hjnhhhNhNubh)}(h&:c:type:`drm_driver.fops `h]j)}(hjnh]hdrm_driver.fops}(hjnhhhNhNubah}(h]h ](j j!c-typeeh"]h$]h&]uh1jhjnubah}(h]h ]h"]h$]h&]refdocj- refdomainj!reftypetype refexplicitrefwarnj j j3 drm_driveruh1hhjnhKHhjnubhXY 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 }(hjnhhhNhNubh)}(h8:c:type:`file_operations.compat_ioctl `h]j)}(hjnh]hfile_operations.compat_ioctl}(hjohhhNhNubah}(h]h ](j j!c-typeeh"]h$]h&]uh1jhjnubah}(h]h ]h"]h$]h&]refdocj- refdomainj!reftypetype refexplicitrefwarnj j j3file_operationsuh1hhjnhKHhjnubhT handler that processes private ioctls and calls drm_compat_ioctl() for core ioctls.}(hjnhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjnhKHhjnhhubh)}(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.}(hj%ohhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:146: ./drivers/gpu/drm/drm_file.chKShjnhhubh)}(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.}(hj4ohhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:146: ./drivers/gpu/drm/drm_file.chKYhjnhhubh)}(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().}(hjCohhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:146: ./drivers/gpu/drm/drm_file.chK\hjnhhubh)}(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 }(hjRohhhNhNubh)}(h:c:type:`file_operations`h]j)}(hj\oh]hfile_operations}(hj^ohhhNhNubah}(h]h ](j j!c-typeeh"]h$]h&]uh1jhjZoubah}(h]h ]h"]h$]h&]refdocj- refdomainj!reftypetype refexplicitrefwarnj j j3file_operationsuh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:146: ./drivers/gpu/drm/drm_file.chK_hjRoubh structure:}(hjRohhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjyohK_hjnhhubjF)}(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, };}hjosbah}(h]h ]h"]h$]h&]jUjVuh1jEh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:146: ./drivers/gpu/drm/drm_file.chKbhjnhhubh)}(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.}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:146: ./drivers/gpu/drm/drm_file.chKmhjnhhubh)}(h`The driver's :c:type:`file_operations` must be stored in :c:type:`drm_driver.fops `.h](hThe driver’s }(hjohhhNhNubh)}(h:c:type:`file_operations`h]j)}(hjoh]hfile_operations}(hjohhhNhNubah}(h]h ](j j!c-typeeh"]h$]h&]uh1jhjoubah}(h]h ]h"]h$]h&]refdocj- refdomainj!reftypetype refexplicitrefwarnj j j3file_operationsuh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:146: ./drivers/gpu/drm/drm_file.chKqhjoubh must be stored in }(hjohhhNhNubh)}(h&:c:type:`drm_driver.fops `h]j)}(hjoh]hdrm_driver.fops}(hjohhhNhNubah}(h]h ](j j!c-typeeh"]h$]h&]uh1jhjoubah}(h]h ]h"]h$]h&]refdocj- refdomainj!reftypetype refexplicitrefwarnj j j3 drm_driveruh1hhjohKqhjoubh.}(hjohhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjohKqhjnhhubh)}(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 }(hjohhhNhNubh)}(hI:ref:`IOCTL support in the userland interfaces chapter`h]jY)}(hjph]h0IOCTL support in the userland interfaces chapter}(hjphhhNhNubah}(h]h ](j stdstd-refeh"]h$]h&]uh1jXhjoubah}(h]h ]h"]h$]h&]refdocj- refdomainj preftyperef refexplicitrefwarnj3drm_driver_ioctluh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:146: ./drivers/gpu/drm/drm_file.chKshjoubh.}(hjohhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjphKshjnhhubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jdrm_minor (C struct) c.drm_minorhNtauh1jhjnhhhY/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}(hjDphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@phhhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhKubj)}(h h]h }(hjRphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@phhhjQphKubj )}(h drm_minorh]j)}(hj>ph]h drm_minor}(hjdphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`pubah}(h]h ](j#j$eh"]h$]h&]jUjVuh1j hj@phhhjQphKubeh}(h]h ]h"]h$]h&]jUjVj.uh1jj/j0hj` 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 }(hj qhhhNhNubh)}(h$:c:type:`struct drm_file `h]j)}(hjqh]hstruct drm_file}(hjqhhhNhNubah}(h]h ](j j!c-typeeh"]h$]h&]uh1jhjqubah}(h]h ]h"]h$]h&]refdocj- refdomainj!reftypetype refexplicitrefwarnj j j3drm_fileuh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhKGhj qubh and of course }(hj qhhhNhNubh)}(h(:c:type:`struct drm_device `h]j)}(hj7qh]hstruct drm_device}(hj9qhhhNhNubah}(h]h ](j j!c-typeeh"]h$]h&]uh1jhj5qubah}(h]h ]h"]h$]h&]refdocj- refdomainj!reftypetype refexplicitrefwarnj j j3 drm_deviceuh1hhj0qhKGhj qubhK, which is also where driver-private data and resources can be attached to.}(hj qhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj0qhKGhjnhhubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jdrm_pending_event (C struct)c.drm_pending_eventhNtauh1jhjnhhhj8phNubj)}(hhh](j)}(hdrm_pending_eventh]j)}(hstruct drm_pending_eventh](j)}(hjh]hstruct}(hjwqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsqhhhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhKPubj)}(h h]h }(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsqhhhjqhKPubj )}(hdrm_pending_eventh]j)}(hjqqh]hdrm_pending_event}(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqubah}(h]h ](j#j$eh"]h$]h&]jUjVuh1j hjsqhhhjqhKPubeh}(h]h ]h"]h$]h&]jUjVj.uh1jj/j0hjoqhhhjqhKPubah}(h]jjqah ](j4j5eh"]h$]h&]j9j:)j;huh1jhjqhKPhjlqhhubj=)}(hhh]h)}(h%Event queued up for userspace to readh]h%Event queued up for userspace to read}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhKZhjqhhubah}(h]h ]h"]h$]h&]uh1j<hjlqhhhjqhKPubeh}(h]h ](j!structeh"]h$]h&]j]j!j^jqj_jqj`jajbuh1jhhhjnhj8phNubjd)}(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](jn)}(h**Definition**h]h Definition}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jmhjqubh:}(hjqhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhK^hjqubjF)}(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; };}hjqsbah}(h]h ]h"]h$]h&]jUjVuh1jEhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhK`hjqubh)}(h **Members**h]jn)}(hjrh]hMembers}(hj rhhhNhNubah}(h]h ]h"]h$]h&]uh1jmhjrubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhKjhjqubj)}(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)}(hj&rh]h completion}(hj(rhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj$rubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhKehj rubj)}(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.}(hj?rhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhKchj` where **event** should be delivered to. Only set when **event** is set. h](j)}(h ``file_priv``h]j)}(hjDsh]h file_priv}(hjFshhhNhNubah}(h]h ]h"]h$]h&]uh1jhjBsubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhKhj>subj)}(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)}(hjcsh]hstruct drm_file}(hjeshhhNhNubah}(h]h ](j j!c-typeeh"]h$]h&]uh1jhjasubah}(h]h ]h"]h$]h&]refdocj- refdomainj!reftypetype refexplicitrefwarnj j j3drm_fileuh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhKhj]subh where }(hj]shhhNhNubjn)}(h **event**h]hevent}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1jmhj]subh' should be delivered to. Only set when }(hj]shhhNhNubjn)}(h **event**h]hevent}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1jmhj]subh is set.}(hj]shhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjshKhjZsubah}(h]h ]h"]h$]h&]uh1jhj>subeh}(h]h ]h"]h$]h&]uh1jhjYshKhjrubj)}(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)}(hjsh]hlink}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1jhjsubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhKhjsubj)}(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.}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhKhjsubah}(h]h ]h"]h$]h&]uh1jhjsubeh}(h]h ]h"]h$]h&]uh1jhjshKhjrubj)}(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)}(hjsh]h pending_link}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1jhjsubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhKhjsubj)}(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 }(hjthhhNhNubh)}(h0:c:type:`drm_file.pending_event_list `h]j)}(hjth]hdrm_file.pending_event_list}(hj thhhNhNubah}(h]h ](j j!c-typeeh"]h$]h&]uh1jhjtubah}(h]h ]h"]h$]h&]refdocj- refdomainj!reftypetype refexplicitrefwarnj j j3drm_fileuh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhKhjtubh*, to keep track of all pending events for }(hjthhhNhNubjn)}(h **file_priv**h]h file_priv}(hj@thhhNhNubah}(h]h ]h"]h$]h&]uh1jmhjtubhb, to allow correct unwinding of them when userspace closes the file before the event is delivered.}(hjthhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj;thKhjtubah}(h]h ]h"]h$]h&]uh1jhjsubeh}(h]h ]h"]h$]h&]uh1jhjthKhjrubeh}(h]h ]h"]h$]h&]uh1jhjqubeh}(h]h ] kernelindentah"]h$]h&]uh1jchjnhhhj8phNubh)}(h**Description**h]jn)}(hjsth]h Description}(hjuthhhNhNubah}(h]h ]h"]h$]h&]uh1jmhjqtubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhKhjnhhubh)}(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 }(hjthhhNhNubh)}(h(:c:type:`struct completion `h]j)}(hjth]hstruct completion}(hjthhhNhNubah}(h]h ](j j!c-typeeh"]h$]h&]uh1jhjtubah}(h]h ]h"]h$]h&]refdocj- refdomainj!reftypetype refexplicitrefwarnj j j3 completionuh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhK[hjtubh, }(hjthhhNhNubh)}(h&:c:type:`struct dma_fence `h]j)}(hjth]hstruct dma_fence}(hjthhhNhNubah}(h]h ](j j!c-typeeh"]h$]h&]uh1jhjtubah}(h]h ]h"]h$]h&]refdocj- refdomainj!reftypetype refexplicitrefwarnj j j3 dma_fenceuh1hhjthK[hjtubh and also the DRM-specific }(hjthhhNhNubh)}(h&:c:type:`struct drm_event `h]j)}(hjth]hstruct drm_event}(hjthhhNhNubah}(h]h ](j j!c-typeeh"]h$]h&]uh1jhjtubah}(h]h ]h"]h$]h&]refdocj- refdomainj!reftypetype refexplicitrefwarnj j j3 drm_eventuh1hhjthK[hjtubh delivery mechanism.}(hjthhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjthK[hjnhhubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jdrm_file (C struct) c.drm_filehNtauh1jhjnhhhj8phNubj)}(hhh](j)}(hdrm_fileh]j)}(hstruct drm_fileh](j)}(hjh]hstruct}(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuhhhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhKbubj)}(h h]h }(hj(uhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuhhhj'uhKbubj )}(hdrm_fileh]j)}(hjuh]hdrm_file}(hj:uhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6uubah}(h]h ](j#j$eh"]h$]h&]jUjVuh1j hjuhhhj'uhKbubeh}(h]h ]h"]h$]h&]jUjVj.uh1jj/j0hjuhhhj'uhKbubah}(h]j uah ](j4j5eh"]h$]h&]j9j:)j;huh1jhj'uhKbhjuhhubj=)}(hhh]h)}(hDRM file private datah]hDRM file private data}(hj\uhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhKhjYuhhubah}(h]h ]h"]h$]h&]uh1j<hjuhhhj'uhKbubeh}(h]h ](j!structeh"]h$]h&]j]j!j^jtuj_jtuj`jajbuh1jhhhjnhj8phNubjd)}(hX**Definition**:: struct drm_file { bool authenticated; bool stereo_allowed; bool universal_planes; bool atomic; bool aspect_ratio_allowed; bool writeback_connectors; bool plane_color_pipeline; bool was_master; bool is_master; bool supports_virtualized_cursor_plane; struct drm_master *master; spinlock_t master_lookup_lock; struct pid *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 xarray syncobj_xa; 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 ``plane_color_pipeline`` True if client understands plane color pipelines ``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_xa`` Mapping of sync object handles to object pointers. ``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](jn)}(h**Definition**h]h Definition}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1jmhj|uubh:}(hj|uhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhKhjxuubjF)}(hXstruct drm_file { bool authenticated; bool stereo_allowed; bool universal_planes; bool atomic; bool aspect_ratio_allowed; bool writeback_connectors; bool plane_color_pipeline; bool was_master; bool is_master; bool supports_virtualized_cursor_plane; struct drm_master *master; spinlock_t master_lookup_lock; struct pid *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 xarray syncobj_xa; 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 plane_color_pipeline; bool was_master; bool is_master; bool supports_virtualized_cursor_plane; struct drm_master *master; spinlock_t master_lookup_lock; struct pid *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 xarray syncobj_xa; 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; };}hjusbah}(h]h ]h"]h$]h&]jUjVuh1jEhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhKhjxuubh)}(h **Members**h]jn)}(hjuh]hMembers}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1jmhjuubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhKhjxuubj)}(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)}(hjuh]h authenticated}(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)}(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.}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhKhjuubh)}(hSSee also the :ref:`section on primary nodes and authentication `.h](h See also the }(hjuhhhNhNubh)}(hE:ref:`section on primary nodes and authentication `h]jY)}(hjuh]h+section on primary nodes and authentication}(hjuhhhNhNubah}(h]h ](j stdstd-refeh"]h$]h&]uh1jXhjuubah}(h]h ]h"]h$]h&]refdocj- refdomainjvreftyperef refexplicitrefwarnj3drm_primary_nodeuh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhKhjuubh.}(hjuhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjvhKhjuubeh}(h]h ]h"]h$]h&]uh1jhjuubeh}(h]h ]h"]h$]h&]uh1jhjuhKhjuubj)}(hU``stereo_allowed`` True when the client has asked us to expose stereo 3D mode flags. h](j)}(h``stereo_allowed``h]j)}(hj6vh]hstereo_allowed}(hj8vhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj4vubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhKhj0vubj)}(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.}(hjOvhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjKvhKhjLvubah}(h]h ]h"]h$]h&]uh1jhj0vubeh}(h]h ]h"]h$]h&]uh1jhjKvhKhjuubj)}(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)}(hjovh]huniversal_planes}(hjqvhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjmvubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhKhjivubj)}(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 }(hjvhhhNhNubjn)}(h **atomic**h]hatomic}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jmhjvubh is set.}(hjvhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhKhjvubah}(h]h ]h"]h$]h&]uh1jhjivubeh}(h]h ]h"]h$]h&]uh1jhjvhKhjuubj)}(h9``atomic`` True if client understands atomic properties. h](j)}(h ``atomic``h]j)}(hjvh]hatomic}(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.hhKhjvubj)}(hhh]h)}(h-True if client understands atomic properties.h]h-True if client understands atomic properties.}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjvhKhjvubah}(h]h ]h"]h$]h&]uh1jhjvubeh}(h]h ]h"]h$]h&]uh1jhjvhKhjuubj)}(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)}(hjvh]haspect_ratio_allowed}(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.hhKhjvubj)}(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.}(hj whhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhKhj wubah}(h]h ]h"]h$]h&]uh1jhjvubeh}(h]h ]h"]h$]h&]uh1jhj whKhjuubj)}(hI``writeback_connectors`` True if client understands writeback connectors h](j)}(h``writeback_connectors``h]j)}(hj.wh]hwriteback_connectors}(hj0whhhNhNubah}(h]h ]h"]h$]h&]uh1jhj,wubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhKhj(wubj)}(hhh]h)}(h/True if client understands writeback connectorsh]h/True if client understands writeback connectors}(hjGwhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjCwhKhjDwubah}(h]h ]h"]h$]h&]uh1jhj(wubeh}(h]h ]h"]h$]h&]uh1jhjCwhKhjuubj)}(hJ``plane_color_pipeline`` True if client understands plane color pipelines h](j)}(h``plane_color_pipeline``h]j)}(hjgwh]hplane_color_pipeline}(hjiwhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjewubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhKhjawubj)}(hhh]h)}(h0True if client understands plane color pipelinesh]h0True if client understands plane color pipelines}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj|whKhj}wubah}(h]h ]h"]h$]h&]uh1jhjawubeh}(h]h ]h"]h$]h&]uh1jhj|whKhjuubj)}(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)}(hjwh]h was_master}(hjwhhhNhNubah}(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)}(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 }(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 refexplicitrefwarnj j j3 drm_deviceuh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhKhjwubh.}(hjwhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjwhKhjwubh)}(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.}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhKhjwubeh}(h]h ]h"]h$]h&]uh1jhjwubeh}(h]h ]h"]h$]h&]uh1jhjwhKhjuubj)}(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 xh]h is_master}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj xubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhKhjxubj)}(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 }(hj%xhhhNhNubjn)}(h **master**h]hmaster}(hj-xhhhNhNubah}(h]h ]h"]h$]h&]uh1jmhj%xubh. Protected by struct }(hj%xhhhNhNubh)}(h.:c:type:`drm_device.master_mutex `h]j)}(hjAxh]hdrm_device.master_mutex}(hjCxhhhNhNubah}(h]h ](j j!c-typeeh"]h$]h&]uh1jhj?xubah}(h]h ]h"]h$]h&]refdocj- refdomainj!reftypetype refexplicitrefwarnj j j3 drm_deviceuh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhKhj%xubh.}(hj%xhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj^xhKhj"xubh)}(hSSee also the :ref:`section on primary nodes and authentication `.h](h See also the }(hjixhhhNhNubh)}(hE:ref:`section on primary nodes and authentication `h]jY)}(hjsxh]h+section on primary nodes and authentication}(hjuxhhhNhNubah}(h]h ](j stdstd-refeh"]h$]h&]uh1jXhjqxubah}(h]h ]h"]h$]h&]refdocj- refdomainjxreftyperef refexplicitrefwarnj3drm_primary_nodeuh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhKhjixubh.}(hjixhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjxhKhj"xubeh}(h]h ]h"]h$]h&]uh1jhjxubeh}(h]h ]h"]h$]h&]uh1jhj!xhKhjuubj)}(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)}(hjxh]h!supports_virtualized_cursor_plane}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjxubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhKhjxubj)}(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.}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhKhjxubh)}(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.}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhKhjxubeh}(h]h ]h"]h$]h&]uh1jhjxubeh}(h]h ]h"]h$]h&]uh1jhjxhKhjuubj)}(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)}(hjxh]hmaster}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjxubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhMhjxubj)}(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 }(hjyhhhNhNubh)}(h.:c:type:`drm_device.master_mutex `h]j)}(hjyh]hdrm_device.master_mutex}(hjyhhhNhNubah}(h]h ](j j!c-typeeh"]h$]h&]uh1jhjyubah}(h]h ]h"]h$]h&]refdocj- refdomainj!reftypetype refexplicitrefwarnj j j3 drm_deviceuh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhKhjyubh, and serialized by }(hjyhhhNhNubjn)}(h**master_lookup_lock**h]hmaster_lookup_lock}(hj` if the master is the currently active one.h](hSOnly relevant if drm_is_primary_client() returns true. Note that this only matches }(hjTyhhhNhNubh)}(h(:c:type:`drm_device.master `h]j)}(hj^yh]hdrm_device.master}(hj`yhhhNhNubah}(h]h ](j j!c-typeeh"]h$]h&]uh1jhj\yubah}(h]h ]h"]h$]h&]refdocj- refdomainj!reftypetype refexplicitrefwarnj j j3 drm_deviceuh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhMhjTyubh+ if the master is the currently active one.}(hjTyhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj{yhMhj yubh)}(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 }(hjyhhhNhNubjn)}(h **master**h]hmaster}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jmhjyubh, both }(hjyhhhNhNubh)}(h.:c:type:`drm_device.master_mutex `h]j)}(hjyh]hdrm_device.master_mutex}(hjyhhhNhNubah}(h]h ](j j!c-typeeh"]h$]h&]uh1jhjyubah}(h]h ]h"]h$]h&]refdocj- refdomainj!reftypetype refexplicitrefwarnj j j3 drm_deviceuh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhMhjyubh and }(hjyhhhNhNubjn)}(h**master_lookup_lock**h]hmaster_lookup_lock}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jmhjyubhX need to be held, therefore holding either of them is safe and enough for the read side.}(hjyhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjyhMhj yubh)}(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 }(hjyhhhNhNubh)}(h.:c:type:`drm_device.master_mutex `h]j)}(hjyh]hdrm_device.master_mutex}(hjyhhhNhNubah}(h]h ](j j!c-typeeh"]h$]h&]uh1jhjyubah}(h]h ]h"]h$]h&]refdocj- refdomainj!reftypetype refexplicitrefwarnj j j3 drm_deviceuh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhMhjyubhQ for the duration of the pointer’s use, or use drm_file_get_master() if struct }(hjyhhhNhNubh)}(h.:c:type:`drm_device.master_mutex `h]j)}(hj zh]hdrm_device.master_mutex}(hj zhhhNhNubah}(h]h ](j j!c-typeeh"]h$]h&]uh1jhjzubah}(h]h ]h"]h$]h&]refdocj- refdomainj!reftypetype refexplicitrefwarnj j j3 drm_deviceuh1hhjzhMhjyubhL is not currently held and there is no other need to hold it. This prevents }(hjyhhhNhNubjn)}(h **master**h]hmaster}(hj+zhhhNhNubah}(h]h ]h"]h$]h&]uh1jmhjyubh from being freed during use.}(hjyhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjzhMhj yubh)}(h|See also **authentication** and **is_master** and the :ref:`section on primary nodes and authentication `.h](h See also }(hjCzhhhNhNubjn)}(h**authentication**h]hauthentication}(hjKzhhhNhNubah}(h]h ]h"]h$]h&]uh1jmhjCzubh and }(hjCzhhhNhNubjn)}(h **is_master**h]h is_master}(hj]zhhhNhNubah}(h]h ]h"]h$]h&]uh1jmhjCzubh and the }(hjCzhhhNhNubh)}(hE:ref:`section on primary nodes and authentication `h]jY)}(hjqzh]h+section on primary nodes and authentication}(hjszhhhNhNubah}(h]h ](j stdstd-refeh"]h$]h&]uh1jXhjozubah}(h]h ]h"]h$]h&]refdocj- refdomainj}zreftyperef refexplicitrefwarnj3drm_primary_nodeuh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhMhjCzubh.}(hjCzhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjzhMhj yubeh}(h]h ]h"]h$]h&]uh1jhjxubeh}(h]h ]h"]h$]h&]uh1jhj yhMhjuubj)}(h.``master_lookup_lock`` Serializes **master**. h](j)}(h``master_lookup_lock``h]j)}(hjzh]hmaster_lookup_lock}(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.hhMhjzubj)}(hhh]h)}(hSerializes **master**.h](h Serializes }(hjzhhhNhNubjn)}(h **master**h]hmaster}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1jmhjzubh.}(hjzhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjzhMhjzubah}(h]h ]h"]h$]h&]uh1jhjzubeh}(h]h ]h"]h$]h&]uh1jhjzhMhjuubj)}(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)}(hjzh]hpid}(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.hhMhjzubj)}(hhh](h)}(h Process that is using this file.h]h Process that is using this file.}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhMhj {ubh)}(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.}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhMhj {ubh)}(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.}(hj.{hhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhMhj {ubeh}(h]h ]h"]h$]h&]uh1jhjzubeh}(h]h ]h"]h$]h&]uh1jhj {hMhjuubj)}(h%``client_id`` A unique id for fdinfo h](j)}(h ``client_id``h]j)}(hjO{h]h client_id}(hjQ{hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjM{ubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhM"hjI{ubj)}(hhh]h)}(hA unique id for fdinfoh]hA unique id for fdinfo}(hjh{hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjd{hM"hje{ubah}(h]h ]h"]h$]h&]uh1jhjI{ubeh}(h]h ]h"]h$]h&]uh1jhjd{hM"hjuubj)}(h7``magic`` Authentication magic, see **authenticated**. h](j)}(h ``magic``h]j)}(hj{h]hmagic}(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)}(h,Authentication magic, see **authenticated**.h](hAuthentication magic, see }(hj{hhhNhNubjn)}(h**authenticated**h]h authenticated}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1jmhj{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%hjuubj)}(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)}(hj{h]hlhead}(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)}(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{hhhNhNubh)}(h*:c:type:`drm_device.filelist `h]j)}(hj{h]hdrm_device.filelist}(hj{hhhNhNubah}(h]h ](j j!c-typeeh"]h$]h&]uh1jhj{ubah}(h]h ]h"]h$]h&]refdocj- refdomainj!reftypetype refexplicitrefwarnj j j3 drm_deviceuh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhM)hj{ubh. Protected by }(hj{hhhNhNubh)}(h0:c:type:`drm_device.filelist_mutex `h]j)}(hj|h]hdrm_device.filelist_mutex}(hj|hhhNhNubah}(h]h ](j j!c-typeeh"]h$]h&]uh1jhj|ubah}(h]h ]h"]h$]h&]refdocj- refdomainj!reftypetype refexplicitrefwarnj j j3 drm_deviceuh1hhj|hM)hj{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*hjuubj)}(h@``minor`` :c:type:`struct drm_minor ` for this file. h](j)}(h ``minor``h]j)}(hjS|h]hminor}(hjU|hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjQ|ubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhM0hjM|ubj)}(hhh]h)}(h5:c:type:`struct drm_minor ` for this file.h](h)}(h&:c:type:`struct drm_minor `h]j)}(hjr|h]hstruct drm_minor}(hjt|hhhNhNubah}(h]h ](j j!c-typeeh"]h$]h&]uh1jhjp|ubah}(h]h ]h"]h$]h&]refdocj- refdomainj!reftypetype refexplicitrefwarnj j j3 drm_minoruh1hhjh|hM0hjl|ubh for this file.}(hjl|hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjh|hM0hji|ubah}(h]h ]h"]h$]h&]uh1jhjM|ubeh}(h]h ]h"]h$]h&]uh1jhjh|hM0hjuubj)}(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.hhM8hj|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 }(hj|hhhNhNubjn)}(h**table_lock**h]h table_lock}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1jmhj|ubh.}(hj|hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhM4hj|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.}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhM7hj|ubeh}(h]h ]h"]h$]h&]uh1jhj|ubeh}(h]h ]h"]h$]h&]uh1jhj|hM8hjuubj)}(h(``table_lock`` Protects **object_idr**. h](j)}(h``table_lock``h]j)}(hj}h]h 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 **object_idr**.h](h Protects }(hj}hhhNhNubjn)}(h**object_idr**h]h object_idr}(hj'}hhhNhNubah}(h]h ]h"]h$]h&]uh1jmhj}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>hjuubj)}(hB``syncobj_xa`` Mapping of sync object handles to object pointers. h](j)}(h``syncobj_xa``h]j)}(hjQ}h]h syncobj_xa}(hjS}hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjO}ubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhMAhjK}ubj)}(hhh]h)}(h2Mapping of sync object handles to object pointers.h]h2Mapping of sync object handles to object pointers.}(hjj}hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjf}hMAhjg}ubah}(h]h ]h"]h$]h&]uh1jhjK}ubeh}(h]h ]h"]h$]h&]uh1jhjf}hMAhjuubj)}(h-``filp`` Pointer to the core file structure. h](j)}(h``filp``h]j)}(hj}h]hfilp}(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.hhMDhj}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}hMDhj}ubah}(h]h ]h"]h$]h&]uh1jhj}ubeh}(h]h ]h"]h$]h&]uh1jhj}hMDhjuubj)}(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.hhMIhj}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 refexplicitrefwarnj j j3 drm_driveruh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhMHhj}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 refexplicitrefwarnj j j3 drm_driveruh1hhj~hMHhj}ubh.}(hj}hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj~hMHhj}ubah}(h]h ]h"]h$]h&]uh1jhj}ubeh}(h]h ]h"]h$]h&]uh1jhj}hMIhjuubj)}(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)}(hjC~h]hfbs}(hjE~hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjA~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)}(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)}(hjf~h]hstruct drm_framebuffer}(hjh~hhhNhNubah}(h]h ](j j!c-typeeh"]h$]h&]uh1jhjd~ubah}(h]h ]h"]h$]h&]refdocj- refdomainj!reftypetype refexplicitrefwarnj j j3drm_framebufferuh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhMPhj\~ubh& associated with this file, using the }(hj\~hhhNhNubh)}(h5:c:type:`drm_framebuffer.filp_head `h]j)}(hj~h]hdrm_framebuffer.filp_head}(hj~hhhNhNubah}(h]h ](j j!c-typeeh"]h$]h&]uh1jhj~ubah}(h]h ]h"]h$]h&]refdocj- refdomainj!reftypetype refexplicitrefwarnj j j3drm_framebufferuh1hhj~hMPhj\~ubh entry.}(hj\~hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj~hMPhjY~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 }(hj~hhhNhNubjn)}(h **fbs_lock**h]hfbs_lock}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1jmhj~ubh. Note that the }(hj~hhhNhNubjn)}(h**fbs**h]hfbs}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1jmhj~ubh[ list holds a reference on the framebuffer object to prevent it from untimely disappearing.}(hj~hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhMShjY~ubeh}(h]h ]h"]h$]h&]uh1jhj=~ubeh}(h]h ]h"]h$]h&]uh1jhjX~hMThjuubj)}(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.hhMZhj~ubj)}(hhh]h)}(hProtects **fbs**.h](h Protects }(hjhhhNhNubjn)}(h**fbs**h]hfbs}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jmhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj hMZhj ubah}(h]h ]h"]h$]h&]uh1jhj~ubeh}(h]h ]h"]h$]h&]uh1jhj hMZhjuubj)}(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)}(hjAh]hblobs}(hjChhhNhNubah}(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.hhMahj;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.}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhM^hjWubh)}(h+Protected by **drm_mode_config.blob_lock**;h](h Protected by }(hjihhhNhNubjn)}(h**drm_mode_config.blob_lock**h]hdrm_mode_config.blob_lock}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jmhjiubh;}(hjihhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjVhMahjWubeh}(h]h ]h"]h$]h&]uh1jhj;ubeh}(h]h ]h"]h$]h&]uh1jhjVhMahjuubj)}(hA``event_wait`` Waitqueue for new events added to **event_list**. h](j)}(h``event_wait``h]j)}(hjh]h event_wait}(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.hhMghjubj)}(hhh]h)}(h1Waitqueue for new events added to **event_list**.h](h"Waitqueue for new events added to }(hjhhhNhNubjn)}(h**event_list**h]h event_list}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jmhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMghjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMghjuubj)}(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)}(hjh]hpending_event_list}(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.hhMohjubj)}(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 }(hjhhhNhNubh)}(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&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj- refdomainj!reftypetype refexplicitrefwarnj j j3drm_pending_eventuh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhMkhjubhh, used to clean up pending events in case this file gets closed before the event is signalled. Uses the }(hjhhhNhNubh)}(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 refexplicitrefwarnj j j3drm_pending_eventuh1hhj&hMkhjubh entry.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj&hMkhjubh)}(h8Protect by :c:type:`drm_device.event_lock `.h](h Protect by }(hjThhhNhNubh)}(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 refexplicitrefwarnj j j3 drm_deviceuh1hhjhMohjTubh.}(hjThhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMohjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMohjuubj)}(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)}(hjh]h event_list}(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.hhMyhjubj)}(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 }(hjhhhNhNubh)}(h6:c:type:`struct drm_pending_event `h]j)}(hjh]hstruct drm_pending_event}(hjhhhNhNubah}(h]h ](j j!c-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj- refdomainj!reftypetype refexplicitrefwarnj j j3drm_pending_eventuh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhMvhjubh?, ready for delivery to userspace through drm_read(). Uses the }(hjhhhNhNubh)}(h4:c:type:`drm_pending_event.link `h]j)}(hjހh]hdrm_pending_event.link}(hjhhhNhNubah}(h]h ](j j!c-typeeh"]h$]h&]uh1jhj܀ubah}(h]h ]h"]h$]h&]refdocj- refdomainj!reftypetype refexplicitrefwarnj j j3drm_pending_eventuh1hhj׀hMvhjubh entry.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj׀hMvhjubh)}(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&]uh1jhj ubah}(h]h ]h"]h$]h&]refdocj- refdomainj!reftypetype refexplicitrefwarnj j j3 drm_deviceuh1hhjhMyhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMyhjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMyhjuubj)}(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)}(hjHh]h event_space}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjFubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhMhjBubj)}(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.}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhMhj^ubah}(h]h ]h"]h$]h&]uh1jhjBubeh}(h]h ]h"]h$]h&]uh1jhj]hMhjuubj)}(h+``event_read_lock`` Serializes drm_read(). h](j)}(h``event_read_lock``h]j)}(hjh]hevent_read_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.hhMhj|ubj)}(hhh]h)}(hSerializes drm_read().h]hSerializes drm_read().}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhj|ubeh}(h]h ]h"]h$]h&]uh1jhjhMhjuubj)}(hH``prime`` Per-file buffer caches used by the PRIME buffer sharing code. h](j)}(h ``prime``h]j)}(hjh]hprime}(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=Per-file buffer caches used by the PRIME buffer sharing code.h]h=Per-file buffer caches used by the PRIME buffer sharing code.}(hjԁhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjЁhMhjсubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjЁhMhjuubj)}(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 hMhjuubj)}(h/``client_name_lock`` Protects **client_name**. h](j)}(h``client_name_lock``h]j)}(hj-h]hclient_name_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.hhMhj'ubj)}(hhh]h)}(hProtects **client_name**.h](h Protects }(hjFhhhNhNubjn)}(h**client_name**h]h client_name}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jmhjFubh.}(hjFhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjBhMhjCubah}(h]h ]h"]h$]h&]uh1jhj'ubeh}(h]h ]h"]h$]h&]uh1jhjBhMhjuubj)}(hF``debugfs_client`` debugfs directory for each client under a drm node.h](j)}(h``debugfs_client``h]j)}(hjxh]hdebugfs_client}(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)}(h3debugfs directory for each client under a drm node.h]h3debugfs directory for each client under a drm node.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhMhjubah}(h]h ]h"]h$]h&]uh1jhjrubeh}(h]h ]h"]h$]h&]uh1jhjhMhjuubeh}(h]h ]h"]h$]h&]uh1jhjxuubeh}(h]h ] kernelindentah"]h$]h&]uh1jchjnhhhj8phNubh)}(h**Description**h]jn)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jmhjubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhMhjnhhubh)}(h9This structure tracks DRM state per open file descriptor.h]h9This structure tracks DRM state per open file descriptor.}(hjтhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhKhjnhhubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j"drm_is_primary_client (C function)c.drm_is_primary_clienthNtauh1jhjnhhhj8phNubj)}(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]jn)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jmhjubah}(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)}(hjh]h const struct drm_file *file_priv}(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)}(hDRM fileh]hDRM file}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj)hMhj*ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj)hMhj ubah}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]jn)}(hjOh]h Description}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jmhjMubah}(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. }(hjehhhNhNubh)}(h#:c:type:`drm_file.minor `h]j)}(hjoh]hdrm_file.minor}(hjqhhhNhNubah}(h]h ](j j!c-typeeh"]h$]h&]uh1jhjmubah}(h]h ]h"]h$]h&]refdocj- refdomainj!reftypetype refexplicitrefwarnj j j3drm_fileuh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhMhjeubh of }(hjehhhNhNubjn)}(h **file_priv**h]h file_priv}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jmhjeubh is a primary minor.}(hjehhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMhjubh)}(hSSee also the :ref:`section on primary nodes and authentication `.h](h See also the }(hjhhhNhNubh)}(hE:ref:`section on primary nodes and authentication `h]jY)}(hjh]h+section on primary nodes and authentication}(hjhhhNhNubah}(h]h ](j stdstd-refeh"]h$]h&]uh1jXhjubah}(h]h ]h"]h$]h&]refdocj- refdomainjreftyperef refexplicitrefwarnj3drm_primary_nodeuh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhMhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjфhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jchjnhhhj8phNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j!drm_is_render_client (C function)c.drm_is_render_clienthNtauh1jhjnhhhj8phNubj)}(hhh](j)}(h` of **file_priv** is a render minor. See also the :ref:`section on render nodes `.h](h)}(h**Parameters**h]jn)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jmhjubah}(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)}(hjh]h const struct drm_file *file_priv}(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)}(hDRM fileh]hDRM file}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj,hMhj-ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj,hMhjubah}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]jn)}(hjRh]h Description}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1jmhjPubah}(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. }(hjhhhhNhNubh)}(h#:c:type:`drm_file.minor `h]j)}(hjrh]hdrm_file.minor}(hjthhhNhNubah}(h]h ](j j!c-typeeh"]h$]h&]uh1jhjpubah}(h]h ]h"]h$]h&]refdocj- refdomainj!reftypetype refexplicitrefwarnj j j3drm_fileuh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhMhjhubh of }(hjhhhhNhNubjn)}(h **file_priv**h]h file_priv}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jmhjhubh is a render minor.}(hjhhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMhjubh)}(h>See also the :ref:`section on render nodes `.h](h See also the }(hjhhhNhNubh)}(h0:ref:`section on render nodes `h]jY)}(hjh]hsection on render nodes}(hjhhhNhNubah}(h]h ](j stdstd-refeh"]h$]h&]uh1jXhjubah}(h]h ]h"]h$]h&]refdocj- refdomainj†reftyperef refexplicitrefwarnj3drm_render_nodeuh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhMhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjԆhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jchjnhhhj8phNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j drm_is_accel_client (C function)c.drm_is_accel_clienthNtauh1jhjnhhhj8phNubj)}(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](j))}(hj)h]hbool}(hjhhhNhNubah}(h]h ]j)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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](j#j$eh"]h$]h&]jUjVuh1j hjhhhj hMubj)}(h"(const struct drm_file *file_priv)h]j)}(h const struct drm_file *file_privh](j)}(hj+h]hconst}(hj;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7ubj)}(h h]h }(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7ubj)}(hjh]hstruct}(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7ubj)}(h h]h }(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7ubh)}(hhh]j)}(hdrm_fileh]hdrm_file}(hjthhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqubah}(h]h ]h"]h$]h&] refdomainj!reftypej reftargetjvmodnameN classnameNj j )}j ]j)}jj!sbc.drm_is_accel_clientasbuh1hhj7ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7ubj)}(h file_privh]h file_priv}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7ubeh}(h]h ]h"]h$]h&]noemphjUjVuh1jhj3ubah}(h]h ]h"]h$]h&]jUjVuh1jhjhhhj hMubeh}(h]h ]h"]h$]h&]jUjVj.uh1jj/j0hjhhhj hMubah}(h]jah ](j4j5eh"]h$]h&]j9j:)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}(hjهhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhMhjևhhubah}(h]h ]h"]h$]h&]uh1j<hjhhhj hMubeh}(h]h ](j!functioneh"]h$]h&]j]j!j^jj_jj`jajbuh1jhhhjnhj8phNubjd)}(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]jn)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jmhjubah}(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)}(hjh]h const struct drm_file *file_priv}(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)}(hDRM fileh]hDRM file}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj/hMhj0ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj/hMhjubah}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]jn)}(hjUh]h Description}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jmhjSubah}(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. }(hjkhhhNhNubh)}(h#:c:type:`drm_file.minor `h]j)}(hjuh]hdrm_file.minor}(hjwhhhNhNubah}(h]h ](j j!c-typeeh"]h$]h&]uh1jhjsubah}(h]h ]h"]h$]h&]refdocj- refdomainj!reftypetype refexplicitrefwarnj j j3drm_fileuh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhMhjkubh of }(hjkhhhNhNubjn)}(h **file_priv**h]h file_priv}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jmhjkubh is a accel minor.}(hjkhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMhjubh)}(hUSee also :doc:`Introduction to compute accelerators subsystem `.h](h See also }(hjhhhNhNubh)}(hK:doc:`Introduction to compute accelerators subsystem `h]jY)}(hjh]h.Introduction to compute accelerators subsystem}(hjhhhNhNubah}(h]h ](j stdstd-doceh"]h$]h&]uh1jXhjubah}(h]h ]h"]h$]h&]refdocj- refdomainjňreftypedoc refexplicitrefwarnj3/accel/introductionuh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhMhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj׈hMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jchjnhhhj8phNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jdrm_memory_stats (C struct)c.drm_memory_statshNtauh1jhjnhhhj8phNubj)}(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 }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubj )}(hdrm_memory_statsh]j)}(hjh]hdrm_memory_stats}(hj"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](j#j$eh"]h$]h&]jUjVuh1j hjhhhjhMubeh}(h]h ]h"]h$]h&]jUjVj.uh1jj/j0hjhhhjhMubah}(h]jah ](j4j5eh"]h$]h&]j9j:)j;huh1jhjhMhjhhubj=)}(hhh]h)}(hGEM object stats associatedh]hGEM object stats associated}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhMhjAhhubah}(h]h ]h"]h$]h&]uh1j<hjhhhjhMubeh}(h]h ](j!structeh"]h$]h&]j]j!j^j\j_j\j`jajbuh1jhhhjnhj8phNubjd)}(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](jn)}(h**Definition**h]h Definition}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1jmhjdubh:}(hjdhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhMhj`ubjF)}(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; };}hjsbah}(h]h ]h"]h$]h&]jUjVuh1jEhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhMhj`ubh)}(h **Members**h]jn)}(hjh]hMembers}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jmhjubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhMhj`ubj)}(hhh](j)}(h>``shared`` Total size of GEM objects shared between processes h](j)}(h ``shared``h]j)}(hjh]hshared}(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)}(h2Total size of GEM objects shared between processesh]h2Total size of GEM objects shared between processes}(hjʉhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjƉhMhjljubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjƉhMhjubj)}(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&]uh1jhjhMhjubj)}(h5``resident`` Total size of GEM objects backing pages h](j)}(h ``resident``h]j)}(hj#h]hresident}(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.hhMhjubj)}(hhh]h)}(h'Total size of GEM objects backing pagesh]h'Total size of GEM objects backing pages}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj8hMhj9ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj8hMhjubj)}(hU``purgeable`` Total size of GEM objects that can be purged (resident and not active) h](j)}(h ``purgeable``h]j)}(hj\h]h purgeable}(hj^hhhNhNubah}(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.hhMhjVubj)}(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)}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjqhMhjrubah}(h]h ]h"]h$]h&]uh1jhjVubeh}(h]h ]h"]h$]h&]uh1jhjqhMhjubj)}(hB``active`` Total size of GEM objects active on one or more enginesh](j)}(h ``active``h]j)}(hjh]hactive}(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)}(h7Total size of GEM objects active on one or more enginesh]h7Total size of GEM objects active on one or more engines}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(h]h ]h"]h$]h&]uh1jhj`ubeh}(h]h ] kernelindentah"]h$]h&]uh1jchjnhhhj8phNubh)}(h**Description**h]jn)}(hj؊h]h Description}(hjڊhhhNhNubah}(h]h ]h"]h$]h&]uh1jmhj֊ubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhMhjnhhubh)}(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.hhMhjnhhubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jdrm_open (C function) c.drm_openhNtauh1jhjnhhhNhNubj)}(hhh](j)}(h5int drm_open (struct inode *inode, struct file *filp)h]j)}(h4int drm_open(struct inode *inode, struct file *filp)h](j))}(hinth]hint}(hjhhhNhNubah}(h]h ]j)ah"]h$]h&]uh1j)hjhhh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chMfubj)}(h h]h }(hj%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhj$hMfubj )}(hdrm_openh]j)}(hdrm_openh]hdrm_open}(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubah}(h]h ](j#j$eh"]h$]h&]jUjVuh1j hjhhhj$hMfubj)}(h((struct inode *inode, struct file *filp)h](j)}(hstruct inode *inodeh](j)}(hjh]hstruct}(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOubj)}(h h]h }(hj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOubh)}(hhh]j)}(hinodeh]hinode}(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnubah}(h]h ]h"]h$]h&] refdomainj!reftypej reftargetjsmodnameN classnameNj j )}j ]j)}jj9sb c.drm_openasbuh1hhjOubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOubj)}(hinodeh]hinode}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOubeh}(h]h ]h"]h$]h&]noemphjUjVuh1jhjKubj)}(hstruct file *filph](j)}(hjh]hstruct}(hjŋhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjҋhhhNhNubah}(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 classnameNj j )}j ]j c.drm_openasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hfilph]hfilp}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjUjVuh1jhjKubeh}(h]h ]h"]h$]h&]jUjVuh1jhjhhhj$hMfubeh}(h]h ]h"]h$]h&]jUjVj.uh1jj/j0hjhhhj$hMfubah}(h]j ah ](j4j5eh"]h$]h&]j9j:)j;huh1jhj$hMfhj hhubj=)}(hhh]h)}(hopen method for DRM fileh]hopen method for DRM file}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chMfhjChhubah}(h]h ]h"]h$]h&]uh1j<hj hhhj$hMfubeh}(h]h ](j!functioneh"]h$]h&]j]j!j^j^j_j^j`jajbuh1jhhhjnhNhNubjd)}(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]jn)}(hjhh]h Parameters}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1jmhjfubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chMjhjbubj)}(hhh](j)}(h%``struct inode *inode`` device inode h](j)}(h``struct inode *inode``h]j)}(hjh]hstruct inode *inode}(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.chMghjubj)}(hhh]h)}(h device inodeh]h device inode}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMghjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMghj~ubj)}(h$``struct file *filp`` file pointer. h](j)}(h``struct file *filp``h]j)}(hjh]hstruct file *filp}(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.chMhhjubj)}(hhh]h)}(h file pointer.h]h file pointer.}(hjٌhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjՌhMhhj֌ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjՌhMhhj~ubeh}(h]h ]h"]h$]h&]uh1jhjbubh)}(h**Description**h]jn)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jmhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chMjhjbubh)}(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 }(hjhhhNhNubh)}(h0:c:type:`file_operations.open `h]j)}(hjh]hfile_operations.open}(hjhhhNhNubah}(h]h ](j j!c-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj- refdomainj!reftypetype refexplicitrefwarnj j j3file_operationsuh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chMihjubhr method. It looks up the correct DRM device and instantiates all the per-file resources for it. It also calls the }(hjhhhNhNubh)}(h&:c:type:`drm_driver.open `h]j)}(hj?h]hdrm_driver.open}(hjAhhhNhNubah}(h]h ](j j!c-typeeh"]h$]h&]uh1jhj=ubah}(h]h ]h"]h$]h&]refdocj- refdomainj!reftypetype refexplicitrefwarnj j j3 drm_driveruh1hhj8hMihjubh driver callback.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj8hMihjbubh)}(h **Return**h]jn)}(hjhh]hReturn}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1jmhjfubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chMmhjbubh)}(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.chMnhjbubeh}(h]h ] kernelindentah"]h$]h&]uh1jchjnhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jdrm_release (C function) c.drm_releasehNtauh1jhjnhhhNhNubj)}(hhh](j)}(h8int drm_release (struct inode *inode, struct file *filp)h]j)}(h7int drm_release(struct inode *inode, struct file *filp)h](j))}(hinth]hint}(hjhhhNhNubah}(h]h ]j)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 )}(h drm_releaseh]j)}(h drm_releaseh]h drm_release}(hj΍hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjʍubah}(h]h ](j#j$eh"]h$]h&]jUjVuh1j hjhhhjhMubj)}(h((struct inode *inode, struct file *filp)h](j)}(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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj!reftypej reftargetj modnameN classnameNj j )}j ]j)}jjЍsb c.drm_releaseasbuh1hhjubj)}(h h]h }(hj(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hinodeh]hinode}(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjUjVuh1jhjubj)}(hstruct file *filph](j)}(hjh]hstruct}(hj\hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjXubj)}(h h]h }(hjihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjXubh)}(hhh]j)}(hfileh]hfile}(hjzhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjwubah}(h]h ]h"]h$]h&] refdomainj!reftypej reftargetj|modnameN classnameNj j )}j ]j$ c.drm_releaseasbuh1hhjXubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjXubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjXubj)}(hfilph]hfilp}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjXubeh}(h]h ]h"]h$]h&]noemphjUjVuh1jhjubeh}(h]h ]h"]h$]h&]jUjVuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jUjVj.uh1jj/j0hjhhhjhMubah}(h]jah ](j4j5eh"]h$]h&]j9j:)j;huh1jhjhMhjhhubj=)}(hhh]h)}(hrelease method for DRM fileh]hrelease 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.chMhjڎhhubah}(h]h ]h"]h$]h&]uh1j<hjhhhjhMubeh}(h]h ](j!functioneh"]h$]h&]j]j!j^jj_jj`jajbuh1jhhhjnhNhNubjd)}(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]jn)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jmhjubah}(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)}(hjh]hstruct inode *inode}(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)}(h device inodeh]h device inode}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj3hMhj4ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj3hMhjubj)}(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 pointer.h]h file pointer.}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1hhjlhMhjmubah}(h]h ]h"]h$]h&]uh1jhjQubeh}(h]h ]h"]h$]h&]uh1jhjlhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]jn)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jmhjubah}(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 }(hjhhhNhNubh)}(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 refexplicitrefwarnj j j3file_operationsuh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chMhjubh 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.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjϏhMhjubh)}(h **Return**h]jn)}(hj܏h]hReturn}(hjޏhhhNhNubah}(h]h ]h"]h$]h&]uh1jmhjڏubah}(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&]uh1jchjnhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j!drm_release_noglobal (C function)c.drm_release_noglobalhNtauh1jhjnhhhNhNubj)}(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](j))}(hinth]hint}(hj!hhhNhNubah}(h]h ]j)ah"]h$]h&]uh1j)hjhhh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chMubj)}(h h]h }(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhj/hMubj )}(hdrm_release_noglobalh]j)}(hdrm_release_noglobalh]hdrm_release_noglobal}(hjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>ubah}(h]h ](j#j$eh"]h$]h&]jUjVuh1j hjhhhj/hMubj)}(h((struct inode *inode, struct file *filp)h](j)}(hstruct inode *inodeh](j)}(hjh]hstruct}(hj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZubj)}(h h]h }(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZubh)}(hhh]j)}(hinodeh]hinode}(hj|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyubah}(h]h ]h"]h$]h&] refdomainj!reftypej reftargetj~modnameN classnameNj j )}j ]j)}jjDsbc.drm_release_noglobalasbuh1hhjZubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZubj)}(hinodeh]hinode}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZubeh}(h]h ]h"]h$]h&]noemphjUjVuh1jhjVubj)}(hstruct file *filph](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 classnameNj j )}j ]jc.drm_release_noglobalasbuh1hhj̐ubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj̐ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj̐ubj)}(hfilph]hfilp}(hj'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj̐ubeh}(h]h ]h"]h$]h&]noemphjUjVuh1jhjVubeh}(h]h ]h"]h$]h&]jUjVuh1jhjhhhj/hMubeh}(h]h ]h"]h$]h&]jUjVj.uh1jj/j0hjhhhj/hMubah}(h]jah ](j4j5eh"]h$]h&]j9j:)j;huh1jhj/hMhjhhubj=)}(hhh]h)}(hrelease method for DRM fileh]hrelease method for DRM file}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chMhjNhhubah}(h]h ]h"]h$]h&]uh1j<hjhhhj/hMubeh}(h]h ](j!functioneh"]h$]h&]j]j!j^jij_jij`jajbuh1jhhhjnhNhNubjd)}(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]jn)}(hjsh]h Parameters}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1jmhjqubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chMhjmubj)}(hhh](j)}(h%``struct inode *inode`` device inode h](j)}(h``struct inode *inode``h]j)}(hjh]hstruct inode *inode}(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 device inodeh]h device inode}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(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&]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 file pointer.h]h file pointer.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjőubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(h]h ]h"]h$]h&]uh1jhjmubh)}(h**Description**h]jn)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jmhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chMhjmubh)}(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 }(hjhhhNhNubh)}(h3:c:type:`file_operations.release `h]j)}(hj&h]hfile_operations.release}(hj(hhhNhNubah}(h]h ](j j!c-typeeh"]h$]h&]uh1jhj$ubah}(h]h ]h"]h$]h&]refdocj- refdomainj!reftypetype refexplicitrefwarnj j j3file_operationsuh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chMhjubh 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.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjChMhjmubh)}(h **Return**h]jn)}(hjPh]hReturn}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jmhjNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chMhjmubh)}(hAlways succeeds and returns 0.h]hAlways succeeds and returns 0.}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chMhjmubeh}(h]h ] kernelindentah"]h$]h&]uh1jchjnhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jdrm_read (C function) c.drm_readhNtauh1jhjnhhhNhNubj)}(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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj!reftypej reftargetjmodnameN classnameNj j )}j ]j)}jdrm_readsb c.drm_readasbuh1hhjhhh]/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_readh]j)}(hjh]hdrm_read}(hj̒hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjȒubah}(h]h ](j#j$eh"]h$]h&]jUjVuh1j hjhhhjhMubj)}(hF(struct file *filp, char __user *buffer, size_t count, loff_t *offset)h](j)}(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 classnameNj j )}j ]j c.drm_readasbuh1hhjubj)}(h h]h }(hj#hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hfilph]hfilp}(hj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjUjVuh1jhjߒubj)}(hchar __user *bufferh](j))}(hcharh]hchar}(hjWhhhNhNubah}(h]h ]j)ah"]h$]h&]uh1j)hjSubj)}(h h]h }(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSubh__user}(hjShhhNhNubj)}(h h]h }(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSubj)}(hbufferh]hbuffer}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSubeh}(h]h ]h"]h$]h&]noemphjUjVuh1jhjߒubj)}(h size_t counth](h)}(hhh]j)}(hsize_th]hsize_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj!reftypej reftargetjmodnameN classnameNj j )}j ]j c.drm_readasbuh1hhjubj)}(h h]h }(hj̓hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hcounth]hcount}(hjړhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjUjVuh1jhjߒubj)}(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 classnameNj j )}j ]j c.drm_readasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hoffseth]hoffset}(hj/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjUjVuh1jhjߒubeh}(h]h ]h"]h$]h&]jUjVuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jUjVj.uh1jj/j0hjhhhjhMubah}(h]jah ](j4j5eh"]h$]h&]j9j:)j;huh1jhjhMhjhhubj=)}(hhh]h)}(hread method for DRM fileh]hread method for DRM file}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chMhjVhhubah}(h]h ]h"]h$]h&]uh1j<hjhhhjhMubeh}(h]h ](j!functioneh"]h$]h&]j]j!j^jqj_jqj`jajbuh1jhhhjnhNhNubjd)}(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]jn)}(hj{h]h Parameters}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1jmhjyubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chM hjuubj)}(hhh](j)}(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 pointerh]h file pointer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(hC``char __user *buffer`` userspace destination pointer for the read h](j)}(h``char __user *buffer``h]j)}(hjӔh]hchar __user *buffer}(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*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&]uh1jhj͔ubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h(``size_t count`` count in bytes to read h](j)}(h``size_t count``h]j)}(hj h]h size_t count}(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.chMhjubj)}(hhh]h)}(hcount in bytes to readh]hcount in bytes to read}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj!hMhj"ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj!hMhjubj)}(h"``loff_t *offset`` offset to read h](j)}(h``loff_t *offset``h]j)}(hjEh]hloff_t *offset}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjCubah}(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)}(hoffset to readh]hoffset to read}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjZhM hj[ubah}(h]h ]h"]h$]h&]uh1jhj?ubeh}(h]h ]h"]h$]h&]uh1jhjZhM hjubeh}(h]h ]h"]h$]h&]uh1jhjuubh)}(h**Description**h]jn)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jmhj~ubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chM hjuubh)}(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 refexplicitrefwarnj j j3file_operationsuh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chM hjubh 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&]uh1hhjhM hjuubh)}(hb**offset** is ignored, DRM events are read like a pipe. Polling support is provided by drm_poll().h](jn)}(h **offset**h]hoffset}(hj̕hhhNhNubah}(h]h ]h"]h$]h&]uh1jmhjȕubhX is ignored, DRM events are read like a pipe. Polling support is provided by drm_poll().}(hjȕhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chMhjuubh)}(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.chMhjuubh)}(h **Return**h]jn)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jmhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chMhjuubh)}(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.chMhjuubeh}(h]h ] kernelindentah"]h$]h&]uh1jchjnhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jdrm_poll (C function) c.drm_pollhNtauh1jhjnhhhNhNubj)}(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}(hj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;ubah}(h]h ]h"]h$]h&] refdomainj!reftypej reftargetj@modnameN classnameNj j )}j ]j)}jdrm_pollsb c.drm_pollasbuh1hhj7hhh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chMbubj)}(h h]h }(hj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7hhhj_hMbubj )}(hdrm_pollh]j)}(hj\h]hdrm_poll}(hjrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnubah}(h]h ](j#j$eh"]h$]h&]jUjVuh1j hj7hhhj_hMbubj)}(h3(struct file *filp, struct poll_table_struct *wait)h](j)}(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 classnameNj j )}j ]jZ c.drm_pollasbuh1hhjubj)}(h h]h }(hjɖhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjזhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hfilph]hfilp}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjUjVuh1jhjubj)}(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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj!reftypej reftargetjmodnameN classnameNj j )}j ]jZ c.drm_pollasbuh1hhjubj)}(h h]h }(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hwaith]hwait}(hjThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjUjVuh1jhjubeh}(h]h ]h"]h$]h&]jUjVuh1jhj7hhhj_hMbubeh}(h]h ]h"]h$]h&]jUjVj.uh1jj/j0hj3hhhj_hMbubah}(h]j.ah ](j4j5eh"]h$]h&]j9j:)j;huh1jhj_hMbhj0hhubj=)}(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.chMbhj{hhubah}(h]h ]h"]h$]h&]uh1j<hj0hhhj_hMbubeh}(h]h ](j!functioneh"]h$]h&]j]j!j^jj_jj`jajbuh1jhhhjnhNhNubjd)}(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]jn)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jmhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chMfhjubj)}(hhh](j)}(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.chMchjubj)}(hhh]h)}(h file pointerh]h file pointer}(hjؗhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjԗhMchj՗ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjԗhMchjubj)}(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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hMdhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj hMdhjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]jn)}(hj3h]h Description}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jmhj1ubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chMfhjubh)}(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 }(hjIhhhNhNubh)}(h0:c:type:`file_operations.read `h]j)}(hjSh]hfile_operations.read}(hjUhhhNhNubah}(h]h ](j j!c-typeeh"]h$]h&]uh1jhjQubah}(h]h ]h"]h$]h&]refdocj- refdomainj!reftypetype refexplicitrefwarnj j j3file_operationsuh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chMehjIubh 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.}(hjIhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjphMehjubh)}(hSee also drm_read().h]hSee also drm_read().}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chMjhjubh)}(h **Return**h]jn)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jmhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chMlhjubh)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chMmhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jchjnhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j*drm_event_reserve_init_locked (C function)c.drm_event_reserve_init_lockedhNtauh1jhjnhhhNhNubj)}(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](j))}(hinth]hint}(hjјhhhNhNubah}(h]h ]j)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͘hhhjߘhMubj )}(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 ](j#j$eh"]h$]h&]jUjVuh1j hj͘hhhjߘhMubj)}(hf(struct drm_device *dev, struct drm_file *file_priv, struct drm_pending_event *p, struct drm_event *e)h](j)}(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}(hj,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj)ubah}(h]h ]h"]h$]h&] refdomainj!reftypej reftargetj.modnameN classnameNj j )}j ]j)}jjsbc.drm_event_reserve_init_lockedasbuh1hhj ubj)}(h h]h }(hjLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(hjh]h*}(hjZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(hdevh]hdev}(hjghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphjUjVuh1jhjubj)}(hstruct drm_file *file_privh](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_fileh]hdrm_file}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj!reftypej reftargetjmodnameN classnameNj j )}j ]jHc.drm_event_reserve_init_lockedasbuh1hhj|ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|ubj)}(hjh]h*}(hjʙhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|ubj)}(h file_privh]h file_priv}(hjיhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|ubeh}(h]h ]h"]h$]h&]noemphjUjVuh1jhjubj)}(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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&] refdomainj!reftypej reftargetjmodnameN classnameNj j )}j ]jHc.drm_event_reserve_init_lockedasbuh1hhjubj)}(h h]h }(hj,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]hp}(hjGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjUjVuh1jhjubj)}(hstruct drm_event *eh](j)}(hjh]hstruct}(hj_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj[ubj)}(h h]h }(hjlhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj[ubh)}(hhh]j)}(h drm_eventh]h drm_event}(hj}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzubah}(h]h ]h"]h$]h&] refdomainj!reftypej reftargetjmodnameN classnameNj j )}j ]jHc.drm_event_reserve_init_lockedasbuh1hhj[ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj[ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj[ubj)}(heh]he}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj[ubeh}(h]h ]h"]h$]h&]noemphjUjVuh1jhjubeh}(h]h ]h"]h$]h&]jUjVuh1jhj͘hhhjߘhMubeh}(h]h ]h"]h$]h&]jUjVj.uh1jj/j0hjɘhhhjߘhMubah}(h]jĘah ](j4j5eh"]h$]h&]j9j:)j;huh1jhjߘhMhjƘhhubj=)}(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.chMhjݚhhubah}(h]h ]h"]h$]h&]uh1j<hjƘhhhjߘhMubeh}(h]h ](j!functioneh"]h$]h&]j]j!j^jj_jj`jajbuh1jhhhjnhNhNubjd)}(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]jn)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jmhjubah}(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&]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 DRM deviceh]h DRM device}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj6hMhj7ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj6hMhjubj)}(h5``struct drm_file *file_priv`` DRM file private data h](j)}(h``struct drm_file *file_priv``h]j)}(hjZh]hstruct drm_file *file_priv}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjXubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chMhjTubj)}(hhh]h)}(hDRM file private datah]hDRM file private data}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1hhjohMhjpubah}(h]h ]h"]h$]h&]uh1jhjTubeh}(h]h ]h"]h$]h&]uh1jhjohMhjubj)}(hI``struct drm_pending_event *p`` tracking structure for the pending event h](j)}(h``struct drm_pending_event *p``h]j)}(hjh]hstruct drm_pending_event *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.chMhjubj)}(hhh]h)}(h(tracking structure for the pending eventh]h(tracking structure for the pending event}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(hB``struct drm_event *e`` actual event data to deliver to userspace h](j)}(h``struct drm_event *e``h]j)}(hj̛h]hstruct drm_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.chMhjƛubj)}(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&]uh1jhjƛubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]jn)}(hjh]h Description}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jmhjubah}(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 }(hj,hhhNhNubjn)}(h**p**h]hp}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jmhj,ubh? into a larger structure it must be allocated with kmalloc and }(hj,hhhNhNubjn)}(h**p**h]hp}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jmhj,ubh" must be the first member element.}(hj,hhhNhNubeh}(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 }(hj_hhhNhNubh)}(h,:c:type:`drm_device.event_lock `h]j)}(hjih]hdrm_device.event_lock}(hjkhhhNhNubah}(h]h ](j j!c-typeeh"]h$]h&]uh1jhjgubah}(h]h ]h"]h$]h&]refdocj- refdomainj!reftypetype refexplicitrefwarnj j j3 drm_deviceuh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chMhj_ubh.}(hj_hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMhjubh)}(h **Return**h]jn)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jmhjubah}(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.}(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&]uh1jchjnhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j#drm_event_reserve_init (C function)c.drm_event_reserve_inithNtauh1jhjnhhhNhNubj)}(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](j))}(hinth]hint}(hj؜hhhNhNubah}(h]h ]j)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_event_reserve_inith]j)}(hdrm_event_reserve_inith]hdrm_event_reserve_init}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](j#j$eh"]h$]h&]jUjVuh1j hjԜhhhjhMubj)}(hf(struct drm_device *dev, struct drm_file *file_priv, struct drm_pending_event *p, struct drm_event *e)h](j)}(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}(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0ubah}(h]h ]h"]h$]h&] refdomainj!reftypej reftargetj5modnameN classnameNj j )}j ]j)}jjsbc.drm_event_reserve_initasbuh1hhjubj)}(h h]h }(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hdevh]hdev}(hjnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjUjVuh1jhj ubj)}(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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj!reftypej reftargetjmodnameN classnameNj j )}j ]jOc.drm_event_reserve_initasbuh1hhjubj)}(h h]h }(hjÝhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjѝhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h file_privh]h file_priv}(hjޝhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjUjVuh1jhj ubj)}(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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj!reftypej reftargetjmodnameN classnameNj j )}j ]jOc.drm_event_reserve_initasbuh1hhjubj)}(h h]h }(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]hp}(hjNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjUjVuh1jhj ubj)}(hstruct drm_event *eh](j)}(hjh]hstruct}(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbubj)}(h h]h }(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbubh)}(hhh]j)}(h drm_eventh]h drm_event}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj!reftypej reftargetjmodnameN classnameNj j )}j ]jOc.drm_event_reserve_initasbuh1hhjbubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbubj)}(hjh]he}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbubeh}(h]h ]h"]h$]h&]noemphjUjVuh1jhj ubeh}(h]h ]h"]h$]h&]jUjVuh1jhjԜhhhjhMubeh}(h]h ]h"]h$]h&]jUjVj.uh1jj/j0hjМhhhjhMubah}(h]j˜ah ](j4j5eh"]h$]h&]j9j:)j;huh1jhjhMhj͜hhubj=)}(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<hj͜hhhjhMubeh}(h]h ](j!functioneh"]h$]h&]j]j!j^jj_jj`jajbuh1jhhhjnhNhNubjd)}(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]jn)}(hjh]h Parameters}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jmhjubah}(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.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<hMhjubj)}(h5``struct drm_file *file_priv`` DRM file private data h](j)}(h``struct drm_file *file_priv``h]j)}(hj`h]hstruct drm_file *file_priv}(hjbhhhNhNubah}(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.chMhjZubj)}(hhh]h)}(hDRM file private datah]hDRM file private data}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjuhMhjvubah}(h]h ]h"]h$]h&]uh1jhjZubeh}(h]h ]h"]h$]h&]uh1jhjuhMhjubj)}(hI``struct drm_pending_event *p`` tracking structure for the pending event h](j)}(h``struct drm_pending_event *p``h]j)}(hjh]hstruct drm_pending_event *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.chMhjubj)}(hhh]h)}(h(tracking structure for the pending eventh]h(tracking structure for the pending event}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(hB``struct drm_event *e`` actual event data to deliver to userspace h](j)}(h``struct drm_event *e``h]j)}(hjҟh]hstruct drm_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.chMhj̟ubj)}(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&]uh1jhj̟ubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]jn)}(hj h]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jmhj 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 }(hj2hhhNhNubjn)}(h**p**h]hp}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1jmhj2ubh? into a larger structure it must be allocated with kmalloc and }(hj2hhhNhNubjn)}(h**p**h]hp}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jmhj2ubh" must be the first member element.}(hj2hhhNhNubeh}(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 }(hjehhhNhNubh)}(h,:c:type:`drm_device.event_lock `h]j)}(hjoh]hdrm_device.event_lock}(hjqhhhNhNubah}(h]h ](j j!c-typeeh"]h$]h&]uh1jhjmubah}(h]h ]h"]h$]h&]refdocj- refdomainj!reftypetype refexplicitrefwarnj j j3 drm_deviceuh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chMhjeubh4 should use drm_event_reserve_init_locked() instead.}(hjehhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMhjubh)}(h **Return**h]jn)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jmhjubah}(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.}(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&]uh1jchjnhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j"drm_event_cancel_free (C function)c.drm_event_cancel_freehNtauh1jhjnhhhNhNubj)}(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](j))}(hvoidh]hvoid}(hjޠhhhNhNubah}(h]h ]j)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_event_cancel_freeh]j)}(hdrm_event_cancel_freeh]hdrm_event_cancel_free}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](j#j$eh"]h$]h&]jUjVuh1j hjڠhhhjhMubj)}(h5(struct drm_device *dev, struct drm_pending_event *p)h](j)}(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}(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6ubah}(h]h ]h"]h$]h&] refdomainj!reftypej reftargetj;modnameN classnameNj j )}j ]j)}jjsbc.drm_event_cancel_freeasbuh1hhjubj)}(h h]h }(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hdevh]hdev}(hjthhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjUjVuh1jhjubj)}(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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj!reftypej reftargetjmodnameN classnameNj j )}j ]jUc.drm_event_cancel_freeasbuh1hhjubj)}(h h]h }(hjɡhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjסhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]hp}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjUjVuh1jhjubeh}(h]h ]h"]h$]h&]jUjVuh1jhjڠhhhjhMubeh}(h]h ]h"]h$]h&]jUjVj.uh1jj/j0hj֠hhhjhMubah}(h]jѠah ](j4j5eh"]h$]h&]j9j:)j;huh1jhjhMhjӠhhubj=)}(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<hjӠhhhjhMubeh}(h]h ](j!functioneh"]h$]h&]j]j!j^j%j_j%j`jajbuh1jhhhjnhNhNubjd)}(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]jn)}(hj/h]h Parameters}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jmhj-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 drm_device *dev`` DRM device h](j)}(h``struct drm_device *dev``h]j)}(hjNh]hstruct drm_device *dev}(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.chMhjHubj)}(hhh]h)}(h DRM deviceh]h DRM device}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1hhjchMhjdubah}(h]h ]h"]h$]h&]uh1jhjHubeh}(h]h ]h"]h$]h&]uh1jhjchMhjEubj)}(hI``struct drm_pending_event *p`` tracking structure for the pending event h](j)}(h``struct drm_pending_event *p``h]j)}(hjh]hstruct drm_pending_event *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.chMhjubj)}(hhh]h)}(h(tracking structure for the pending eventh]h(tracking structure for the pending event}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjEubeh}(h]h ]h"]h$]h&]uh1jhj)ubh)}(h**Description**h]jn)}(hj¢h]h Description}(hjĢhhhNhNubah}(h]h ]h"]h$]h&]uh1jmhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chMhj)ubh)}(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 }(hjآhhhNhNubjn)}(h**p**h]hp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jmhjآubh 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.}(hjآhhhNhNubeh}(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&]uh1jchjnhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j,drm_send_event_timestamp_locked (C function)!c.drm_send_event_timestamp_lockedhNtauh1jhjnhhhNhNubj)}(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](j))}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j)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_timestamp_lockedh]j)}(hdrm_send_event_timestamp_lockedh]hdrm_send_event_timestamp_locked}(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6ubah}(h]h ](j#j$eh"]h$]h&]jUjVuh1j hjhhhj'hM ubj)}(hH(struct drm_device *dev, struct drm_pending_event *e, ktime_t timestamp)h](j)}(hstruct drm_device *devh](j)}(hjh]hstruct}(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRubj)}(h h]h }(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRubh)}(hhh]j)}(h drm_deviceh]h drm_device}(hjthhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqubah}(h]h ]h"]h$]h&] refdomainj!reftypej reftargetjvmodnameN classnameNj j )}j ]j)}jj<sb!c.drm_send_event_timestamp_lockedasbuh1hhjRubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRubj)}(hdevh]hdev}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRubeh}(h]h ]h"]h$]h&]noemphjUjVuh1jhjNubj)}(hstruct drm_pending_event *eh](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_pending_eventh]hdrm_pending_event}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj!reftypej reftargetjmodnameN classnameNj j )}j ]j!c.drm_send_event_timestamp_lockedasbuh1hhjģubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjģubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjģubj)}(hjh]he}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjģubeh}(h]h ]h"]h$]h&]noemphjUjVuh1jhjNubj)}(hktime_t timestamph](h)}(hhh]j)}(hktime_th]hktime_t}(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7ubah}(h]h ]h"]h$]h&] refdomainj!reftypej reftargetj<modnameN classnameNj j )}j ]j!c.drm_send_event_timestamp_lockedasbuh1hhj3ubj)}(h h]h }(hjXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubj)}(h timestamph]h timestamp}(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubeh}(h]h ]h"]h$]h&]noemphjUjVuh1jhjNubeh}(h]h ]h"]h$]h&]jUjVuh1jhjhhhj'hM ubeh}(h]h ]h"]h$]h&]jUjVj.uh1jj/j0hjhhhj'hM ubah}(h]j ah ](j4j5eh"]h$]h&]j9j:)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&]j]j!j^jj_jj`jajbuh1jhhhjnhNhNubjd)}(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]jn)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jmhjubah}(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.chM hjˤubj)}(hhh]h)}(h DRM deviceh]h DRM device}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM hjubah}(h]h ]h"]h$]h&]uh1jhjˤubeh}(h]h ]h"]h$]h&]uh1jhjhM hjȤubj)}(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&]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)}(hDRM event to deliverh]hDRM event to deliver}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM hj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM hjȤubj)}(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)}(hjCh]hktime_t timestamp}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjAubah}(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)}(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}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chM hjYubah}(h]h ]h"]h$]h&]uh1jhj=ubeh}(h]h ]h"]h$]h&]uh1jhjXhMhjȤubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]jn)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jmhj}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 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 }(hjhhhNhNubjn)}(h**e**h]he}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jmhjubhm, 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)}(hjh]hdrm_device.event_lock}(hjhhhNhNubah}(h]h ](j j!c-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj- refdomainj!reftypetype refexplicitrefwarnj j j3 drm_deviceuh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chMhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjΥhMhjubh)}(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.}(hj٥hhhNhNubah}(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&]uh1jchjnhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j"drm_send_event_locked (C function)c.drm_send_event_lockedhNtauh1jhjnhhhNhNubj)}(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](j))}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j)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 }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhM!ubj )}(hdrm_send_event_lockedh]j)}(hdrm_send_event_lockedh]hdrm_send_event_locked}(hj)hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%ubah}(h]h ](j#j$eh"]h$]h&]jUjVuh1j hjhhhjhM!ubj)}(h5(struct drm_device *dev, struct drm_pending_event *e)h](j)}(hstruct drm_device *devh](j)}(hjh]hstruct}(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjAubj)}(h h]h }(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjAubh)}(hhh]j)}(h drm_deviceh]h drm_device}(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`ubah}(h]h ]h"]h$]h&] refdomainj!reftypej reftargetjemodnameN classnameNj j )}j ]j)}jj+sbc.drm_send_event_lockedasbuh1hhjAubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjAubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjAubj)}(hdevh]hdev}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjAubeh}(h]h ]h"]h$]h&]noemphjUjVuh1jhj=ubj)}(hstruct drm_pending_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)}(hdrm_pending_eventh]hdrm_pending_event}(hjզhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjҦubah}(h]h ]h"]h$]h&] refdomainj!reftypej reftargetjצmodnameN classnameNj j )}j ]jc.drm_send_event_lockedasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]he}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjUjVuh1jhj=ubeh}(h]h ]h"]h$]h&]jUjVuh1jhjhhhjhM!ubeh}(h]h ]h"]h$]h&]jUjVj.uh1jj/j0hjhhhjhM!ubah}(h]jah ](j4j5eh"]h$]h&]j9j:)j;huh1jhjhM!hjhhubj=)}(hhh]h)}(h!send DRM event to file descriptorh]h!send DRM event to file descriptor}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chM!hj4hhubah}(h]h ]h"]h$]h&]uh1j<hjhhhjhM!ubeh}(h]h ](j!functioneh"]h$]h&]j]j!j^jOj_jOj`jajbuh1jhhhjnhNhNubjd)}(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]jn)}(hjYh]h Parameters}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1jmhjWubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chM%hjSubj)}(hhh](j)}(h&``struct drm_device *dev`` DRM device h](j)}(h``struct drm_device *dev``h]j)}(hjxh]hstruct drm_device *dev}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjvubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chM"hjrubj)}(hhh]h)}(h DRM deviceh]h DRM device}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM"hjubah}(h]h ]h"]h$]h&]uh1jhjrubeh}(h]h ]h"]h$]h&]uh1jhjhM"hjoubj)}(h5``struct drm_pending_event *e`` DRM event to deliver h](j)}(h``struct drm_pending_event *e``h]j)}(hjh]hstruct drm_pending_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.chM#hjubj)}(hhh]h)}(hDRM event to deliverh]hDRM event to deliver}(hjʧhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjƧhM#hjǧubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjƧhM#hjoubeh}(h]h ]h"]h$]h&]uh1jhjSubh)}(h**Description**h]jn)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jmhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chM%hjSubh)}(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 }(hjhhhNhNubjn)}(h**e**h]he}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jmhjubhm, 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)}(hjh]hdrm_device.event_lock}(hj hhhNhNubah}(h]h ](j j!c-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj- refdomainj!reftypetype refexplicitrefwarnj j j3 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&]uh1hhj;hM$hjSubh)}(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.}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chM(hjSubeh}(h]h ] kernelindentah"]h$]h&]uh1jchjnhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jdrm_send_event (C function)c.drm_send_eventhNtauh1jhjnhhhNhNubj)}(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](j))}(hvoidh]hvoid}(hjuhhhNhNubah}(h]h ]j)ah"]h$]h&]uh1j)hjqhhh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chM5ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqhhhjhM5ubj )}(hdrm_send_eventh]j)}(hdrm_send_eventh]hdrm_send_event}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](j#j$eh"]h$]h&]jUjVuh1j hjqhhhjhM5ubj)}(h5(struct drm_device *dev, struct drm_pending_event *e)h](j)}(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&]uh1jhjͨubah}(h]h ]h"]h$]h&] refdomainj!reftypej reftargetjҨmodnameN classnameNj j )}j ]j)}jjsbc.drm_send_eventasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hdevh]hdev}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjUjVuh1jhjubj)}(hstruct drm_pending_event *eh](j)}(hjh]hstruct}(hj$hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(h h]h }(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubh)}(hhh]j)}(hdrm_pending_eventh]hdrm_pending_event}(hjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?ubah}(h]h ]h"]h$]h&] refdomainj!reftypej reftargetjDmodnameN classnameNj j )}j ]jc.drm_send_eventasbuh1hhj ubj)}(h h]h }(hj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(hjh]h*}(hjnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(hjh]he}(hj{hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphjUjVuh1jhjubeh}(h]h ]h"]h$]h&]jUjVuh1jhjqhhhjhM5ubeh}(h]h ]h"]h$]h&]jUjVj.uh1jj/j0hjmhhhjhM5ubah}(h]jhah ](j4j5eh"]h$]h&]j9j:)j;huh1jhjhM5hjjhhubj=)}(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.chM5hjhhubah}(h]h ]h"]h$]h&]uh1j<hjjhhhjhM5ubeh}(h]h ](j!functioneh"]h$]h&]j]j!j^jj_jj`jajbuh1jhhhjnhNhNubjd)}(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]jn)}(hjƩh]h Parameters}(hjȩhhhNhNubah}(h]h ]h"]h$]h&]uh1jmhjĩubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chM9hjubj)}(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.chM6hjߩubj)}(hhh]h)}(h DRM deviceh]h DRM device}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM6hjubah}(h]h ]h"]h$]h&]uh1jhjߩubeh}(h]h ]h"]h$]h&]uh1jhjhM6hjܩubj)}(h5``struct drm_pending_event *e`` DRM event to deliver h](j)}(h``struct drm_pending_event *e``h]j)}(hjh]hstruct drm_pending_event *e}(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.chM7hjubj)}(hhh]h)}(hDRM event to deliverh]hDRM event to deliver}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj3hM7hj4ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj3hM7hjܩubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]jn)}(hjYh]h Description}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1jmhjWubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chM9hjubh)}(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 }(hjohhhNhNubjn)}(h**e**h]he}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jmhjoubhj, initialized with drm_event_reserve_init(), to its associated userspace DRM file. This function acquires }(hjohhhNhNubh)}(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 refexplicitrefwarnj j j3 drm_deviceuh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chM8hjoubhG, see drm_send_event_locked() for callers which already hold this lock.}(hjohhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhM8hjubh)}(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&]uh1jchjnhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j#drm_print_memory_stats (C function)c.drm_print_memory_statshNtauh1jhjnhhhNhNubj)}(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](j))}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j)ah"]h$]h&]uh1j)hjުhhh]/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&]uh1jhjުhhhjhMlubj )}(hdrm_print_memory_statsh]j)}(hdrm_print_memory_statsh]hdrm_print_memory_stats}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](j#j$eh"]h$]h&]jUjVuh1j hjުhhhjhMlubj)}(h~(struct drm_printer *p, const struct drm_memory_stats *stats, enum drm_gem_object_status supported_status, const char *region)h](j)}(hstruct drm_printer *ph](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_printerh]h drm_printer}(hj=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:ubah}(h]h ]h"]h$]h&] refdomainj!reftypej reftargetj?modnameN classnameNj j )}j ]j)}jjsbc.drm_print_memory_statsasbuh1hhjubj)}(h h]h }(hj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]hp}(hjxhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjUjVuh1jhjubj)}(h$const struct drm_memory_stats *statsh](j)}(hj+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 }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hdrm_memory_statsh]hdrm_memory_stats}(hjɫhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjƫubah}(h]h ]h"]h$]h&] refdomainj!reftypej reftargetj˫modnameN classnameNj j )}j ]jYc.drm_print_memory_statsasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hstatsh]hstats}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjUjVuh1jhjubj)}(h+enum drm_gem_object_status supported_statush](j)}(hjUh]henum}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hj(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hdrm_gem_object_statush]hdrm_gem_object_status}(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6ubah}(h]h ]h"]h$]h&] refdomainj!reftypej reftargetj;modnameN classnameNj j )}j ]jYc.drm_print_memory_statsasbuh1hhjubj)}(h h]h }(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hsupported_statush]hsupported_status}(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjUjVuh1jhjubj)}(hconst char *regionh](j)}(hj+h]hconst}(hj~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzubj))}(hcharh]hchar}(hjhhhNhNubah}(h]h ]j)ah"]h$]h&]uh1j)hjzubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzubj)}(hregionh]hregion}(hj¬hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzubeh}(h]h ]h"]h$]h&]noemphjUjVuh1jhjubeh}(h]h ]h"]h$]h&]jUjVuh1jhjުhhhjhMlubeh}(h]h ]h"]h$]h&]jUjVj.uh1jj/j0hjڪhhhjhMlubah}(h]jժah ](j4j5eh"]h$]h&]j9j:)j;huh1jhjhMlhjתhhubj=)}(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<hjתhhhjhMlubeh}(h]h ](j!functioneh"]h$]h&]j]j!j^jj_jj`jajbuh1jhhhjnhNhNubjd)}(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]jn)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jmhj ubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chMphjubj)}(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}(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.chMmhj'ubj)}(hhh]h)}(hThe printer to print output toh]hThe printer to print output to}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjBhMmhjCubah}(h]h ]h"]h$]h&]uh1jhj'ubeh}(h]h ]h"]h$]h&]uh1jhjBhMmhj$ubj)}(hD``const struct drm_memory_stats *stats`` The collected memory stats h](j)}(h(``const struct drm_memory_stats *stats``h]j)}(hjfh]h$const struct drm_memory_stats *stats}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjdubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chMnhj`ubj)}(hhh]h)}(hThe collected memory statsh]hThe collected memory stats}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj{hMnhj|ubah}(h]h ]h"]h$]h&]uh1jhj`ubeh}(h]h ]h"]h$]h&]uh1jhj{hMnhj$ubj)}(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)}(hjh]h+enum drm_gem_object_status supported_status}(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.chMohjubj)}(hhh]h)}(h-Bitmask of optional stats which are availableh]h-Bitmask of optional stats which are available}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMohjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMohj$ubj)}(h(``const char *region`` The memory regionh](j)}(h``const char *region``h]j)}(hjحh]hconst char *region}(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.chMqhjҭubj)}(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&]uh1jhjҭubeh}(h]h ]h"]h$]h&]uh1jhjhMqhj$ubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jchjnhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j"drm_show_memory_stats (C function)c.drm_show_memory_statshNtauh1jhjnhhhNhNubj)}(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](j))}(hvoidh]hvoid}(hj2hhhNhNubah}(h]h ]j)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 }(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.hhhj@hMubj )}(hdrm_show_memory_statsh]j)}(hdrm_show_memory_statsh]hdrm_show_memory_stats}(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOubah}(h]h ](j#j$eh"]h$]h&]jUjVuh1j hj.hhhj@hMubj)}(h.(struct drm_printer *p, struct drm_file *file)h](j)}(hstruct drm_printer *ph](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_printerh]h drm_printer}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj!reftypej reftargetjmodnameN classnameNj j )}j ]j)}jjUsbc.drm_show_memory_statsasbuh1hhjkubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkubj)}(hjh]hp}(hjȮhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkubeh}(h]h ]h"]h$]h&]noemphjUjVuh1jhjgubj)}(hstruct drm_file *fileh](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_fileh]hdrm_file}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj!reftypej reftargetjmodnameN classnameNj j )}j ]jc.drm_show_memory_statsasbuh1hhjܮubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjܮubj)}(hjh]h*}(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjܮubj)}(hfileh]hfile}(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjܮubeh}(h]h ]h"]h$]h&]noemphjUjVuh1jhjgubeh}(h]h ]h"]h$]h&]jUjVuh1jhj.hhhj@hMubeh}(h]h ]h"]h$]h&]jUjVj.uh1jj/j0hj*hhhj@hMubah}(h]j%ah ](j4j5eh"]h$]h&]j9j:)j;huh1jhj@hMhj'hhubj=)}(hhh]h)}(h7Helper to collect and show standard fdinfo memory statsh]h7Helper to collect and show standard fdinfo memory stats}(hjahhhNhNubah}(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'hhhj@hMubeh}(h]h ](j!functioneh"]h$]h&]j]j!j^jyj_jyj`jajbuh1jhhhjnhNhNubjd)}(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]jn)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jmhjubah}(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)}(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.chMhjubj)}(hhh]h)}(hthe printer to print output toh]hthe printer to print output to}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h'``struct drm_file *file`` the DRM file h](j)}(h``struct drm_file *file``h]j)}(hjۯh]hstruct drm_file *file}(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 the DRM fileh]h the DRM file}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjկubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(h]h ]h"]h$]h&]uh1jhj}ubh)}(h**Description**h]jn)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jmhjubah}(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.}(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&]uh1jchjnhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jdrm_show_fdinfo (C function)c.drm_show_fdinfohNtauh1jhjnhhhNhNubj)}(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](j))}(hvoidh]hvoid}(hj[hhhNhNubah}(h]h ]j)ah"]h$]h&]uh1j)hjWhhh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chMubj)}(h h]h }(hjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWhhhjihMubj )}(hdrm_show_fdinfoh]j)}(hdrm_show_fdinfoh]hdrm_show_fdinfo}(hj|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjxubah}(h]h ](j#j$eh"]h$]h&]jUjVuh1j hjWhhhjihMubj)}(h$(struct seq_file *m, struct file *f)h](j)}(hstruct seq_file *mh](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hseq_fileh]hseq_file}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj!reftypej reftargetjmodnameN classnameNj j )}j ]j)}jj~sbc.drm_show_fdinfoasbuh1hhjubj)}(h h]h }(hjְhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hmh]hm}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjUjVuh1jhjubj)}(hstruct file *fh](j)}(hjh]hstruct}(hj hhhNhNubah}(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&]uh1jhj%ubah}(h]h ]h"]h$]h&] refdomainj!reftypej reftargetj*modnameN classnameNj j )}j ]jҰc.drm_show_fdinfoasbuh1hhjubj)}(h h]h }(hjFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hfh]hf}(hjahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjUjVuh1jhjubeh}(h]h ]h"]h$]h&]jUjVuh1jhjWhhhjihMubeh}(h]h ]h"]h$]h&]jUjVj.uh1jj/j0hjShhhjihMubah}(h]jNah ](j4j5eh"]h$]h&]j9j:)j;huh1jhjihMhjPhhubj=)}(hhh]h)}(hhelper for drm file fopsh]hhelper for drm file fops}(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<hjPhhhjihMubeh}(h]h ](j!functioneh"]h$]h&]j]j!j^jj_jj`jajbuh1jhhhjnhNhNubjd)}(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]jn)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jmhjubah}(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 seq_file *m`` output stream h](j)}(h``struct seq_file *m``h]j)}(hj̱h]hstruct seq_file *m}(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 output streamh]h output stream}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjƱubeh}(h]h ]h"]h$]h&]uh1jhjhMhjñubj)}(h,``struct file *f`` the device file instance h](j)}(h``struct file *f``h]j)}(hjh]hstruct file *f}(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)}(hthe device file instanceh]hthe device file instance}(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]jn)}(hj@h]h Description}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1jmhj>ubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chMhjubh)}(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 }(hjVhhhNhNubh)}(h-:c:type:`drm_driver.show_fdinfo `h]j)}(hj`h]hdrm_driver.show_fdinfo}(hjbhhhNhNubah}(h]h ](j j!c-typeeh"]h$]h&]uh1jhj^ubah}(h]h ]h"]h$]h&]refdocj- refdomainj!reftypetype refexplicitrefwarnj j j3 drm_driveruh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chMhjVubh.}(hjVhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj}hMhjubh)}(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}(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&]uh1jchjnhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jdrm_file_err (C function)c.drm_file_errhNtauh1jhjnhhhNhNubj)}(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](j))}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j)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 )}(h drm_file_errh]j)}(h drm_file_errh]h drm_file_err}(hjزhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjԲubah}(h]h ](j#j$eh"]h$]h&]jUjVuh1j hjhhhjŲhMubj)}(h2(struct drm_file *file_priv, const char *fmt, ...)h](j)}(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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj!reftypej reftargetjmodnameN classnameNj j )}j ]j)}jjڲsbc.drm_file_errasbuh1hhjubj)}(h h]h }(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h file_privh]h file_priv}(hjMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjUjVuh1jhjubj)}(hconst char *fmth](j)}(hj+h]hconst}(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbubj)}(h h]h }(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbubj))}(hcharh]hchar}(hjhhhNhNubah}(h]h ]j)ah"]h$]h&]uh1j)hjbubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbubj)}(hfmth]hfmt}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbubeh}(h]h ]h"]h$]h&]noemphjUjVuh1jhjubj)}(h...h]j)}(h...h]h...}(hjóhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]noemphjUjVuh1jhjubeh}(h]h ]h"]h$]h&]jUjVuh1jhjhhhjŲhMubeh}(h]h ]h"]h$]h&]jUjVj.uh1jj/j0hjhhhjŲhMubah}(h]jah ](j4j5eh"]h$]h&]j9j:)j;huh1jhjŲhMhjhhubj=)}(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<hjhhhjŲhMubeh}(h]h ](j!functioneh"]h$]h&]j]j!j^jj_jj`jajbuh1jhhhjnhNhNubjd)}(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]jn)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jmhj 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)}(hj.h]hstruct drm_file *file_priv}(hj0hhhNhNubah}(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,context of interest for process name and pidh]h,context of interest for process name and pid}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjChMhjDubah}(h]h ]h"]h$]h&]uh1jhj(ubeh}(h]h ]h"]h$]h&]uh1jhjChMhj%ubj)}(h0``const char *fmt`` printf() like format string h](j)}(h``const char *fmt``h]j)}(hjgh]hconst char *fmt}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jhjeubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chMhjaubj)}(hhh]h)}(hprintf() like format stringh]hprintf() like format string}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj|hMhj}ubah}(h]h ]h"]h$]h&]uh1jhjaubeh}(h]h ]h"]h$]h&]uh1jhj|hMhj%ubj)}(h``...`` variable arguments h](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:152: ./drivers/gpu/drm/drm_file.chKhjubj)}(hhh]h)}(hvariable argumentsh]hvariable arguments}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhj%ubeh}(h]h ]h"]h$]h&]uh1jhj ubh)}(h**Description**h]jn)}(hj۴h]h Description}(hjݴhhhNhNubah}(h]h ]h"]h$]h&]uh1jmhjٴubah}(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&]uh1jchjnhhhNhNubeh}(h](file-operationsjneh ]h"](file operationsdrm_driver_fopseh$]h&]uh1hhj}nhhhhhKexpect_referenced_by_name}j jnsexpect_referenced_by_id}jnjnsubeh}(h]%open-close-file-operations-and-ioctlsah ]h"]&open/close, file operations and ioctlsah$]h&]uh1hhhhhhhhKubh)}(hhh](h)}(hMisc Utilitiesh]hMisc Utilities}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhKubh)}(hhh](h)}(hPrinterh]hPrinter}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj-hhhhhKubh)}(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.}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:161: ./include/drm/drm_print.hhK-hj-hhubh)}(h For example::h]h For example:}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:161: ./include/drm/drm_print.hhK0hj-hhubjF)}(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); }}hj\sbah}(h]h ]h"]h$]h&]jUjVuh1jEhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:161: ./include/drm/drm_print.hhK2hj-hhubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jdrm_debug_category (C enum)c.drm_debug_categoryhNtauh1jhj-hhhNhNubj)}(hhh](j)}(hdrm_debug_categoryh]j)}(henum drm_debug_categoryh](j)}(hjUh]henum}(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&]uh1jhjhhhjhKubj )}(hdrm_debug_categoryh]j)}(hj~h]hdrm_debug_category}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](j#j$eh"]h$]h&]jUjVuh1j hjhhhjhKubeh}(h]h ]h"]h$]h&]jUjVj.uh1jj/j0hj|hhhjhKubah}(h]jwah ](j4j5eh"]h$]h&]j9j:)j;huh1jhjhKhjyhhubj=)}(hhh]h)}(hThe DRM debug categoriesh]hThe DRM debug categories}(hjƵhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhKJhjõhhubah}(h]h ]h"]h$]h&]uh1j<hjyhhhjhKubeh}(h]h ](j!enumeh"]h$]h&]j]j!j^j޵j_j޵j`jajbuh1jhhhj-hNhNubjd)}(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]jn)}(hjh]h Constants}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jmhjubah}(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)}(hjh]h DRM_UT_CORE}(hj hhhNhNubah}(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.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.hhKQhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKRhjubj)}(h[``DRM_UT_DRIVER`` Used in the vendor specific part of the driver: i915, radeon, ... macro. h](j)}(h``DRM_UT_DRIVER``h]j)}(hjAh]h DRM_UT_DRIVER}(hjChhhNhNubah}(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.hhKVhj;ubj)}(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.}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhKUhjWubah}(h]h ]h"]h$]h&]uh1jhj;ubeh}(h]h ]h"]h$]h&]uh1jhjVhKVhjubj)}(h-``DRM_UT_KMS`` Used in the modesetting code. h](j)}(h``DRM_UT_KMS``h]j)}(hj{h]h DRM_UT_KMS}(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.hhKYhjuubj)}(hhh]h)}(hUsed in the modesetting code.h]hUsed in the modesetting code.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKYhjubah}(h]h ]h"]h$]h&]uh1jhjuubeh}(h]h ]h"]h$]h&]uh1jhjhKYhjubj)}(h)``DRM_UT_PRIME`` Used in the prime code. h](j)}(h``DRM_UT_PRIME``h]j)}(hjh]h DRM_UT_PRIME}(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 prime code.h]hUsed in the prime code.}(hjͶhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjɶhK\hjʶubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjɶhK\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.}(hjhhhNhNubah}(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)}(hj&h]h DRM_UT_VBL}(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.hhKbhj ubj)}(hhh]h)}(h2Used for verbose debug message in the vblank code.h]h2Used for verbose debug message in the vblank code.}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj;hKbhj<ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj;hKbhjubj)}(h:``DRM_UT_STATE`` Used for verbose atomic state debugging. h](j)}(h``DRM_UT_STATE``h]j)}(hj_h]h DRM_UT_STATE}(hjahhhNhNubah}(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.hhKehjYubj)}(hhh]h)}(h(Used for verbose atomic state debugging.h]h(Used for verbose atomic state debugging.}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjthKehjuubah}(h]h ]h"]h$]h&]uh1jhjYubeh}(h]h ]h"]h$]h&]uh1jhjthKehjubj)}(h)``DRM_UT_LEASE`` Used in the lease code. h](j)}(h``DRM_UT_LEASE``h]j)}(hjh]h DRM_UT_LEASE}(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.hhKhhjubj)}(hhh]h)}(hUsed in the lease code.h]hUsed in the lease code.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhhjubj)}(h#``DRM_UT_DP`` Used in the DP code. h](j)}(h ``DRM_UT_DP``h]j)}(hjѷh]h DRM_UT_DP}(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.hhKkhj˷ubj)}(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&]uh1jhj˷ubeh}(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&]uh1jhjubah}(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.}(hj#hhhNhNubah}(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&]uh1jhjhKmhjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jchj-hhhNhNubh)}(h**Description**h]jn)}(hjMh]h Description}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jmhjKubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhKphj-hhubh)}(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.}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhKKhj-hhubh)}(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.}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhKOhj-hhubh)}(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:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhKRhj-hhubj:')}(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]jAP)}(hhh](jFP)}(h'drm.debug=0x1 will enable CORE messagesh]h)}(hjh]h'drm.debug=0x1 will enable CORE messages}(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&]uh1jEPhjubjFP)}(h)drm.debug=0x2 will enable DRIVER messagesh]h)}(hjh]h)drm.debug=0x2 will enable DRIVER messages}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhKVhjubah}(h]h ]h"]h$]h&]uh1jEPhjubjFP)}(h2drm.debug=0x3 will enable CORE and DRIVER messagesh]h)}(hjɸh]h2drm.debug=0x3 will enable CORE and DRIVER messages}(hj˸hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhKWhjǸubah}(h]h ]h"]h$]h&]uh1jEPhjubjFP)}(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.hhKXhj߸ubah}(h]h ]h"]h$]h&]uh1jEPhjubjFP)}(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&]uh1jEPhjubeh}(h]h ]h"]h$]h&]j$Qj%Quh1j@PhjhKUhjubah}(h]h ]h"]h$]h&]uh1j9'hjhKUhj-hhubh)}(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:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhK[hj-hhubjF)}(h-# echo 0xf > /sys/module/drm/parameters/debugh]h-# echo 0xf > /sys/module/drm/parameters/debug}hj+sbah}(h]h ]h"]h$]h&]jUjVuh1jEhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhK^hj-hhubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jdrm_printer (C struct) c.drm_printerhNtauh1jhj-hhhNhNubj)}(hhh](j)}(h drm_printerh]j)}(hstruct drm_printerh](j)}(hjh]hstruct}(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOhhhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhKcubj)}(h h]h }(hjahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOhhhj`hKcubj )}(h drm_printerh]j)}(hjMh]h drm_printer}(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjoubah}(h]h ](j#j$eh"]h$]h&]jUjVuh1j hjOhhhj`hKcubeh}(h]h ]h"]h$]h&]jUjVj.uh1jj/j0hjKhhhj`hKcubah}(h]jFah ](j4j5eh"]h$]h&]j9j:)j;huh1jhj`hKchjHhhubj=)}(hhh]h)}(hdrm output "stream"h]hdrm output “stream”}(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<hjHhhhj`hKcubeh}(h]h ](j!structeh"]h$]h&]j]j!j^jj_jj`jajbuh1jhhhj-hNhNubjd)}(h:**Definition**:: struct drm_printer { }; **Members**h](h)}(h**Definition**::h](jn)}(h**Definition**h]h Definition}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jmhjubh:}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhKhjubjF)}(hstruct drm_printer { };h]hstruct drm_printer { };}hjҹsbah}(h]h ]h"]h$]h&]jUjVuh1jEhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhKhjubh)}(h **Members**h]jn)}(hjh]hMembers}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jmhjubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhKhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jchj-hhhNhNubh)}(h**Description**h]jn)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jmhjubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhKhj-hhubh)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhKhj-hhubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jdrm_vprintf (C function) c.drm_vprintfhNtauh1jhj-hhhNhNubj)}(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](j))}(hvoidh]hvoid}(hj@hhhNhNubah}(h]h ]j)ah"]h$]h&]uh1j)hj<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 )}(h drm_vprintfh]j)}(h drm_vprintfh]h drm_vprintf}(hjahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]ubah}(h]h ](j#j$eh"]h$]h&]jUjVuh1j hj<hhhjNhKubj)}(h5(struct drm_printer *p, const char *fmt, va_list *va)h](j)}(hstruct drm_printer *ph](j)}(hjh]hstruct}(hj}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyubh)}(hhh]j)}(h drm_printerh]h drm_printer}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj!reftypej reftargetjmodnameN classnameNj j )}j ]j)}jjcsb c.drm_vprintfasbuh1hhjyubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyubj)}(hjh]h*}(hjɺhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyubj)}(hjh]hp}(hjֺhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyubeh}(h]h ]h"]h$]h&]noemphjUjVuh1jhjuubj)}(hconst char *fmth](j)}(hj+h]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj))}(hcharh]hchar}(hj hhhNhNubah}(h]h ]j)ah"]h$]h&]uh1j)hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hfmth]hfmt}(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjUjVuh1jhjuubj)}(h va_list *vah](h)}(hhh]j)}(hva_listh]hva_list}(hjNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKubah}(h]h ]h"]h$]h&] refdomainj!reftypej reftargetjPmodnameN classnameNj j )}j ]j c.drm_vprintfasbuh1hhjGubj)}(h h]h }(hjlhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGubj)}(hjh]h*}(hjzhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGubj)}(hvah]hva}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGubeh}(h]h ]h"]h$]h&]noemphjUjVuh1jhjuubeh}(h]h ]h"]h$]h&]jUjVuh1jhj<hhhjNhKubeh}(h]h ]h"]h$]h&]jUjVj.uh1jj/j0hj8hhhjNhKubah}(h]j3ah ](j4j5eh"]h$]h&]j9j:)j;huh1jhjNhKhj5hhubj=)}(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 refexplicitrefwarnj j )}j ]j c.drm_vprintfasbj3 drm_printeruh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhKhjubh stream}(hjhhhNhNubeh}(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<hj5hhhjNhKubeh}(h]h ](j!functioneh"]h$]h&]j]j!j^jj_jj`jajbuh1jhhhj-hNhNubjd)}(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]jn)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jmhjubah}(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)}(hjh]hstruct drm_printer *p}(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)}(hthe :c:type:`drm_printer`h](hthe }(hj4hhhNhNubh)}(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 refexplicitrefwarnj j j3 drm_printeruh1hhj0hKhj4ubeh}(h]h ]h"]h$]h&]uh1hhj0hKhj1ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj0hKhjubj)}(h"``const char *fmt`` format string h](j)}(h``const char *fmt``h]j)}(hjsh]hconst char *fmt}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjqubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhKhjmubj)}(hhh]h)}(h format stringh]h format string}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjmubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubj)}(h``va_list *va`` the va_listh](j)}(h``va_list *va``h]j)}(hjh]h va_list *va}(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 va_listh]h the va_list}(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&]uh1jhjhKhjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jchj-hhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jdrm_printf_indent (C macro)c.drm_printf_indenthNtauh1jhj-hhhNhNubj)}(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&]uh1jhjubah}(h]h ](j#j$eh"]h$]h&]jUjVuh1j hjhhhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhKubah}(h]h ]h"]h$]h&]jUjVj.uh1jj/j0hjhhhjhKubah}(h]jah ](j4j5eh"]h$]h&]j9j:)j;huh1jhjhKhjhhubj=)}(hhh]h}(h]h ]h"]h$]h&]uh1j<hjhhhjhKubeh}(h]h ](j!macroeh"]h$]h&]j]j!j^j6j_j6j`jajbuh1jhhhj-hNhNubh)}(h1``drm_printf_indent (printer, indent, fmt, ...)``h]j)}(hj<h]h-drm_printf_indent (printer, indent, 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.hhKhj-hhubj:')}(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 }(hjVhhhNhNubh)}(h:c:type:`drm_printer`h]j)}(hj`h]h drm_printer}(hjbhhhNhNubah}(h]h ](j j!c-typeeh"]h$]h&]uh1jhj^ubah}(h]h ]h"]h$]h&]refdocj- refdomainj!reftypetype refexplicitrefwarnj j j3 drm_printeruh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhKhjVubh stream with indentation}(hjVhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj}hKhjRubah}(h]h ]h"]h$]h&]uh1j9'hj}hKhj-hhubjd)}(h**Parameters** ``printer`` DRM printer ``indent`` Tab indentation level (max 5) ``fmt`` Format string ``...`` variable argumentsh](h)}(h**Parameters**h]jn)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jmhjubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhKhjubj)}(hhh](j)}(h``printer`` DRM printer h](j)}(h ``printer``h]j)}(hjh]hprinter}(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 DRM printerh]h DRM printer}(hj̽hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjȽhKhjɽubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjȽhKhjubj)}(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)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubj)}(h``fmt`` Format string h](j)}(h``fmt``h]j)}(hj%h]hfmt}(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)}(h Format stringh]h Format string}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj:hKhj;ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj:hKhjubj)}(h``...`` variable argumentsh](j)}(h``...``h]j)}(hj^h]h...}(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)}(hvariable argumentsh]hvariable arguments}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhKhjtubah}(h]h ]h"]h$]h&]uh1jhjXubeh}(h]h ]h"]h$]h&]uh1jhjshKhjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jchj-hhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jdrm_print_iterator (C struct)c.drm_print_iteratorhNtauh1jhj-hhhNhNubj)}(hhh](j)}(hdrm_print_iteratorh]j)}(hstruct drm_print_iteratorh](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 }(hjƾhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjžhKubj )}(hdrm_print_iteratorh]j)}(hjh]hdrm_print_iterator}(hjؾhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjԾubah}(h]h ](j#j$eh"]h$]h&]jUjVuh1j hjhhhjžhKubeh}(h]h ]h"]h$]h&]jUjVj.uh1jj/j0hjhhhjžhKubah}(h]jah ](j4j5eh"]h$]h&]j9j:)j;huh1jhjžhKhjhhubj=)}(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<hjhhhjžhKubeh}(h]h ](j!structeh"]h$]h&]j]j!j^jj_jj`jajbuh1jhhhj-hNhNubjd)}(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](jn)}(h**Definition**h]h Definition}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jmhjubh:}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhKhjubjF)}(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; };}hj7sbah}(h]h ]h"]h$]h&]jUjVuh1jEhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhKhjubh)}(h **Members**h]jn)}(hjHh]hMembers}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jmhjFubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhKhjubj)}(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)}(hjgh]hdata}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jhjeubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhKhjaubj)}(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}(hjhhhNhNubah}(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&]uh1jhjaubeh}(h]h ]h"]h$]h&]uh1jhj|hKhj^ubj)}(h8``start`` The offset within the buffer to start writing h](j)}(h ``start``h]j)}(hjh]hstart}(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 offset within the buffer to start writingh]h-The offset within the buffer to start writing}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhj^ubj)}(h:``remain`` The number of bytes to write for this iterationh](j)}(h ``remain``h]j)}(hjڿh]hremain}(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)}(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&]uh1jhjԿubeh}(h]h ]h"]h$]h&]uh1jhjhKhj^ubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jchj-hhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j!drm_coredump_printer (C function)c.drm_coredump_printerhNtauh1jhj-hhhNhNubj)}(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}(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0hhhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhKubj)}(h h]h }(hjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0hhhjAhKubh)}(hhh]j)}(h drm_printerh]h drm_printer}(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPubah}(h]h ]h"]h$]h&] refdomainj!reftypej reftargetjUmodnameN classnameNj j )}j ]j)}jdrm_coredump_printersbc.drm_coredump_printerasbuh1hhj0hhhjAhKubj)}(h h]h }(hjthhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0hhhjAhKubj )}(hdrm_coredump_printerh]j)}(hjqh]hdrm_coredump_printer}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](j#j$eh"]h$]h&]jUjVuh1j hj0hhhjAhKubj)}(h!(struct drm_print_iterator *iter)h]j)}(hstruct drm_print_iterator *iterh](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hdrm_print_iteratorh]hdrm_print_iterator}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj!reftypej reftargetjmodnameN classnameNj j )}j ]joc.drm_coredump_printerasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hiterh]hiter}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjUjVuh1jhjubah}(h]h ]h"]h$]h&]jUjVuh1jhj0hhhjAhKubeh}(h]h ]h"]h$]h&]jUjVj.uh1jj/j0hj,hhhjAhKubah}(h]j'ah ](j4j5eh"]h$]h&]j9j:)j;huh1jhjAhKhj)hhubj=)}(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)}(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 refexplicitrefwarnj j )}j ]joc.drm_coredump_printerasbj3 drm_printeruh1hhjݻhKhj"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.hhKhjhhubah}(h]h ]h"]h$]h&]uh1j<hj)hhhjAhKubeh}(h]h ](j!functioneh"]h$]h&]j]j!j^jbj_jbj`jajbuh1jhhhj-hNhNubjd)}(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]jn)}(hjlh]h Parameters}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jmhjjubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhKhjfubj)}(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)}(hjh]hstruct drm_print_iterator *iter}(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>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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjfubh)}(h**Description**h]jn)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jmhjubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhKhjfubh)}(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.hhKhjfubh)}(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.hhKhjfubjF)}(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&]jUjVuh1jEhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhKhjfubh)}(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.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhMhjfubh)}(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.hhMhjfubh)}(h For example::h]h For example:}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhMhjfubjF)}(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); ... }}hj6sbah}(h]h ]h"]h$]h&]jUjVuh1jEhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhM!hjfubh)}(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.}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhMDhjfubh)}(h **Return**h]jn)}(hjVh]hReturn}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jmhjTubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhMHhjfubh)}(h The :c:type:`drm_printer` objecth](hThe }(hjlhhhNhNubh)}(h:c:type:`drm_printer`h]j)}(hjvh]h drm_printer}(hjxhhhNhNubah}(h]h ](j j!c-typeeh"]h$]h&]uh1jhjtubah}(h]h ]h"]h$]h&]refdocj- refdomainj!reftypetype refexplicitrefwarnj j j3 drm_printeruh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhMIhjlubh object}(hjlhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMIhjfubeh}(h]h ] kernelindentah"]h$]h&]uh1jchj-hhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j)drm_coredump_printer_is_full (C function)c.drm_coredump_printer_is_fullhNtauh1jhj-hhhNhNubj)}(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](j))}(hj)h]hbool}(hjhhhNhNubah}(h]h ]j)ah"]h$]h&]uh1j)hjhhhZ/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&]uh1jhjhhhjhM\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 ](j#j$eh"]h$]h&]jUjVuh1j hjhhhjhM\ubj)}(h(struct drm_printer *p)h]j)}(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 classnameNj j )}j ]j)}jjsbc.drm_coredump_printer_is_fullasbuh1hhjubj)}(h h]h }(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]hp}(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjUjVuh1jhjubah}(h]h ]h"]h$]h&]jUjVuh1jhjhhhjhM\ubeh}(h]h ]h"]h$]h&]jUjVj.uh1jj/j0hjhhhjhM\ubah}(h]jah ](j4j5eh"]h$]h&]j9j:)j;huh1jhjhM\hjhhubj=)}(hhh]h)}(h#DRM coredump printer output is fullh]h#DRM coredump printer output is full}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhM\hjyhhubah}(h]h ]h"]h$]h&]uh1j<hjhhhjhM\ubeh}(h]h ](j!functioneh"]h$]h&]j]j!j^jj_jj`jajbuh1jhhhj-hNhNubjd)}(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]jn)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jmhjubah}(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/``struct drm_printer *p`` DRM coredump printer 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&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhM]hjubj)}(hhh]h)}(hDRM coredump printerh]hDRM coredump printer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM]hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM]hjubah}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]jn)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jmhjubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhM_hjubh)}(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^hjubh)}(h **Return**h]jn)}(hjh]hReturn}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1jmhjubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhMahjubh)}(hCTrue if DRM coredump printer output buffer is full, False otherwiseh]hCTrue if DRM coredump printer output buffer is full, False otherwise}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhMbhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jchj-hhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j!drm_seq_file_printer (C function)c.drm_seq_file_printerhNtauh1jhj-hhhNhNubj)}(hhh](j)}(h` to output to **Return** The :c:type:`drm_printer` objecth](h)}(h**Parameters**h]jn)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jmhjubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhMthjubj)}(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 refexplicitrefwarnj j j3seq_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&]uh1jhjubh)}(h **Return**h]jn)}(hj7h]hReturn}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jmhj5ubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhMshjubh)}(h The :c:type:`drm_printer` objecth](hThe }(hjMhhhNhNubh)}(h:c:type:`drm_printer`h]j)}(hjWh]h drm_printer}(hjYhhhNhNubah}(h]h ](j j!c-typeeh"]h$]h&]uh1jhjUubah}(h]h ]h"]h$]h&]refdocj- refdomainj!reftypetype refexplicitrefwarnj j j3 drm_printeruh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhMshjMubh object}(hjMhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjthMshjubeh}(h]h ] kernelindentah"]h$]h&]uh1jchj-hhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jdrm_info_printer (C function)c.drm_info_printerhNtauh1jhj-hhhNhNubj)}(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}(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 classnameNj j )}j ]j)}jdrm_info_printersbc.drm_info_printerasbuh1hhjhhhjhMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubj )}(hdrm_info_printerh]j)}(hjh]hdrm_info_printer}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](j#j$eh"]h$]h&]jUjVuh1j hjhhhjhMubj)}(h(struct device *dev)h]j)}(hstruct device *devh](j)}(hjh]hstruct}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hdeviceh]hdevice}(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'ubah}(h]h ]h"]h$]h&] refdomainj!reftypej reftargetj,modnameN classnameNj j )}j ]jc.drm_info_printerasbuh1hhjubj)}(h h]h }(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hdevh]hdev}(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjUjVuh1jhjubah}(h]h ]h"]h$]h&]jUjVuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jUjVj.uh1jj/j0hjhhhjhMubah}(h]jah ](j4j5eh"]h$]h&]j9j:)j;huh1jhjhMhjhhubj=)}(hhh]h)}(h>construct a :c:type:`drm_printer` that outputs to dev_printk()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 refexplicitrefwarnj j )}j ]jc.drm_info_printerasbj3 drm_printeruh1hhjݻhKhjubh that outputs to dev_printk()}(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&]j]j!j^jj_jj`jajbuh1jhhhj-hNhNubjd)}(h**Parameters** ``struct device *dev`` the :c:type:`struct device ` pointer **Return** The :c:type:`drm_printer` objecth](h)}(h**Parameters**h]jn)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jmhjubah}(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 refexplicitrefwarnj j j3deviceuh1hhj hMhjubh pointer}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj hMhj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj hMhjubah}(h]h ]h"]h$]h&]uh1jhjubh)}(h **Return**h]jn)}(hjTh]hReturn}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jmhjRubah}(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 }(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 refexplicitrefwarnj j j3 drm_printeruh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhMhjjubh object}(hjjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jchj-hhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jdrm_dbg_printer (C function)c.drm_dbg_printerhNtauh1jhj-hhhNhNubj)}(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}(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 classnameNj j )}j ]j)}jdrm_dbg_printersbc.drm_dbg_printerasbuh1hhjhhhjhMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubj )}(hdrm_dbg_printerh]j)}(hjh]hdrm_dbg_printer}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubah}(h]h ](j#j$eh"]h$]h&]jUjVuh1j hjhhhjhMubj)}(hN(struct drm_device *drm, enum drm_debug_category category, const char *prefix)h](j)}(hstruct drm_device *drmh](j)}(hjh]hstruct}(hj)hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%ubj)}(h h]h }(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%ubh)}(hhh]j)}(h drm_deviceh]h drm_device}(hjGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDubah}(h]h ]h"]h$]h&] refdomainj!reftypej reftargetjImodnameN classnameNj j )}j ]jc.drm_dbg_printerasbuh1hhj%ubj)}(h h]h }(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%ubj)}(hjh]h*}(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%ubj)}(hdrmh]hdrm}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%ubeh}(h]h ]h"]h$]h&]noemphjUjVuh1jhj!ubj)}(h enum drm_debug_category categoryh](j)}(hjUh]henum}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hdrm_debug_categoryh]hdrm_debug_category}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj!reftypej reftargetjmodnameN classnameNj j )}j ]jc.drm_dbg_printerasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hcategoryh]hcategory}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjUjVuh1jhj!ubj)}(hconst char *prefixh](j)}(hj+h]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj))}(hcharh]hchar}(hjhhhNhNubah}(h]h ]j)ah"]h$]h&]uh1j)hjubj)}(h h]h }(hj%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hprefixh]hprefix}(hj@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjUjVuh1jhj!ubeh}(h]h ]h"]h$]h&]jUjVuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jUjVj.uh1jj/j0hjhhhjhMubah}(h]jah ](j4j5eh"]h$]h&]j9j:)j;huh1jhjhMhjhhubj=)}(hhh]h)}(h@construct a :c:type:`drm_printer` for drm device specific outputh](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 refexplicitrefwarnj j )}j ]jc.drm_dbg_printerasbj3 drm_printeruh1hhjݻhKhjjubh for drm device specific output}(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<hjhhhjhMubeh}(h]h ](j!functioneh"]h$]h&]j]j!j^jj_jj`jajbuh1jhhhj-hNhNubjd)}(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]jn)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jmhjubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhMhjubj)}(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 refexplicitrefwarnj j j3 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)}(hj/h]h enum drm_debug_category category}(hj1hhhNhNubah}(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.hhMhj)ubj)}(hhh]h)}(hthe debug category to useh]hthe debug category to use}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjDhMhjEubah}(h]h ]h"]h$]h&]uh1jhj)ubeh}(h]h ]h"]h$]h&]uh1jhjDhMhjubj)}(hB``const char *prefix`` debug output prefix, or NULL for no prefix h](j)}(h``const char *prefix``h]j)}(hjhh]hconst char *prefix}(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.hhMhjbubj)}(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&]uh1hhj}hMhj~ubah}(h]h ]h"]h$]h&]uh1jhjbubeh}(h]h ]h"]h$]h&]uh1jhj}hMhjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h **Return**h]jn)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jmhjubah}(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 }(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 refexplicitrefwarnj j j3 drm_printeruh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhMhjubh object}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jchj-hhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jdrm_err_printer (C function)c.drm_err_printerhNtauh1jhj-hhhNhNubj)}(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}(hj hhhNhNubah}(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}(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'ubah}(h]h ]h"]h$]h&] refdomainj!reftypej reftargetj,modnameN classnameNj j )}j ]j)}jdrm_err_printersbc.drm_err_printerasbuh1hhjhhhjhMubj)}(h h]h }(hjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubj )}(hdrm_err_printerh]j)}(hjHh]hdrm_err_printer}(hj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubah}(h]h ](j#j$eh"]h$]h&]jUjVuh1j hjhhhjhMubj)}(h,(struct drm_device *drm, const char *prefix)h](j)}(hstruct drm_device *drmh](j)}(hjh]hstruct}(hjxhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjtubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjtubh)}(hhh]j)}(h drm_deviceh]h drm_device}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj!reftypej reftargetjmodnameN classnameNj j )}j ]jFc.drm_err_printerasbuh1hhjtubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjtubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjtubj)}(hdrmh]hdrm}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjtubeh}(h]h ]h"]h$]h&]noemphjUjVuh1jhjpubj)}(hconst char *prefixh](j)}(hj+h]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj))}(hcharh]hchar}(hjhhhNhNubah}(h]h ]j)ah"]h$]h&]uh1j)hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hprefixh]hprefix}(hj,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjUjVuh1jhjpubeh}(h]h ]h"]h$]h&]jUjVuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jUjVj.uh1jj/j0hjhhhjhMubah}(h]jah ](j4j5eh"]h$]h&]j9j:)j;huh1jhjhMhjhhubj=)}(hhh]h)}(h;construct a :c:type:`drm_printer` that outputs to drm_err()h](h construct a }(hjVhhhNhNubh)}(h:c:type:`drm_printer`h]j)}(hj`h]h drm_printer}(hjbhhhNhNubah}(h]h ](j j!c-typeeh"]h$]h&]uh1jhj^ubah}(h]h ]h"]h$]h&]refdocj- refdomainj!reftypetype refexplicitrefwarnj j )}j ]jFc.drm_err_printerasbj3 drm_printeruh1hhjݻhKhjVubh that outputs to drm_err()}(hjVhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhMhjShhubah}(h]h ]h"]h$]h&]uh1j<hjhhhjhMubeh}(h]h ](j!functioneh"]h$]h&]j]j!j^jj_jj`jajbuh1jhhhj-hNhNubjd)}(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]jn)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jmhjubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhMhjubj)}(hhh](j)}(hP``struct drm_device *drm`` the :c:type:`struct drm_device ` pointer 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)}(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 refexplicitrefwarnj j j3 drm_deviceuh1hhjhMhjubh pointer}(hjhhhNhNubeh}(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)}(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}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj0hMhj1ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj0hMhjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h **Return**h]jn)}(hjVh]hReturn}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jmhjTubah}(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 }(hjlhhhNhNubh)}(h:c:type:`drm_printer`h]j)}(hjvh]h drm_printer}(hjxhhhNhNubah}(h]h ](j j!c-typeeh"]h$]h&]uh1jhjtubah}(h]h ]h"]h$]h&]refdocj- refdomainj!reftypetype refexplicitrefwarnj j j3 drm_printeruh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhMhjlubh object}(hjlhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jchj-hhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jdrm_line_printer (C function)c.drm_line_printerhNtauh1jhj-hhhNhNubj)}(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}(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 classnameNj j )}j ]j)}jdrm_line_printersbc.drm_line_printerasbuh1hhjhhhjhMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubj )}(hdrm_line_printerh]j)}(hjh]hdrm_line_printer}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubah}(h]h ](j#j$eh"]h$]h&]jUjVuh1j hjhhhjhMubj)}(h@(struct drm_printer *p, const char *prefix, unsigned int series)h](j)}(hstruct drm_printer *ph](j)}(hjh]hstruct}(hj+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'ubj)}(h h]h }(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'ubh)}(hhh]j)}(h drm_printerh]h drm_printer}(hjIhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjFubah}(h]h ]h"]h$]h&] refdomainj!reftypej reftargetjKmodnameN classnameNj j )}j ]jc.drm_line_printerasbuh1hhj'ubj)}(h h]h }(hjghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'ubj)}(hjh]h*}(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'ubj)}(hjh]hp}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'ubeh}(h]h ]h"]h$]h&]noemphjUjVuh1jhj#ubj)}(hconst char *prefixh](j)}(hj+h]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj))}(hcharh]hchar}(hjhhhNhNubah}(h]h ]j)ah"]h$]h&]uh1j)hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hprefixh]hprefix}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjUjVuh1jhj#ubj)}(hunsigned int seriesh](j))}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]j)ah"]h$]h&]uh1j)hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj))}(hinth]hint}(hjhhhNhNubah}(h]h ]j)ah"]h$]h&]uh1j)hjubj)}(h h]h }(hj!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hseriesh]hseries}(hj/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjUjVuh1jhj#ubeh}(h]h ]h"]h$]h&]jUjVuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jUjVj.uh1jj/j0hjhhhjhMubah}(h]jah ](j4j5eh"]h$]h&]j9j:)j;huh1jhjhMhjhhubj=)}(hhh]h)}(hIconstruct a :c:type:`drm_printer` that prefixes outputs with line numbersh](h construct a }(hjYhhhNhNubh)}(h:c:type:`drm_printer`h]j)}(hjch]h drm_printer}(hjehhhNhNubah}(h]h ](j j!c-typeeh"]h$]h&]uh1jhjaubah}(h]h ]h"]h$]h&]refdocj- refdomainj!reftypetype refexplicitrefwarnj j )}j ]jc.drm_line_printerasbj3 drm_printeruh1hhjݻhKhjYubh( that prefixes outputs with line numbers}(hjYhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhMhjVhhubah}(h]h ]h"]h$]h&]uh1j<hjhhhjhMubeh}(h]h ](j!functioneh"]h$]h&]j]j!j^jj_jj`jajbuh1jhhhj-hNhNubjd)}(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]jn)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jmhjubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhMhjubj)}(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&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhMhjubj)}(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 refexplicitrefwarnj j j3 drm_printeruh1hhjhMhjubh$ which actually generates the output}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(hE``const char *prefix`` optional output prefix, or NULL for no prefix h](j)}(h``const char *prefix``h]j)}(hjh]hconst char *prefix}(hj hhhNhNubah}(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}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj3hMhj4ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj3hMhjubj)}(ha``unsigned int series`` optional unique series identifier, or 0 to omit identifier in the output h](j)}(h``unsigned int series``h]j)}(hjWh]hunsigned int series}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjUubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhMhjQubj)}(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}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1hhjlhMhjmubah}(h]h ]h"]h$]h&]uh1jhjQubeh}(h]h ]h"]h$]h&]uh1jhjlhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]jn)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jmhjubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhMhjubh)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhMhjubh)}(h Example 1::h]h Example 1:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhMhjubjF)}(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&]jUjVuh1jEhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhMhjubh)}(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.hhMhjubjF)}(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&]jUjVuh1jEhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhMhjubh)}(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.hhMhjubjF)}(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&]jUjVuh1jEhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhMhjubh)}(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.hhMhjubjF)}(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}hj sbah}(h]h ]h"]h$]h&]jUjVuh1jEhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhMhjubh)}(h **Return**h]jn)}(hj1h]hReturn}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jmhj/ubah}(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 }(hjGhhhNhNubh)}(h:c:type:`drm_printer`h]j)}(hjQh]h drm_printer}(hjShhhNhNubah}(h]h ](j j!c-typeeh"]h$]h&]uh1jhjOubah}(h]h ]h"]h$]h&]refdocj- refdomainj!reftypetype refexplicitrefwarnj j j3 drm_printeruh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhMhjGubh object}(hjGhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjnhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jchj-hhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jDRM_DEV_ERROR (C macro)c.DRM_DEV_ERRORhNtauh1jhj-hhhNhNubj)}(hhh](j)}(h DRM_DEV_ERRORh]j)}(h DRM_DEV_ERRORh]j )}(h DRM_DEV_ERRORh]j)}(hjh]h DRM_DEV_ERROR}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](j#j$eh"]h$]h&]jUjVuh1j hjhhhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhMubah}(h]h ]h"]h$]h&]jUjVj.uh1jj/j0hjhhhjhMubah}(h]jah ](j4j5eh"]h$]h&]j9j:)j;huh1jhjhMhjhhubj=)}(hhh]h}(h]h ]h"]h$]h&]uh1j<hjhhhjhMubeh}(h]h ](j!macroeh"]h$]h&]j]j!j^jj_jj`jajbuh1jhhhj-hNhNubh)}(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.hhMhj-hhubj:')}(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&]uh1j9'hjhMhj-hhubjd)}(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]jn)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jmhjubah}(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)}(hj#h]hdev}(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)}(hdevice pointerh]hdevice pointer}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj8hMhj9ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj8hMhjubj)}(h%``fmt`` printf() like format string. h](j)}(h``fmt``h]j)}(hj\h]hfmt}(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.hhM hjVubj)}(hhh]h)}(hprintf() like format string.h]hprintf() like format string.}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjqhM hjrubah}(h]h ]h"]h$]h&]uh1jhjVubeh}(h]h ]h"]h$]h&]uh1jhjqhM hjubj)}(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&]uh1jhjhKhjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**NOTE**h]jn)}(hjh]hNOTE}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jmhjubah}(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&]uh1jchj-hhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j#DRM_DEV_ERROR_RATELIMITED (C macro)c.DRM_DEV_ERROR_RATELIMITEDhNtauh1jhj-hhhNhNubj)}(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 ](j#j$eh"]h$]h&]jUjVuh1j hjhhhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhMubah}(h]h ]h"]h$]h&]jUjVj.uh1jj/j0hj hhhj,hMubah}(h]jah ](j4j5eh"]h$]h&]j9j:)j;huh1jhj,hMhj hhubj=)}(hhh]h}(h]h ]h"]h$]h&]uh1j<hj hhhj,hMubeh}(h]h ](j!macroeh"]h$]h&]j]j!j^jEj_jEj`jajbuh1jhhhj-hNhNubh)}(h-``DRM_DEV_ERROR_RATELIMITED (dev, fmt, ...)``h]j)}(hjKh]h)DRM_DEV_ERROR_RATELIMITED (dev, fmt, ...)}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjIubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhMhj-hhubj:')}(hRate limited error output. h]h)}(hRate limited error output.h]hRate limited error output.}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhMhjaubah}(h]h ]h"]h$]h&]uh1j9'hjshMhj-hhubjd)}(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]jn)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jmhj~ubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhMhjzubj)}(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.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&]uh1jhjhMhjubj)}(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.hhKhj ubj)}(hhh]h)}(hvariable argumentsh]hvariable arguments}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj&hKhj'ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj&hKhjubeh}(h]h ]h"]h$]h&]uh1jhjzubh)}(h**NOTE**h]jn)}(hjLh]hNOTE}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jmhjJubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhKhjzubh)}(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().}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhMhjzubh)}(h**Description**h]jn)}(hjsh]h Description}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1jmhjqubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhMhjzubh)}(h)Like DRM_ERROR() but won't flood the log.h]h+Like DRM_ERROR() but won’t flood the log.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhMhjzubeh}(h]h ] kernelindentah"]h$]h&]uh1jchj-hhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jDRM_DEV_DEBUG (C macro)c.DRM_DEV_DEBUGhNtauh1jhj-hhhNhNubj)}(hhh](j)}(h DRM_DEV_DEBUGh]j)}(h DRM_DEV_DEBUGh]j )}(h DRM_DEV_DEBUGh]j)}(hjh]h DRM_DEV_DEBUG}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](j#j$eh"]h$]h&]jUjVuh1j hjhhhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhM;ubah}(h]h ]h"]h$]h&]jUjVj.uh1jj/j0hjhhhjhM;ubah}(h]jah ](j4j5eh"]h$]h&]j9j:)j;huh1jhjhM;hjhhubj=)}(hhh]h}(h]h ]h"]h$]h&]uh1j<hjhhhjhM;ubeh}(h]h ](j!macroeh"]h$]h&]j]j!j^jj_jj`jajbuh1jhhhj-hNhNubh)}(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=hj-hhubj:')}(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&]uh1j9'hjhM;hj-hhubjd)}(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]jn)}(hj#h]h Parameters}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1jmhj!ubah}(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)}(hjBh]hdev}(hjDhhhNhNubah}(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.hhM?hj<ubj)}(hhh]h)}(hdevice pointerh]hdevice pointer}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjWhM?hjXubah}(h]h ]h"]h$]h&]uh1jhj<ubeh}(h]h ]h"]h$]h&]uh1jhjWhM?hj9ubj)}(h%``fmt`` printf() like format string. h](j)}(h``fmt``h]j)}(hj{h]hfmt}(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.hhM@hjuubj)}(hhh]h)}(hprintf() like format string.h]hprintf() like format string.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM@hjubah}(h]h ]h"]h$]h&]uh1jhjuubeh}(h]h ]h"]h$]h&]uh1jhjhM@hj9ubj)}(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&]uh1jhjhKhj9ubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**NOTE**h]jn)}(hjh]hNOTE}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jmhjubah}(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&]uh1jchj-hhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jDRM_DEV_DEBUG_DRIVER (C macro)c.DRM_DEV_DEBUG_DRIVERhNtauh1jhj-hhhNhNubj)}(hhh](j)}(hDRM_DEV_DEBUG_DRIVERh]j)}(hDRM_DEV_DEBUG_DRIVERh]j )}(hDRM_DEV_DEBUG_DRIVERh]j)}(hj.h]hDRM_DEV_DEBUG_DRIVER}(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4ubah}(h]h ](j#j$eh"]h$]h&]jUjVuh1j hj0hhhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhMEubah}(h]h ]h"]h$]h&]jUjVj.uh1jj/j0hj,hhhjKhMEubah}(h]j'ah ](j4j5eh"]h$]h&]j9j:)j;huh1jhjKhMEhj)hhubj=)}(hhh]h}(h]h ]h"]h$]h&]uh1j<hj)hhhjKhMEubeh}(h]h ](j!macroeh"]h$]h&]j]j!j^jdj_jdj`jajbuh1jhhhj-hNhNubh)}(h(``DRM_DEV_DEBUG_DRIVER (dev, fmt, ...)``h]j)}(hjjh]h$DRM_DEV_DEBUG_DRIVER (dev, fmt, ...)}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhMGhj-hhubj:')}(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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhMEhjubah}(h]h ]h"]h$]h&]uh1j9'hjhMEhj-hhubjd)}(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]jn)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jmhjubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhMIhjubj)}(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.hhMIhjubj)}(hhh]h)}(hdevice pointerh]hdevice pointer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMIhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMIhjubj)}(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&]uh1hhj hMJhj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj hMJhjubj)}(h``...`` variable arguments h](j)}(h``...``h]j)}(hj0h]h...}(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)}(hvariable argumentsh]hvariable arguments}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjEhKhjFubah}(h]h ]h"]h$]h&]uh1jhj*ubeh}(h]h ]h"]h$]h&]uh1jhjEhKhjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**NOTE**h]jn)}(hjkh]hNOTE}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jmhjiubah}(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_dbg() or dev_dbg().h]h6this is deprecated in favor of drm_dbg() or dev_dbg().}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhMGhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jchj-hhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jDRM_DEV_DEBUG_KMS (C macro)c.DRM_DEV_DEBUG_KMShNtauh1jhj-hhhNhNubj)}(hhh](j)}(hDRM_DEV_DEBUG_KMSh]j)}(hDRM_DEV_DEBUG_KMSh]j )}(hDRM_DEV_DEBUG_KMSh]j)}(hjh]hDRM_DEV_DEBUG_KMS}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](j#j$eh"]h$]h&]jUjVuh1j hjhhhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhMOubah}(h]h ]h"]h$]h&]jUjVj.uh1jj/j0hjhhhjhMOubah}(h]jah ](j4j5eh"]h$]h&]j9j:)j;huh1jhjhMOhjhhubj=)}(hhh]h}(h]h ]h"]h$]h&]uh1j<hjhhhjhMOubeh}(h]h ](j!macroeh"]h$]h&]j]j!j^jj_jj`jajbuh1jhhhj-hNhNubh)}(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.hhMQhj-hhubj:')}(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&]uh1j9'hjhMOhj-hhubjd)}(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]jn)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jmhjubah}(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)}(hj:h]hdev}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj8ubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhMShj4ubj)}(hhh]h)}(hdevice pointerh]hdevice pointer}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1hhjOhMShjPubah}(h]h ]h"]h$]h&]uh1jhj4ubeh}(h]h ]h"]h$]h&]uh1jhjOhMShj1ubj)}(h%``fmt`` printf() like format string. h](j)}(h``fmt``h]j)}(hjsh]hfmt}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjqubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhMThjmubj)}(hhh]h)}(hprintf() like format string.h]hprintf() like format string.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMThjubah}(h]h ]h"]h$]h&]uh1jhjmubeh}(h]h ]h"]h$]h&]uh1jhjhMThj1ubj)}(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&]uh1jhjhKhj1ubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**NOTE**h]jn)}(hjh]hNOTE}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jmhjubah}(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&]uh1jchj-hhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jdrm_puts (C function) c.drm_putshNtauh1jhj-hhhNhNubj)}(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](j))}(hvoidh]hvoid}(hj,hhhNhNubah}(h]h ]j)ah"]h$]h&]uh1j)hj(hhh^/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:167: ./drivers/gpu/drm/drm_print.chKubj)}(h h]h }(hj;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj(hhhj:hKubj )}(hdrm_putsh]j)}(hdrm_putsh]hdrm_puts}(hjMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjIubah}(h]h ](j#j$eh"]h$]h&]jUjVuh1j hj(hhhj:hKubj)}(h((struct drm_printer *p, const char *str)h](j)}(hstruct drm_printer *ph](j)}(hjh]hstruct}(hjihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeubj)}(h h]h }(hjvhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeubh)}(hhh]j)}(h drm_printerh]h drm_printer}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj!reftypej reftargetjmodnameN classnameNj j )}j ]j)}jjOsb c.drm_putsasbuh1hhjeubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeubj)}(hjh]hp}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeubeh}(h]h ]h"]h$]h&]noemphjUjVuh1jhjaubj)}(hconst char *strh](j)}(hj+h]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj))}(hcharh]hchar}(hjhhhNhNubah}(h]h ]j)ah"]h$]h&]uh1j)hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hstrh]hstr}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjUjVuh1jhjaubeh}(h]h ]h"]h$]h&]jUjVuh1jhj(hhhj:hKubeh}(h]h ]h"]h$]h&]jUjVj.uh1jj/j0hj$hhhj:hKubah}(h]jah ](j4j5eh"]h$]h&]j9j:)j;huh1jhj:hKhj!hhubj=)}(hhh]h)}(h6print a const string to a :c:type:`drm_printer` streamh](hprint a const string to a }(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 refexplicitrefwarnj j )}j ]j c.drm_putsasbj3 drm_printeruh1hhj:hKhjHubh stream}(hjHhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh^/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:167: ./drivers/gpu/drm/drm_print.chKhjEhhubah}(h]h ]h"]h$]h&]uh1j<hj!hhhj:hKubeh}(h]h ](j!functioneh"]h$]h&]j]j!j^jj_jj`jajbuh1jhhhj-hNhNubjd)}(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]jn)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jmhjubah}(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)}(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:167: ./drivers/gpu/drm/drm_print.chKhjubj)}(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 refexplicitrefwarnj j j3drmuh1hhjhKhjubh printer}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubj)}(h!``const char *str`` const string h](j)}(h``const char *str``h]j)}(hj h]hconst char *str}(hjhhhNhNubah}(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.chMhjubj)}(hhh]h)}(h const stringh]h const string}(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&]uh1jhjubh)}(h**Description**h]jn)}(hjHh]h Description}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jmhjFubah}(h]h ]h"]h$]h&]uh1hh^/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:167: ./drivers/gpu/drm/drm_print.chMhjubh)}(hOAllow :c:type:`drm_printer` types that have a constant string option to use it.h](hAllow }(hj^hhhNhNubh)}(h:c:type:`drm_printer`h]j)}(hjhh]h drm_printer}(hjjhhhNhNubah}(h]h ](j j!c-typeeh"]h$]h&]uh1jhjfubah}(h]h ]h"]h$]h&]refdocj- refdomainj!reftypetype refexplicitrefwarnj j j3 drm_printeruh1hh^/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:167: ./drivers/gpu/drm/drm_print.chMhj^ubh4 types that have a constant string option to use it.}(hj^hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jchj-hhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jdrm_printf (C function) c.drm_printfhNtauh1jhj-hhhNhNubj)}(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](j))}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j)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 )}(h drm_printfh]j)}(h drm_printfh]h drm_printf}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](j#j$eh"]h$]h&]jUjVuh1j hjhhhjhMubj)}(h+(struct drm_printer *p, const char *f, ...)h](j)}(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}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj!reftypej reftargetj modnameN classnameNj j )}j ]j)}jjsb c.drm_printfasbuh1hhjubj)}(h h]h }(hj+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]hp}(hjFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjUjVuh1jhjubj)}(h const char *fh](j)}(hj+h]hconst}(hj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZubj)}(h h]h }(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZubj))}(hcharh]hchar}(hjyhhhNhNubah}(h]h ]j)ah"]h$]h&]uh1j)hjZubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZubj)}(hjch]hf}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZubeh}(h]h ]h"]h$]h&]noemphjUjVuh1jhjubj)}(h...h]j)}(hjųh]h...}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]noemphjUjVuh1jhjubeh}(h]h ]h"]h$]h&]jUjVuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jUjVj.uh1jj/j0hjhhhjhMubah}(h]jah ](j4j5eh"]h$]h&]j9j:)j;huh1jhjhMhjhhubj=)}(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 refexplicitrefwarnj j )}j ]j' c.drm_printfasbj3 drm_printeruh1hhj:hKhjubh 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&]j]j!j^j#j_j#j`jajbuh1jhhhj-hNhNubjd)}(h**Parameters** ``struct drm_printer *p`` the :c:type:`drm_printer` ``const char *f`` format string ``...`` variable argumentsh](h)}(h**Parameters**h]jn)}(hj-h]h Parameters}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1jmhj+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)}(hjLh]hstruct drm_printer *p}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjJubah}(h]h ]h"]h$]h&]uh1jh^/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:167: ./drivers/gpu/drm/drm_print.chMhjFubj)}(hhh]h)}(hthe :c:type:`drm_printer`h](hthe }(hjehhhNhNubh)}(h:c:type:`drm_printer`h]j)}(hjoh]h drm_printer}(hjqhhhNhNubah}(h]h ](j j!c-typeeh"]h$]h&]uh1jhjmubah}(h]h ]h"]h$]h&]refdocj- refdomainj!reftypetype refexplicitrefwarnj j j3 drm_printeruh1hhjahMhjeubeh}(h]h ]h"]h$]h&]uh1hhjahMhjbubah}(h]h ]h"]h$]h&]uh1jhjFubeh}(h]h ]h"]h$]h&]uh1jhjahMhjCubj)}(h ``const char *f`` format string h](j)}(h``const char *f``h]j)}(hjh]h const char *f}(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 format stringh]h format string}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjCubj)}(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&]uh1jhjhMhjCubeh}(h]h ]h"]h$]h&]uh1jhj'ubeh}(h]h ] kernelindentah"]h$]h&]uh1jchj-hhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jdrm_print_bits (C function)c.drm_print_bitshNtauh1jhj-hhhNhNubj)}(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](j))}(hvoidh]hvoid}(hj7hhhNhNubah}(h]h ]j)ah"]h$]h&]uh1j)hj3hhh^/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:167: ./drivers/gpu/drm/drm_print.chMubj)}(h h]h }(hjF=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3hhhjEhMubj )}(hdrm_print_bitsh]j)}(hdrm_print_bitsh]hdrm_print_bits}(hjXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjTubah}(h]h ](j#j$eh"]h$]h&]jUjVuh1j hj3hhhjEhMubj)}(hZ(struct drm_printer *p, unsigned long value, const char *const bits[], unsigned int nbits)h](j)}(hstruct drm_printer *ph](j)}(hjh]hstruct}(hjthhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjpubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjpubh)}(hhh]j)}(h drm_printerh]h drm_printer}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj!reftypej reftargetjmodnameN classnameNj j )}j ]j)}jjZsbc.drm_print_bitsasbuh1hhjpubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjpubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjpubj)}(hjh]hp}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjpubeh}(h]h ]h"]h$]h&]noemphjUjVuh1jhjlubj)}(hunsigned long valueh](j))}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]j)ah"]h$]h&]uh1j)hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj))}(hlongh]hlong}(hjhhhNhNubah}(h]h ]j)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&]noemphjUjVuh1jhjlubj)}(hconst char *const bits[]h](j)}(hj+h]hconst}(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2ubj)}(h h]h }(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2ubj))}(hcharh]hchar}(hjQhhhNhNubah}(h]h ]j)ah"]h$]h&]uh1j)hj2ubj)}(h h]h }(hj_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2ubj)}(hjh]h*}(hjmhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2ubj)}(hj+h]hconst}(hjzhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2ubj)}(hbitsh]hbits}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2ubj)}(h[h]h[}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2ubj)}(h]h]h]}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2ubeh}(h]h ]h"]h$]h&]noemphjUjVuh1jhjlubj)}(hunsigned int nbitsh](j))}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]j)ah"]h$]h&]uh1j)hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj))}(hinth]hint}(hjhhhNhNubah}(h]h ]j)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&]noemphjUjVuh1jhjlubeh}(h]h ]h"]h$]h&]jUjVuh1jhj3hhhjEhMubeh}(h]h ]h"]h$]h&]jUjVj.uh1jj/j0hj/hhhjEhMubah}(h]j*ah ](j4j5eh"]h$]h&]j9j:)j;huh1jhjEhMhj,hhubj=)}(hhh]h)}(h,print bits to a :c:type:`drm_printer` streamh](hprint bits to a }(hj,hhhNhNubh)}(h:c:type:`drm_printer`h]j)}(hj6h]h drm_printer}(hj8hhhNhNubah}(h]h ](j j!c-typeeh"]h$]h&]uh1jhj4ubah}(h]h ]h"]h$]h&]refdocj- refdomainj!reftypetype refexplicitrefwarnj j )}j ]jc.drm_print_bitsasbj3 drm_printeruh1hhj:hKhj,ubh stream}(hj,hhhNhNubeh}(h]h ]h"]h$]h&]uh1hh^/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:167: ./drivers/gpu/drm/drm_print.chMhj)hhubah}(h]h ]h"]h$]h&]uh1j<hj,hhhjEhMubeh}(h]h ](j!functioneh"]h$]h&]j]j!j^jlj_jlj`jajbuh1jhhhj-hNhNubjd)}(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]jn)}(hjvh]h Parameters}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jmhjtubah}(h]h ]h"]h$]h&]uh1hh^/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:167: ./drivers/gpu/drm/drm_print.chM"hjpubj)}(hhh](j)}(h4``struct drm_printer *p`` the :c:type:`drm_printer` 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:167: ./drivers/gpu/drm/drm_print.chM"hjubj)}(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 refexplicitrefwarnj j j3 drm_printeruh1hhjhM"hjubeh}(h]h ]h"]h$]h&]uh1hhjhM"hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM"hjubj)}(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#hjubj)}(h4``const char * const bits[]`` Array with bit names. h](j)}(h``const char * const bits[]``h]j)}(hj&h]hconst char * const bits[]}(hj(hhhNhNubah}(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.chM$hj ubj)}(hhh]h)}(hArray with bit names.h]hArray with bit names.}(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$hjubj)}(h0``unsigned int nbits`` Size of bit names array. h](j)}(h``unsigned int nbits``h]j)}(hj_h]hunsigned int nbits}(hjahhhNhNubah}(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.chM%hjYubj)}(hhh]h)}(hSize of bit names array.h]hSize of bit names array.}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjthM%hjuubah}(h]h ]h"]h$]h&]uh1jhjYubeh}(h]h ]h"]h$]h&]uh1jhjthM%hjubeh}(h]h ]h"]h$]h&]uh1jhjpubh)}(h**Description**h]jn)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jmhjubah}(h]h ]h"]h$]h&]uh1hh^/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:167: ./drivers/gpu/drm/drm_print.chM'hjpubh)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh^/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:167: ./drivers/gpu/drm/drm_print.chMhjpubeh}(h]h ] kernelindentah"]h$]h&]uh1jchj-hhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jdrm_print_regset32 (C function)c.drm_print_regset32hNtauh1jhj-hhhNhNubj)}(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](j))}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j)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 ](j#j$eh"]h$]h&]jUjVuh1j hjhhhjhMpubj)}(h8(struct drm_printer *p, struct debugfs_regset32 *regset)h](j)}(hstruct drm_printer *ph](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_printerh]h drm_printer}(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7ubah}(h]h ]h"]h$]h&] refdomainj!reftypej reftargetj<modnameN classnameNj j )}j ]j)}jjsbc.drm_print_regset32asbuh1hhjubj)}(h h]h }(hjZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]hp}(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjUjVuh1jhjubj)}(hstruct debugfs_regset32 *regseth](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hdebugfs_regset32h]hdebugfs_regset32}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj!reftypej reftargetjmodnameN classnameNj j )}j ]jVc.drm_print_regset32asbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hregseth]hregset}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjUjVuh1jhjubeh}(h]h ]h"]h$]h&]jUjVuh1jhjhhhjhMpubeh}(h]h ]h"]h$]h&]jUjVj.uh1jj/j0hjhhhjhMpubah}(h]jah ](j4j5eh"]h$]h&]j9j:)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 refexplicitrefwarnj j )}j ]jVc.drm_print_regset32asbj3 drm_printeruh1hhj:hKhjubh stream.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh^/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:167: ./drivers/gpu/drm/drm_print.chMphj hhubah}(h]h ]h"]h$]h&]uh1j<hjhhhjhMpubeh}(h]h ](j!functioneh"]h$]h&]j]j!j^jNj_jNj`jajbuh1jhhhj-hNhNubjd)}(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]jn)}(hjXh]h Parameters}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jmhjVubah}(h]h ]h"]h$]h&]uh1hh^/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:167: ./drivers/gpu/drm/drm_print.chMthjRubj)}(hhh](j)}(h4``struct drm_printer *p`` the :c:type:`drm` printer h](j)}(h``struct drm_printer *p``h]j)}(hjwh]hstruct drm_printer *p}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjuubah}(h]h ]h"]h$]h&]uh1jh^/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:167: ./drivers/gpu/drm/drm_print.chMshjqubj)}(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 refexplicitrefwarnj j j3drmuh1hhjhMshjubh printer}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMshjubah}(h]h ]h"]h$]h&]uh1jhjqubeh}(h]h ]h"]h$]h&]uh1jhjhMshjnubj)}(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&]uh1jhjhMthjnubeh}(h]h ]h"]h$]h&]uh1jhjRubh)}(h**Description**h]jn)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jmhj ubah}(h]h ]h"]h$]h&]uh1hh^/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:167: ./drivers/gpu/drm/drm_print.chMvhjRubh)}(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.}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1hh^/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:167: ./drivers/gpu/drm/drm_print.chMuhjRubeh}(h]h ] kernelindentah"]h$]h&]uh1jchj-hhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jdrm_print_hex_dump (C function)c.drm_print_hex_dumphNtauh1jhj-hhhNhNubj)}(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](j))}(hvoidh]hvoid}(hjShhhNhNubah}(h]h ]j)ah"]h$]h&]uh1j)hjOhhh^/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:167: ./drivers/gpu/drm/drm_print.chMubj)}(h h]h }(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOhhhjahMubj )}(hdrm_print_hex_dumph]j)}(hdrm_print_hex_dumph]hdrm_print_hex_dump}(hjthhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjpubah}(h]h ](j#j$eh"]h$]h&]jUjVuh1j hjOhhhjahMubj)}(hF(struct drm_printer *p, const char *prefix, const u8 *buf, size_t len)h](j)}(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 classnameNj j )}j ]j)}jjvsbc.drm_print_hex_dumpasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]hp}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjUjVuh1jhjubj)}(hconst char *prefixh](j)}(hj+h]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj))}(hcharh]hchar}(hjhhhNhNubah}(h]h ]j)ah"]h$]h&]uh1j)hjubj)}(h h]h }(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hprefixh]hprefix}(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjUjVuh1jhjubj)}(h const u8 *bufh](j)}(hj+h]hconst}(hj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZubj)}(h h]h }(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZubh)}(hhh]j)}(hu8h]hu8}(hj|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyubah}(h]h ]h"]h$]h&] refdomainj!reftypej reftargetj~modnameN classnameNj j )}j ]jc.drm_print_hex_dumpasbuh1hhjZubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZubj)}(hbufh]hbuf}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZubeh}(h]h ]h"]h$]h&]noemphjUjVuh1jhjubj)}(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 classnameNj j )}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&]noemphjUjVuh1jhjubeh}(h]h ]h"]h$]h&]jUjVuh1jhjOhhhjahMubeh}(h]h ]h"]h$]h&]jUjVj.uh1jj/j0hjKhhhjahMubah}(h]jFah ](j4j5eh"]h$]h&]j9j:)j;huh1jhjahMhjHhhubj=)}(hhh]h)}(h2print a hex dump to a :c:type:`drm_printer` streamh](hprint a hex dump to 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 refexplicitrefwarnj j )}j ]jc.drm_print_hex_dumpasbj3 drm_printeruh1hhj:hKhj'ubh stream}(hj'hhhNhNubeh}(h]h ]h"]h$]h&]uh1hh^/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:167: ./drivers/gpu/drm/drm_print.chMhj$hhubah}(h]h ]h"]h$]h&]uh1j<hjHhhhjahMubeh}(h]h ](j!functioneh"]h$]h&]j]j!j^jgj_jgj`jajbuh1jhhhj-hNhNubjd)}(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]jn)}(hjqh]h Parameters}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1jmhjoubah}(h]h ]h"]h$]h&]uh1hh^/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:167: ./drivers/gpu/drm/drm_print.chMhjkubj)}(hhh](j)}(h4``struct drm_printer *p`` The :c:type:`drm_printer` 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:167: ./drivers/gpu/drm/drm_print.chMhjubj)}(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 refexplicitrefwarnj j j3 drm_printeruh1hhjhMhjubeh}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(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&]uh1jhjhMhjubj)}(h!``const u8 *buf`` Buffer to dump h](j)}(h``const u8 *buf``h]j)}(hj!h]h const u8 *buf}(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)}(hBuffer to dumph]hBuffer to dump}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj6hMhj7ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj6hMhjubj)}(h ``size_t len`` Length of buffer h](j)}(h``size_t len``h]j)}(hjZh]h size_t len}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjXubah}(h]h ]h"]h$]h&]uh1jh^/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:167: ./drivers/gpu/drm/drm_print.chMhjTubj)}(hhh]h)}(hLength of bufferh]hLength of buffer}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1hhjohMhjpubah}(h]h ]h"]h$]h&]uh1jhjTubeh}(h]h ]h"]h$]h&]uh1jhjohMhjubeh}(h]h ]h"]h$]h&]uh1jhjkubh)}(h**Description**h]jn)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jmhjubah}(h]h ]h"]h$]h&]uh1hh^/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:167: ./drivers/gpu/drm/drm_print.chMhjkubh)}(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 }(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 refexplicitrefwarnj j j3 drm_printeruh1hh^/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:167: ./drivers/gpu/drm/drm_print.chMhjubhx, with 16 space-separated hex bytes per line, optionally with a prefix on each line. No separator is added after prefix.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMhjkubeh}(h]h ] kernelindentah"]h$]h&]uh1jchj-hhhNhNubeh}(h]printerah ]h"]printerah$]h&]uh1hhjhhhhhKubh)}(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](j))}(hj)h]hbool}(hj%hhhNhNubah}(h]h ]j)ah"]h$]h&]uh1j)hj!hhhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:176: ./include/drm/drm_util.hhK4ubj)}(h h]h }(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!hhhj2hK4ubj )}(h drm_can_sleeph]j)}(h drm_can_sleeph]h drm_can_sleep}(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjAubah}(h]h ](j#j$eh"]h$]h&]jUjVuh1j hj!hhhj2hK4ubj)}(h(void)h]j)}(hvoidh]j))}(hvoidh]hvoid}(hjahhhNhNubah}(h]h ]j)ah"]h$]h&]uh1j)hj]ubah}(h]h ]h"]h$]h&]noemphjUjVuh1jhjYubah}(h]h ]h"]h$]h&]jUjVuh1jhj!hhhj2hK4ubeh}(h]h ]h"]h$]h&]jUjVj.uh1jj/j0hjhhhj2hK4ubah}(h]jah ](j4j5eh"]h$]h&]j9j:)j;huh1jhj2hK4hjhhubj=)}(hhh]h)}(h'returns true if currently okay to sleeph]h'returns true if currently okay to sleep}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:176: ./include/drm/drm_util.hhK4hjhhubah}(h]h ]h"]h$]h&]uh1j<hjhhhj2hK4ubeh}(h]h ](j!functioneh"]h$]h&]j]j!j^jj_jj`jajbuh1jhhhjhNhNubjd)}(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]jn)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jmhjubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:176: ./include/drm/drm_util.hhK8hjubj)}(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&]uh1jhjubh)}(h**Description**h]jn)}(hjh]h Description}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jmhjubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:176: ./include/drm/drm_util.hhKhjubh)}(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.hhK5hjubh)}(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)}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:176: ./include/drm/drm_util.hhK8hjubh)}(h **Return**h]jn)}(hj=h]hReturn}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1jmhj;ubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:176: ./include/drm/drm_util.hhK:hjubh)}(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.}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:176: ./include/drm/drm_util.hhK;hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jchjhhhNhNubeh}(h] utilitiesah ]h"] utilitiesah$]h&]uh1hhjhhhhhKubeh}(h]misc-utilitiesah ]h"]misc utilitiesah$]h&]uh1hhhhhhhhKubh)}(hhh](h)}(h Unit testingh]h Unit testing}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjyhhhhhKubh)}(hhh](h)}(hKUnith]hKUnit}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhKubh)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjhhubh)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjhhubh)}(hhh](h)}(hHow to run the tests?h]hHow to run the tests?}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhKubh)}(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&]uh1hhhhKhjhhubjF)}(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&]jUjVjWjXbashjY}uh1jEhhhKhjhhubhnote)}(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}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh and }(hjhhhNhNubj)}(h``CONFIG_UML_PCI_OVER_VIRTIO``h]hCONFIG_UML_PCI_OVER_VIRTIO}(hj<hhhNhNubah}(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&]uh1hhhhKhj ubah}(h]h ]h"]h$]h&]uh1j hjhhhhhNubeh}(h]how-to-run-the-testsah ]h"]how to run the tests?ah$]h&]uh1hhjhhhhhKubh)}(hhh](h)}(hKUnit Coverage Rulesh]hKUnit Coverage Rules}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1hhjbhhhhhKubh)}(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.}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjbhhubeh}(h]kunit-coverage-rulesah ]h"]kunit coverage rulesah$]h&]uh1hhjhhhhhKubeh}(h]kunitah ]h"]kunitah$]h&]uh1hhjyhhhhhKubeh}(h] unit-testingah ]h"] unit testingah$]h&]uh1hhhhhhhhKubh)}(hhh](h)}(hLegacy Support Codeh]hLegacy Support Code}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhKubh)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjhhubh)}(hhh](h)}(hLegacy Suspend/Resumeh]hLegacy Suspend/Resume}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhKubh)}(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&]uh1hhhhKhjhhubh)}(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 }(hjhhhNhNubjA)}(h*only*h]honly}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jAhjubh 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 refexplicitrefwarnj j j3 device_driveruh1hhhhKhjubh+ dev_pm_ops) and set these methods to NULL.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhKhjhhubeh}(h]legacy-suspend-resumeah ]h"]legacy suspend/resumeah$]h&]uh1hhjhhhhhKubh)}(hhh](h)}(hLegacy DMA Servicesh]hLegacy DMA Services}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj"hhhhhKubh)}(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.}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj"hhubeh}(h]legacy-dma-servicesah ]h"]legacy dma servicesah$]h&]uh1hhjhhhhhKubeh}(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_handlerj|error_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}jn]jnasnameids}(jVjSjznjwnjjjjj jjpjmjOjOjjjQjQj1Qj.QjXQjUQjQj|Qjrnjonjjj jnj j jvjsjjjnjkjjjjj_j\jjjNjKjjjFjCu nametypes}(jVjznjjj jpjOjjQj1QjXQjQjrnjj j jvjjnjjj_jjNjjFuh}(jShjwnhjjjjjjjmjjOjsjj~jjjFjKjjjBjGj0j5jjj&j&j)j)j;+j@+j-j-j0j0jG2jL2j3j4j 6j%6jd7ji7j8j8j3;j8;jw>j|>j`BjeBj*Ej/EjFjFjHjHjhKjmKj:Nj?NjQjOj.QjOjUQj4Qj|Qj[QjonjQj=RjBRj4Uj9Uj XjXjZjZjL]jQ]jO_jT_jaj!ajcjcjJgjOgjjjjjMljRljj}njnjnj jnj6pj