Tsphinx.addnodesdocument)}( rawsourcechildren]( translations LanguagesNode)}(hhh](h pending_xref)}(hhh]docutils.nodesTextChinese (Simplified)}parenthsba attributes}(ids]classes]names]dupnames]backrefs] refdomainstdreftypedoc reftarget%/translations/zh_CN/gpu/drm-internalsmodnameN classnameN refexplicitutagnamehhh ubh)}(hhh]hChinese (Traditional)}hh2sbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget%/translations/zh_TW/gpu/drm-internalsmodnameN classnameN refexplicituh1hhh ubh)}(hhh]hItalian}hhFsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget%/translations/it_IT/gpu/drm-internalsmodnameN classnameN refexplicituh1hhh ubh)}(hhh]hJapanese}hhZsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget%/translations/ja_JP/gpu/drm-internalsmodnameN classnameN refexplicituh1hhh ubh)}(hhh]hKorean}hhnsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget%/translations/ko_KR/gpu/drm-internalsmodnameN classnameN refexplicituh1hhh ubh)}(hhh]hSpanish}hhsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget%/translations/sp_SP/gpu/drm-internalsmodnameN classnameN refexplicituh1hhh ubeh}(h]h ]h"]h$]h&]current_languageEnglishuh1h hh _documenthsourceNlineNubhsection)}(hhh](htitle)}(h DRM Internalsh]h DRM Internals}(hhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhhh?/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals.rsthKubh paragraph)}(hThis chapter documents DRM internals relevant to driver authors and developers working to add support for the latest features to existing drivers.h]hThis chapter documents DRM internals relevant to driver authors and developers working to add support for the latest features to existing drivers.}(hhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhhhhubh)}(hXFirst, we go over some typical driver initialization requirements, like setting up command buffers, creating an initial output configuration, and initializing core services. Subsequent sections cover core internals in more detail, providing implementation notes and examples.h]hXFirst, we go over some typical driver initialization requirements, like setting up command buffers, creating an initial output configuration, and initializing core services. Subsequent sections cover core internals in more detail, providing implementation notes and examples.}(hhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK hhhhubh)}(hXdThe DRM layer provides several services to graphics drivers, many of them driven by the application interfaces it provides through libdrm, the library that wraps most of the DRM ioctls. These include vblank event handling, memory management, output management, framebuffer management, command submission & fencing, suspend/resume support, and DMA services.h]hXdThe DRM layer provides several services to graphics drivers, many of them driven by the application interfaces it provides through libdrm, the library that wraps most of the DRM ioctls. These include vblank event handling, memory management, output management, framebuffer management, command submission & fencing, suspend/resume support, and DMA services.}(hhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhhhhubh)}(hhh](h)}(hDriver Initializationh]hDriver Initialization}(hhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhhhhhKubh)}(hXdAt the core of every DRM driver is a :c:type:`struct drm_driver ` structure. Drivers typically statically initialize a drm_driver structure, and then pass it to drm_dev_alloc() to allocate a device instance. After the device instance is fully initialized it can be registered (which makes it accessible from userspace) using drm_dev_register().h](h%At the core of every DRM driver is a }(hhhhhNhNubh)}(h(:c:type:`struct drm_driver `h]hliteral)}(hhh]hstruct drm_driver}(hjhhhNhNubah}(h]h ](xrefcc-typeeh"]h$]h&]uh1jhhubah}(h]h ]h"]h$]h&]refdocgpu/drm-internals refdomainj reftypetype refexplicitrefwarn reftarget drm_driveruh1hhhhKhhubhX structure. Drivers typically statically initialize a drm_driver structure, and then pass it to drm_dev_alloc() to allocate a device instance. After the device instance is fully initialized it can be registered (which makes it accessible from userspace) using drm_dev_register().}(hhhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhKhhhhubh)}(hXThe :c:type:`struct drm_driver ` structure contains static information that describes the driver and features it supports, and pointers to methods that the DRM core will call to implement the DRM API. We will first go through the :c:type:`struct drm_driver ` static information fields, and will then describe individual operations in details as they get used in later sections.h](hThe }(hj+hhhNhNubh)}(h(:c:type:`struct drm_driver `h]j)}(hj5h]hstruct drm_driver}(hj7hhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhj3ubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnj drm_driveruh1hhhhKhj+ubh structure contains static information that describes the driver and features it supports, and pointers to methods that the DRM core will call to implement the DRM API. We will first go through the }(hj+hhhNhNubh)}(h(:c:type:`struct drm_driver `h]j)}(hjXh]hstruct drm_driver}(hjZhhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjVubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnj drm_driveruh1hhhhKhj+ubhw static information fields, and will then describe individual operations in details as they get used in later sections.}(hj+hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhKhhhhubh)}(hhh](h)}(hDriver Informationh]hDriver Information}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhK(ubh)}(hhh](h)}(hMajor, Minor and Patchlevelh]hMajor, Minor and Patchlevel}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhK+ubh)}(hint major; int minor; int patchlevel; The DRM core identifies driver versions by a major, minor and patch level triplet. The information is printed to the kernel log at initialization time and passed to userspace through the DRM_IOCTL_VERSION ioctl.h]hint major; int minor; int patchlevel; The DRM core identifies driver versions by a major, minor and patch level triplet. The information is printed to the kernel log at initialization time and passed to userspace through the DRM_IOCTL_VERSION ioctl.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK-hjhhubh)}(hXThe major and minor numbers are also used to verify the requested driver API version passed to DRM_IOCTL_SET_VERSION. When the driver API changes between minor versions, applications can call DRM_IOCTL_SET_VERSION to select a specific version of the API. If the requested major isn't equal to the driver major, or the requested minor is larger than the driver minor, the DRM_IOCTL_SET_VERSION call will return an error. Otherwise the driver's set_version() method will be called with the requested version.h]hXThe major and minor numbers are also used to verify the requested driver API version passed to DRM_IOCTL_SET_VERSION. When the driver API changes between minor versions, applications can call DRM_IOCTL_SET_VERSION to select a specific version of the API. If the requested major isn’t equal to the driver major, or the requested minor is larger than the driver minor, the DRM_IOCTL_SET_VERSION call will return an error. Otherwise the driver’s set_version() method will be called with the requested version.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK3hjhhubeh}(h]major-minor-and-patchlevelah ]h"]major, minor and patchlevelah$]h&]uh1hhjhhhhhK+ubh)}(hhh](h)}(hName and Descriptionh]hName and Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhK=ubh)}(hchar \*name; char \*desc; char \*date; The driver name is printed to the kernel log at initialization time, used for IRQ registration and passed to userspace through DRM_IOCTL_VERSION.h]hchar *name; char *desc; char *date; The driver name is printed to the kernel log at initialization time, used for IRQ registration and passed to userspace through DRM_IOCTL_VERSION.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK?hjhhubh)}(hThe driver description is a purely informative string passed to userspace through the DRM_IOCTL_VERSION ioctl and otherwise unused by the kernel.h]hThe driver description is a purely informative string passed to userspace through the DRM_IOCTL_VERSION ioctl and otherwise unused by the kernel.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKDhjhhubeh}(h]name-and-descriptionah ]h"]name and descriptionah$]h&]uh1hhjhhhhhK=ubeh}(h]driver-informationah ]h"]driver informationah$]h&]uh1hhhhhhhhK(ubh)}(hhh](h)}(hModule Initializationh]hModule Initialization}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhKIubh)}(hXThis library provides helpers registering DRM drivers during module initialization and shutdown. The provided helpers act like bus-specific module helpers, such as module_pci_driver(), but respect additional parameters that control DRM driver registration.h]hXThis library provides helpers registering DRM drivers during module initialization and shutdown. The provided helpers act like bus-specific module helpers, such as module_pci_driver(), but respect additional parameters that control DRM driver registration.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:75: ./include/drm/drm_module.hhK hjhhubh)}(hMBelow is an example of initializing a DRM driver for a device on the PCI bus.h]hMBelow is an example of initializing a DRM driver for a device on the PCI bus.}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:75: ./include/drm/drm_module.hhKhjhhubh literal_block)}(hGstruct pci_driver my_pci_drv = { }; drm_module_pci_driver(my_pci_drv);h]hGstruct pci_driver my_pci_drv = { }; drm_module_pci_driver(my_pci_drv);}hj3sbah}(h]h ]h"]h$]h&] xml:spacepreserveforcelanguagej highlight_args}uh1j1hZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:75: ./include/drm/drm_module.hhKhjhhubh)}(hThe generated code will test if DRM drivers are enabled and register the PCI driver my_pci_drv. For more complex module initialization, you can still use module_init() and module_exit() in your driver.h]hThe generated code will test if DRM drivers are enabled and register the PCI driver my_pci_drv. For more complex module initialization, you can still use module_init() and module_exit() in your driver.}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:75: ./include/drm/drm_module.hhKhjhhubeh}(h]module-initializationah ]h"]module initializationah$]h&]uh1hhhhhhhhKIubh)}(hhh](h)}(h#Device Instance and Driver Handlingh]h#Device Instance and Driver Handling}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj_hhhhhKOubh)}(hXTA device instance for a drm driver is represented by :c:type:`struct drm_device `. This is allocated and initialized with devm_drm_dev_alloc(), usually from bus-specific ->probe() callbacks implemented by the driver. The driver then needs to initialize all the various subsystems for the drm device like memory management, vblank handling, modesetting support and initial output configuration plus obviously initialize all the corresponding hardware bits. Finally when everything is up and running and ready for userspace the device instance can be published using drm_dev_register().h](h5A device instance for a drm driver is represented by }(hjphhhNhNubh)}(h(:c:type:`struct drm_device `h]j)}(hjzh]hstruct drm_device}(hj|hhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjxubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnj drm_deviceuh1hh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:81: ./drivers/gpu/drm/drm_drv.chM hjpubhX. This is allocated and initialized with devm_drm_dev_alloc(), usually from bus-specific ->probe() callbacks implemented by the driver. The driver then needs to initialize all the various subsystems for the drm device like memory management, vblank handling, modesetting support and initial output configuration plus obviously initialize all the corresponding hardware bits. Finally when everything is up and running and ready for userspace the device instance can be published using drm_dev_register().}(hjphhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhM hj_hhubh)}(hXThere is also deprecated support for initializing device instances using bus-specific helpers and the :c:type:`drm_driver.load ` callback. But due to backwards-compatibility needs the device instance have to be published too early, which requires unpretty global locking to make safe and is therefore only support for existing drivers not yet converted to the new scheme.h](hfThere is also deprecated support for initializing device instances using bus-specific helpers and the }(hjhhhNhNubh)}(h&:c:type:`drm_driver.load `h]j)}(hjh]hdrm_driver.load}(hjhhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnj drm_driveruh1hh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:81: ./drivers/gpu/drm/drm_drv.chMhjubh callback. But due to backwards-compatibility needs the device instance have to be published too early, which requires unpretty global locking to make safe and is therefore only support for existing drivers not yet converted to the new scheme.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMhj_hhubh)}(hXWhen cleaning up a device instance everything needs to be done in reverse: First unpublish the device instance with drm_dev_unregister(). Then clean up any other resources allocated at device initialization and drop the driver's reference to :c:type:`drm_device` using drm_dev_put().h](hWhen cleaning up a device instance everything needs to be done in reverse: First unpublish the device instance with drm_dev_unregister(). Then clean up any other resources allocated at device initialization and drop the driver’s reference to }(hjhhhNhNubh)}(h:c:type:`drm_device`h]j)}(hjh]h drm_device}(hjhhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnj drm_deviceuh1hh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:81: ./drivers/gpu/drm/drm_drv.chMhjubh using drm_dev_put().}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMhj_hhubh)}(hXJNote that any allocation or resource which is visible to userspace must be released only when the final drm_dev_put() is called, and not when the driver is unbound from the underlying physical struct :c:type:`device`. Best to use :c:type:`drm_device` managed resources with drmm_add_action(), drmm_kmalloc() and related functions.h](hNote that any allocation or resource which is visible to userspace must be released only when the final drm_dev_put() is called, and not when the driver is unbound from the underlying physical struct }(hjhhhNhNubh)}(h:c:type:`device`h]j)}(hjh]hdevice}(hjhhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjdeviceuh1hh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:81: ./drivers/gpu/drm/drm_drv.chMhjubh. Best to use }(hjhhhNhNubh)}(h:c:type:`drm_device`h]j)}(hj4h]h drm_device}(hj6hhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhj2ubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnj drm_deviceuh1hhj-hMhjubhP managed resources with drmm_add_action(), drmm_kmalloc() and related functions.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj-hMhj_hhubh)}(hdevres managed resources like devm_kmalloc() can only be used for resources directly related to the underlying hardware device, and only used in code paths fully protected by drm_dev_enter() and drm_dev_exit().h]hdevres managed resources like devm_kmalloc() can only be used for resources directly related to the underlying hardware device, and only used in code paths fully protected by drm_dev_enter() and drm_dev_exit().}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:81: ./drivers/gpu/drm/drm_drv.chM#hj_hhubh)}(hhh](h)}(hDisplay driver exampleh]hDisplay driver example}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjjhNhNubh)}(hThe following example shows a typical structure of a DRM display driver. The example focus on the probe() function and the other functions that is almost always present and serves as a demonstration of devm_drm_dev_alloc().h]hThe following example shows a typical structure of a DRM display driver. The example focus on the probe() function and the other functions that is almost always present and serves as a demonstration of devm_drm_dev_alloc().}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:81: ./drivers/gpu/drm/drm_drv.chM*hjjubj2)}(hX struct driver_device { struct drm_device drm; void *userspace_facing; struct clk *pclk; }; static const struct drm_driver driver_drm_driver = { [...] }; static int driver_probe(struct platform_device *pdev) { struct driver_device *priv; struct drm_device *drm; int ret; priv = devm_drm_dev_alloc(&pdev->dev, &driver_drm_driver, struct driver_device, drm); if (IS_ERR(priv)) return PTR_ERR(priv); drm = &priv->drm; ret = drmm_mode_config_init(drm); if (ret) return ret; priv->userspace_facing = drmm_kzalloc(..., GFP_KERNEL); if (!priv->userspace_facing) return -ENOMEM; priv->pclk = devm_clk_get(dev, "PCLK"); if (IS_ERR(priv->pclk)) return PTR_ERR(priv->pclk); // Further setup, display pipeline etc platform_set_drvdata(pdev, drm); drm_mode_config_reset(drm); ret = drm_dev_register(drm); if (ret) return ret; drm_fbdev_{...}_setup(drm, 32); return 0; } // This function is called before the devm_ resources are released static int driver_remove(struct platform_device *pdev) { struct drm_device *drm = platform_get_drvdata(pdev); drm_dev_unregister(drm); drm_atomic_helper_shutdown(drm) return 0; } // This function is called on kernel restart and shutdown static void driver_shutdown(struct platform_device *pdev) { drm_atomic_helper_shutdown(platform_get_drvdata(pdev)); } static int __maybe_unused driver_pm_suspend(struct device *dev) { return drm_mode_config_helper_suspend(dev_get_drvdata(dev)); } static int __maybe_unused driver_pm_resume(struct device *dev) { drm_mode_config_helper_resume(dev_get_drvdata(dev)); return 0; } static const struct dev_pm_ops driver_pm_ops = { SET_SYSTEM_SLEEP_PM_OPS(driver_pm_suspend, driver_pm_resume) }; static struct platform_driver driver_driver = { .driver = { [...] .pm = &driver_pm_ops, }, .probe = driver_probe, .remove = driver_remove, .shutdown = driver_shutdown, }; module_platform_driver(driver_driver);h]hX struct driver_device { struct drm_device drm; void *userspace_facing; struct clk *pclk; }; static const struct drm_driver driver_drm_driver = { [...] }; static int driver_probe(struct platform_device *pdev) { struct driver_device *priv; struct drm_device *drm; int ret; priv = devm_drm_dev_alloc(&pdev->dev, &driver_drm_driver, struct driver_device, drm); if (IS_ERR(priv)) return PTR_ERR(priv); drm = &priv->drm; ret = drmm_mode_config_init(drm); if (ret) return ret; priv->userspace_facing = drmm_kzalloc(..., GFP_KERNEL); if (!priv->userspace_facing) return -ENOMEM; priv->pclk = devm_clk_get(dev, "PCLK"); if (IS_ERR(priv->pclk)) return PTR_ERR(priv->pclk); // Further setup, display pipeline etc platform_set_drvdata(pdev, drm); drm_mode_config_reset(drm); ret = drm_dev_register(drm); if (ret) return ret; drm_fbdev_{...}_setup(drm, 32); return 0; } // This function is called before the devm_ resources are released static int driver_remove(struct platform_device *pdev) { struct drm_device *drm = platform_get_drvdata(pdev); drm_dev_unregister(drm); drm_atomic_helper_shutdown(drm) return 0; } // This function is called on kernel restart and shutdown static void driver_shutdown(struct platform_device *pdev) { drm_atomic_helper_shutdown(platform_get_drvdata(pdev)); } static int __maybe_unused driver_pm_suspend(struct device *dev) { return drm_mode_config_helper_suspend(dev_get_drvdata(dev)); } static int __maybe_unused driver_pm_resume(struct device *dev) { drm_mode_config_helper_resume(dev_get_drvdata(dev)); return 0; } static const struct dev_pm_ops driver_pm_ops = { SET_SYSTEM_SLEEP_PM_OPS(driver_pm_suspend, driver_pm_resume) }; static struct platform_driver driver_driver = { .driver = { [...] .pm = &driver_pm_ops, }, .probe = driver_probe, .remove = driver_remove, .shutdown = driver_shutdown, }; module_platform_driver(driver_driver);}hjsbah}(h]h ]h"]h$]h&]jAjBjCjDj jE}uh1j1h[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:81: ./drivers/gpu/drm/drm_drv.chM.hjjubh)}(hX<Drivers that want to support device unplugging (USB, DT overlay unload) should use drm_dev_unplug() instead of drm_dev_unregister(). The driver must protect regions that is accessing device resources to prevent use after they're released. This is done using drm_dev_enter() and drm_dev_exit(). There is one shortcoming however, drm_dev_unplug() marks the drm_device as unplugged before drm_atomic_helper_shutdown() is called. This means that if the disable code paths are protected, they will not run on regular driver module unload, possibly leaving the hardware enabled.h]hX>Drivers that want to support device unplugging (USB, DT overlay unload) should use drm_dev_unplug() instead of drm_dev_unregister(). The driver must protect regions that is accessing device resources to prevent use after they’re released. This is done using drm_dev_enter() and drm_dev_exit(). There is one shortcoming however, drm_dev_unplug() marks the drm_device as unplugged before drm_atomic_helper_shutdown() is called. This means that if the disable code paths are protected, they will not run on regular driver module unload, possibly leaving the hardware enabled.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:81: ./drivers/gpu/drm/drm_drv.chMhjjubeh}(h]display-driver-exampleah ]h"]display driver exampleah$]h&]uh1hhj_hhhNhNubhindex)}(hhh]h}(h]h ]h"]h$]h&]entries](singledrm_wedge_task_info (C struct)c.drm_wedge_task_infohNtauh1jhj_hhhNhNubhdesc)}(hhh](hdesc_signature)}(hdrm_wedge_task_infoh]hdesc_signature_line)}(hstruct drm_wedge_task_infoh](hdesc_sig_keyword)}(hstructh]hstruct}(hjhhhNhNubah}(h]h ]kah"]h$]h&]uh1jhjhhhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:84: ./include/drm/drm_device.hhKubhdesc_sig_space)}(h h]h }(hjhhhNhNubah}(h]h ]wah"]h$]h&]uh1jhjhhhjhKubh desc_name)}(hdrm_wedge_task_infoh]h desc_sig_name)}(hjh]hdrm_wedge_task_info}(hjhhhNhNubah}(h]h ]nah"]h$]h&]uh1jhjubah}(h]h ](sig-namedescnameeh"]h$]h&]jAjBuh1jhjhhhjhKubeh}(h]h ]h"]h$]h&]jAjB add_permalinkuh1jsphinx_line_type declaratorhjhhhjhKubah}(h]jah ](sig sig-objecteh"]h$]h&] is_multiline _toc_parts) _toc_namehuh1jhjhKhjhhubh desc_content)}(hhh]h)}(h0information about the guilty task of a wedge devh]h0information about the guilty task of a wedge dev}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:84: ./include/drm/drm_device.hhK#hj*hhubah}(h]h ]h"]h$]h&]uh1j(hjhhhjhKubeh}(h]h ](j structeh"]h$]h&]domainj objtypejEdesctypejEnoindex noindexentrynocontentsentryuh1jhhhj_hNhNubh container)}(h**Definition**:: struct drm_wedge_task_info { pid_t pid; char comm[TASK_COMM_LEN]; }; **Members** ``pid`` pid of the task ``comm`` command name of the taskh](h)}(h**Definition**::h](hstrong)}(h**Definition**h]h Definition}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjUubh:}(hjUhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:84: ./include/drm/drm_device.hhK'hjQubj2)}(hLstruct drm_wedge_task_info { pid_t pid; char comm[TASK_COMM_LEN]; };h]hLstruct drm_wedge_task_info { pid_t pid; char comm[TASK_COMM_LEN]; };}hjtsbah}(h]h ]h"]h$]h&]jAjBuh1j1hZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:84: ./include/drm/drm_device.hhK)hjQubh)}(h **Members**h]jZ)}(hjh]hMembers}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:84: ./include/drm/drm_device.hhK.hjQubhdefinition_list)}(hhh](hdefinition_list_item)}(h``pid`` pid of the task h](hterm)}(h``pid``h]j)}(hjh]hpid}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:84: ./include/drm/drm_device.hhK'hjubh definition)}(hhh]h)}(hpid of the taskh]hpid of the task}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhK'hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhK'hjubj)}(h!``comm`` command name of the taskh](j)}(h``comm``h]j)}(hjh]hcomm}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:84: ./include/drm/drm_device.hhK(hjubj)}(hhh]h)}(hcommand name of the taskh]hcommand name of the task}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:84: ./include/drm/drm_device.hhK)hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhK(hjubeh}(h]h ]h"]h$]h&]uh1jhjQubeh}(h]h ] kernelindentah"]h$]h&]uh1jOhj_hhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jswitch_power_state (C enum)c.switch_power_statehNtauh1jhj_hhhNhNubj)}(hhh](j)}(hswitch_power_stateh]j)}(henum switch_power_stateh](j)}(henumh]henum}(hj?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;hhhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:84: ./include/drm/drm_device.hhK/ubj)}(h h]h }(hjNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;hhhjMhK/ubj)}(hswitch_power_stateh]j)}(hj9h]hswitch_power_state}(hj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\ubah}(h]h ](jjeh"]h$]h&]jAjBuh1jhj;hhhjMhK/ubeh}(h]h ]h"]h$]h&]jAjBjuh1jjjhj7hhhjMhK/ubah}(h]j2ah ](j j!eh"]h$]h&]j%j&)j'huh1jhjMhK/hj4hhubj))}(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.hhK-hjhhubah}(h]h ]h"]h$]h&]uh1j(hj4hhhjMhK/ubeh}(h]h ](j enumeh"]h$]h&]jIj jJjjKjjLjMjNuh1jhhhj_hNhNubjP)}(h**Constants** ``DRM_SWITCH_POWER_ON`` Power state is ON ``DRM_SWITCH_POWER_OFF`` Power state is OFF ``DRM_SWITCH_POWER_CHANGING`` Power state is changing ``DRM_SWITCH_POWER_DYNAMIC_OFF`` Suspendedh](h)}(h **Constants**h]jZ)}(hjh]h Constants}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:84: ./include/drm/drm_device.hhK1hjubj)}(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.hhK4hjubj)}(hhh]h)}(hPower state is ONh]hPower state is ON}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhK4hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhK4hjubj)}(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.hhK7hjubj)}(hhh]h)}(hPower state is OFFh]hPower state is OFF}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhK7hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhK7hjubj)}(h6``DRM_SWITCH_POWER_CHANGING`` Power state is changing h](j)}(h``DRM_SWITCH_POWER_CHANGING``h]j)}(hj5h]hDRM_SWITCH_POWER_CHANGING}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3ubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:84: ./include/drm/drm_device.hhK:hj/ubj)}(hhh]h)}(hPower state is changingh]hPower state is changing}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjJhK:hjKubah}(h]h ]h"]h$]h&]uh1jhj/ubeh}(h]h ]h"]h$]h&]uh1jhjJhK:hjubj)}(h*``DRM_SWITCH_POWER_DYNAMIC_OFF`` Suspendedh](j)}(h ``DRM_SWITCH_POWER_DYNAMIC_OFF``h]j)}(hjnh]hDRM_SWITCH_POWER_DYNAMIC_OFF}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jhjlubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:84: ./include/drm/drm_device.hhK` 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 ``struct_mutex`` Lock for others (not :c:type:`drm_minor.master ` and :c:type:`drm_file.is_master `) TODO: This lock used to be the BKL of the DRM subsystem. Move the lock into i915, which is the only remaining user. ``master_mutex`` Lock for :c:type:`drm_minor.master ` and :c:type:`drm_file.is_master ` ``open_count`` Usage counter for outstanding files open, protected by drm_global_mutex ``filelist_mutex`` Protects **filelist**. ``filelist`` List of userspace clients, linked through :c:type:`drm_file.lhead `. ``filelist_internal`` List of open DRM files for in-kernel clients. Protected by :c:type:`filelist_mutex`. ``clientlist_mutex`` Protects :c:type:`clientlist` access. ``clientlist`` List of in-kernel clients. Protected by :c:type:`clientlist_mutex`. ``vblank_disable_immediate`` If true, vblank interrupt will be disabled immediately when the refcount drops to zero, as opposed to via the vblank disable timer. This can be set to true it the hardware has a working vblank counter with high-precision timestamping (otherwise there are races) and the driver uses drm_crtc_vblank_on() and drm_crtc_vblank_off() appropriately. Also, see **max_vblank_count**, :c:type:`drm_crtc_funcs.get_vblank_counter ` and :c:type:`drm_vblank_crtc_config.disable_immediate `. ``vblank`` Array of vblank tracking structures, one per :c:type:`struct drm_crtc `. For historical reasons (vblank support predates kernel modesetting) this is free-standing and not part of :c:type:`struct drm_crtc ` itself. It must be initialized explicitly by calling drm_vblank_init(). ``vblank_time_lock`` Protects vblank count and time updates during vblank enable/disable ``vbl_lock`` Top-level vblank references lock, wraps the low-level **vblank_time_lock**. ``max_vblank_count`` Maximum value of the vblank registers. This value +1 will result in a wrap-around of the vblank register. It is used by the vblank core to handle wrap-arounds. If set to zero the vblank core will try to guess the elapsed vblanks between times when the vblank interrupt is disabled through high-precision timestamps. That approach is suffering from small races and imprecision over longer time periods, hence exposing a hardware vblank counter is always recommended. This is the statically configured device wide maximum. The driver can instead choose to use a runtime configurable per-crtc value :c:type:`drm_vblank_crtc.max_vblank_count `, in which case **max_vblank_count** must be left at zero. See drm_crtc_set_max_vblank_count() on how to use the per-crtc value. If non-zero, :c:type:`drm_crtc_funcs.get_vblank_counter ` must be set. ``vblank_event_list`` List of vblank events ``event_lock`` Protects **vblank_event_list** and event delivery in general. See drm_send_event() and drm_send_event_locked(). ``num_crtcs`` Number of CRTCs on this device ``mode_config`` Current mode config ``object_name_lock`` GEM information ``object_name_idr`` GEM information ``vma_offset_manager`` GEM information ``vram_mm`` VRAM MM memory manager ``switch_power_state`` Power state of the client. Used by drivers supporting the switcheroo driver. The state is maintained in the :c:type:`vga_switcheroo_client_ops.set_gpu_state ` callback ``fb_helper`` Pointer to the fbdev emulation structure. Set by drm_fb_helper_init() and cleared by drm_fb_helper_fini(). ``debugfs_root`` Root directory for debugfs files.h](h)}(h**Definition**::h](jZ)}(h**Definition**h]h Definition}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj*ubh:}(hj*hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:84: ./include/drm/drm_device.hhKChj&ubj2)}(hXDstruct drm_device { int if_version; struct kref ref; struct device *dev; struct device *dma_dev; struct { struct list_head resources; void *final_kfree; spinlock_t lock; } managed; const struct drm_driver *driver; void *dev_private; struct drm_minor *primary; struct drm_minor *render; struct drm_minor *accel; bool registered; struct drm_master *master; u32 driver_features; bool unplugged; struct inode *anon_inode; char *unique; struct mutex struct_mutex; struct mutex master_mutex; atomic_t open_count; struct mutex filelist_mutex; struct list_head filelist; struct list_head filelist_internal; struct mutex clientlist_mutex; struct list_head clientlist; bool vblank_disable_immediate; struct drm_vblank_crtc *vblank; spinlock_t vblank_time_lock; spinlock_t vbl_lock; u32 max_vblank_count; struct list_head vblank_event_list; spinlock_t event_lock; unsigned int num_crtcs; struct drm_mode_config mode_config; struct mutex object_name_lock; struct idr object_name_idr; struct drm_vma_offset_manager *vma_offset_manager; struct drm_vram_mm *vram_mm; enum switch_power_state switch_power_state; struct drm_fb_helper *fb_helper; struct dentry *debugfs_root; };h]hXDstruct drm_device { int if_version; struct kref ref; struct device *dev; struct device *dma_dev; struct { struct list_head resources; void *final_kfree; spinlock_t lock; } managed; const struct drm_driver *driver; void *dev_private; struct drm_minor *primary; struct drm_minor *render; struct drm_minor *accel; bool registered; struct drm_master *master; u32 driver_features; bool unplugged; struct inode *anon_inode; char *unique; struct mutex struct_mutex; struct mutex master_mutex; atomic_t open_count; struct mutex filelist_mutex; struct list_head filelist; struct list_head filelist_internal; struct mutex clientlist_mutex; struct list_head clientlist; bool vblank_disable_immediate; struct drm_vblank_crtc *vblank; spinlock_t vblank_time_lock; spinlock_t vbl_lock; u32 max_vblank_count; struct list_head vblank_event_list; spinlock_t event_lock; unsigned int num_crtcs; struct drm_mode_config mode_config; struct mutex object_name_lock; struct idr object_name_idr; struct drm_vma_offset_manager *vma_offset_manager; struct drm_vram_mm *vram_mm; enum switch_power_state switch_power_state; struct drm_fb_helper *fb_helper; struct dentry *debugfs_root; };}hjGsbah}(h]h ]h"]h$]h&]jAjBuh1j1hZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:84: ./include/drm/drm_device.hhKEhj&ubh)}(h **Members**h]jZ)}(hjXh]hMembers}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjVubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:84: ./include/drm/drm_device.hhKthj&ubj)}(hhh](j)}(h-``if_version`` Highest interface version set h](j)}(h``if_version``h]j)}(hjwh]h if_version}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjuubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:84: ./include/drm/drm_device.hhKFhjqubj)}(hhh]h)}(hHighest interface version seth]hHighest interface version set}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKFhjubah}(h]h ]h"]h$]h&]uh1jhjqubeh}(h]h ]h"]h$]h&]uh1jhjhKFhjnubj)}(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.hhKIhjubj)}(hhh]h)}(hObject ref-counth]hObject ref-count}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKIhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKIhjnubj)}(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.hhKLhjubj)}(hhh]h)}(hDevice structure of bus-deviceh]hDevice structure of bus-device}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKLhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKLhjnubj)}(hX``dma_dev`` Device for DMA operations. Only required if the device **dev** cannot perform DMA by itself. Should be NULL otherwise. Call drm_dev_dma_dev() to get the DMA device instead of using this field directly. Call drm_dev_set_dma_dev() to set this field. DRM devices are sometimes bound to virtual devices that cannot perform DMA by themselves. Drivers should set this field to the respective DMA controller. Devices on USB and other peripheral busses also cannot perform DMA by themselves. The **dma_dev** field should point the bus controller that does DMA on behalve of such a device. Required for importing buffers via dma-buf. If set, the DRM core automatically releases the reference on the device. h](j)}(h ``dma_dev``h]j)}(hj"h]hdma_dev}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:84: ./include/drm/drm_device.hhK_hjubj)}(hhh](h)}(hDevice for DMA operations. Only required if the device **dev** cannot perform DMA by itself. Should be NULL otherwise. Call drm_dev_dma_dev() to get the DMA device instead of using this field directly. Call drm_dev_set_dma_dev() to set this field.h](h7Device for DMA operations. Only required if the device }(hj;hhhNhNubjZ)}(h**dev**h]hdev}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj;ubh cannot perform DMA by itself. Should be NULL otherwise. Call drm_dev_dma_dev() to get the DMA device instead of using this field directly. Call drm_dev_set_dma_dev() to set this field.}(hj;hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:84: ./include/drm/drm_device.hhKPhj8ubh)}(hDRM devices are sometimes bound to virtual devices that cannot perform DMA by themselves. Drivers should set this field to the respective DMA controller.h]hDRM devices are sometimes bound to virtual devices that cannot perform DMA by themselves. Drivers should set this field to the respective DMA controller.}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:84: ./include/drm/drm_device.hhKUhj8ubh)}(hDevices on USB and other peripheral busses also cannot perform DMA by themselves. The **dma_dev** field should point the bus controller that does DMA on behalve of such a device. Required for importing buffers via dma-buf.h](hVDevices on USB and other peripheral busses also cannot perform DMA by themselves. The }(hjkhhhNhNubjZ)}(h **dma_dev**h]hdma_dev}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjkubh} field should point the bus controller that does DMA on behalve of such a device. Required for importing buffers via dma-buf.}(hjkhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:84: ./include/drm/drm_device.hhKYhj8ubh)}(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.hhK^hj8ubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj7hK_hjnubj)}(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.hhKghjubj)}(hhh]h)}(h\Managed resources linked to the lifetime of this :c:type:`drm_device` as tracked by **ref**.h](h1Managed resources linked to the lifetime of this }(hjhhhNhNubh)}(h:c:type:`drm_device`h]j)}(hjh]h drm_device}(hjhhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarn c:parent_keysphinx.domains.c LookupKey)}data]sbj drm_deviceuh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:84: ./include/drm/drm_device.hhKfhjubh as tracked by }(hjhhhNhNubjZ)}(h**ref**h]href}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhKfhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKghjnubj)}(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.hhKthj ubj)}(hhh]h)}(hDRM driver managing the deviceh]hDRM driver managing the device}(hj= hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj9 hKthj: ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj9 hKthjnubj)}(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.hhK}hjW ubj)}(hhh](h)}(hKDRM driver private data. This is deprecated and should be left set to NULL.h]hKDRM driver private data. This is deprecated and should be left set to NULL.}(hjv hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:84: ./include/drm/drm_device.hhKxhjs ubh)}(hInstead of using this pointer it is recommended that drivers use devm_drm_dev_alloc() and embed struct :c:type:`drm_device` in their larger per-device structure.h](hgInstead of using this pointer it is recommended that drivers use devm_drm_dev_alloc() and embed struct }(hj hhhNhNubh)}(h:c:type:`drm_device`h]j)}(hj h]h drm_device}(hj hhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjjj drm_deviceuh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:84: ./include/drm/drm_device.hhK{hj ubh& in their larger per-device structure.}(hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj hK{hjs ubeh}(h]h ]h"]h$]h&]uh1jhjW ubeh}(h]h ]h"]h$]h&]uh1jhjr hK}hjnubj)}(h``primary`` Primary node. Drivers should not interact with this directly. debugfs interfaces can be registered with drm_debugfs_add_file(), and sysfs should be directly added on the hardware (and not character device node) struct device **dev**. h](j)}(h ``primary``h]j)}(hj h]hprimary}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:84: ./include/drm/drm_device.hhKhj ubj)}(hhh]h)}(hPrimary node. Drivers should not interact with this directly. debugfs interfaces can be registered with drm_debugfs_add_file(), and sysfs should be directly added on the hardware (and not character device node) struct device **dev**.h](hPrimary node. Drivers should not interact with this directly. debugfs interfaces can be registered with drm_debugfs_add_file(), and sysfs should be directly added on the hardware (and not character device node) struct device }(hj hhhNhNubjZ)}(h**dev**h]hdev}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj ubh.}(hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:84: ./include/drm/drm_device.hhKhj ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj hKhjnubj)}(h``render`` Render node. Drivers should not interact with this directly ever. Drivers should not expose any additional interfaces in debugfs or sysfs on this node. h](j)}(h ``render``h]j)}(hj h]hrender}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:84: ./include/drm/drm_device.hhKhj ubj)}(hhh]h)}(hRender node. Drivers should not interact with this directly ever. Drivers should not expose any additional interfaces in debugfs or sysfs on this node.h]hRender node. Drivers should not interact with this directly ever. Drivers should not expose any additional interfaces in debugfs or sysfs on this node.}(hj. hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:84: ./include/drm/drm_device.hhKhj+ ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj* hKhjnubj)}(h$``accel`` Compute Acceleration node h](j)}(h ``accel``h]j)}(hjO h]haccel}(hjQ hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjM ubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:84: ./include/drm/drm_device.hhKhjI ubj)}(hhh]h)}(hCompute Acceleration nodeh]hCompute Acceleration node}(hjh hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjd hKhje ubah}(h]h ]h"]h$]h&]uh1jhjI ubeh}(h]h ]h"]h$]h&]uh1jhjd hKhjnubj)}(hS``registered`` Internally used by drm_dev_register() and drm_connector_register(). h](j)}(h``registered``h]j)}(hj h]h registered}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:84: ./include/drm/drm_device.hhKhj ubj)}(hhh]h)}(hCInternally used by drm_dev_register() and drm_connector_register().h]hCInternally used by drm_dev_register() and drm_connector_register().}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hKhj ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj hKhjnubj)}(hX``master`` Currently active master for this device. Protected by :c:type:`master_mutex` h](j)}(h ``master``h]j)}(hj h]hmaster}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:84: ./include/drm/drm_device.hhKhj ubj)}(hhh]h)}(hLCurrently active master for this device. Protected by :c:type:`master_mutex`h](h6Currently active master for this device. Protected by }(hj hhhNhNubh)}(h:c:type:`master_mutex`h]j)}(hj h]h master_mutex}(hj hhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjjj master_mutexuh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:84: ./include/drm/drm_device.hhKhj ubeh}(h]h ]h"]h$]h&]uh1hhj hKhj ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj hKhjnubj)}(h``driver_features`` per-device driver features Drivers can clear specific flags here to disallow certain features on a per-device basis while still sharing a single :c:type:`struct drm_driver ` instance across all devices. h](j)}(h``driver_features``h]j)}(hj h]hdriver_features}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:84: ./include/drm/drm_device.hhKhj ubj)}(hhh](h)}(hper-device driver featuresh]hper-device driver features}(hj3 hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:84: ./include/drm/drm_device.hhKhj0 ubh)}(hDrivers can clear specific flags here to disallow certain features on a per-device basis while still sharing a single :c:type:`struct drm_driver ` instance across all devices.h](hvDrivers can clear specific flags here to disallow certain features on a per-device basis while still sharing a single }(hjB hhhNhNubh)}(h(:c:type:`struct drm_driver `h]j)}(hjL h]hstruct drm_driver}(hjN hhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjJ ubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjjj drm_driveruh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:84: ./include/drm/drm_device.hhKhjB ubh instance across all devices.}(hjB hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhji hKhj0 ubeh}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj/ hKhjnubj)}(hm``unplugged`` Flag to tell if the device has been unplugged. See drm_dev_enter() and drm_dev_is_unplugged(). h](j)}(h ``unplugged``h]j)}(hj h]h unplugged}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:84: ./include/drm/drm_device.hhKhj ubj)}(hhh]h)}(h^Flag to tell if the device has been unplugged. See drm_dev_enter() and drm_dev_is_unplugged().h]h^Flag to tell if the device has been unplugged. See drm_dev_enter() and drm_dev_is_unplugged().}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:84: ./include/drm/drm_device.hhKhj ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj hKhjnubj)}(h/``anon_inode`` inode for private address-space h](j)}(h``anon_inode``h]j)}(hj h]h anon_inode}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:84: ./include/drm/drm_device.hhKhj ubj)}(hhh]h)}(hinode for private address-spaceh]hinode for private address-space}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hKhj ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj hKhjnubj)}(h%``unique`` Unique name of the device h](j)}(h ``unique``h]j)}(hj h]hunique}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:84: ./include/drm/drm_device.hhKhj ubj)}(hhh]h)}(hUnique name of the deviceh]hUnique name of the device}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hKhj ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj hKhjnubj)}(h``struct_mutex`` Lock for others (not :c:type:`drm_minor.master ` and :c:type:`drm_file.is_master `) TODO: This lock used to be the BKL of the DRM subsystem. Move the lock into i915, which is the only remaining user. h](j)}(h``struct_mutex``h]j)}(hj2 h]h struct_mutex}(hj4 hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj0 ubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:84: ./include/drm/drm_device.hhKhj, ubj)}(hhh](h)}(hhLock for others (not :c:type:`drm_minor.master ` and :c:type:`drm_file.is_master `)h](hLock for others (not }(hjK hhhNhNubh)}(h&:c:type:`drm_minor.master `h]j)}(hjU h]hdrm_minor.master}(hjW hhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjS ubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjjj drm_minoruh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:84: ./include/drm/drm_device.hhKhjK ubh and }(hjK hhhNhNubh)}(h':c:type:`drm_file.is_master `h]j)}(hjy h]hdrm_file.is_master}(hj{ hhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjw ubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjjjdrm_fileuh1hhjr hKhjK ubh)}(hjK hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjr hKhjH ubj)}(hhh]j)}(htTODO: This lock used to be the BKL of the DRM subsystem. Move the lock into i915, which is the only remaining user. h](j)}(hATODO: This lock used to be the BKL of the DRM subsystem. Move theh]hATODO: This lock used to be the BKL of the DRM subsystem. Move the}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjG hKhj ubj)}(hhh]h)}(h1lock into i915, which is the only remaining user.h]h1lock into i915, which is the only remaining user.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjG hKhj ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhjG hKhj ubah}(h]h ]h"]h$]h&]uh1jhjH ubeh}(h]h ]h"]h$]h&]uh1jhj, ubeh}(h]h ]h"]h$]h&]uh1jhjG hKhjnubj)}(hm``master_mutex`` Lock for :c:type:`drm_minor.master ` and :c:type:`drm_file.is_master ` h](j)}(h``master_mutex``h]j)}(hj h]h master_mutex}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:84: ./include/drm/drm_device.hhKhj ubj)}(hhh]h)}(h[Lock for :c:type:`drm_minor.master ` and :c:type:`drm_file.is_master `h](h Lock for }(hj hhhNhNubh)}(h&:c:type:`drm_minor.master `h]j)}(hj h]hdrm_minor.master}(hj hhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjjj drm_minoruh1hhj hKhj ubh and }(hj hhhNhNubh)}(h':c:type:`drm_file.is_master `h]j)}(hj0 h]hdrm_file.is_master}(hj2 hhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhj. ubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjjjdrm_fileuh1hhj hKhj ubeh}(h]h ]h"]h$]h&]uh1hhj hKhj ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj hKhjnubj)}(hW``open_count`` Usage counter for outstanding files open, protected by drm_global_mutex h](j)}(h``open_count``h]j)}(hje h]h open_count}(hjg hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjc 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&]uh1jhjz hKhjnubj)}(h*``filelist_mutex`` Protects **filelist**. h](j)}(h``filelist_mutex``h]j)}(hj h]hfilelist_mutex}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:84: ./include/drm/drm_device.hhKhj ubj)}(hhh]h)}(hProtects **filelist**.h](h Protects }(hj hhhNhNubjZ)}(h **filelist**h]hfilelist}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj ubh.}(hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj hKhj ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj hKhjnubj)}(h\``filelist`` List of userspace clients, linked through :c:type:`drm_file.lhead `. h](j)}(h ``filelist``h]j)}(hj h]hfilelist}(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)}(hNList of userspace clients, linked through :c:type:`drm_file.lhead `.h](h*List of userspace clients, linked through }(hjhhhNhNubh)}(h#:c:type:`drm_file.lhead `h]j)}(hj h]hdrm_file.lhead}(hjhhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjjjdrm_fileuh1hhj hKhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj hKhjubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj hKhjnubj)}(hk``filelist_internal`` List of open DRM files for in-kernel clients. Protected by :c:type:`filelist_mutex`. h](j)}(h``filelist_internal``h]j)}(hjFh]hfilelist_internal}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjDubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:84: ./include/drm/drm_device.hhKhj@ubj)}(hhh]h)}(hTList of open DRM files for in-kernel clients. Protected by :c:type:`filelist_mutex`.h](h;List of open DRM files for in-kernel clients. Protected by }(hj_hhhNhNubh)}(h:c:type:`filelist_mutex`h]j)}(hjih]hfilelist_mutex}(hjkhhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjgubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjjjfilelist_mutexuh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:84: ./include/drm/drm_device.hhKhj_ubh.}(hj_hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhKhj\ubah}(h]h ]h"]h$]h&]uh1jhj@ubeh}(h]h ]h"]h$]h&]uh1jhj[hKhjnubj)}(h;``clientlist_mutex`` Protects :c:type:`clientlist` access. h](j)}(h``clientlist_mutex``h]j)}(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)}(hjh]h clientlist}(hjhhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjjj clientlistuh1hhjhKhjubh access.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjnubj)}(hS``clientlist`` List of in-kernel clients. Protected by :c:type:`clientlist_mutex`. h](j)}(h``clientlist``h]j)}(hjh]h clientlist}(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)}(hCList of in-kernel clients. Protected by :c:type:`clientlist_mutex`.h](h(List of in-kernel clients. Protected by }(hjhhhNhNubh)}(h:c:type:`clientlist_mutex`h]j)}(hj"h]hclientlist_mutex}(hj$hhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjjjclientlist_mutexuh1hhjhKhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjnubj)}(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)}(hj[h]hvblank_disable_immediate}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjYubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:84: ./include/drm/drm_device.hhMhjUubj)}(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.}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:84: ./include/drm/drm_device.hhKhjqubh)}(hXThis can be set to true it the hardware has a working vblank counter with high-precision timestamping (otherwise there are races) and the driver uses drm_crtc_vblank_on() and drm_crtc_vblank_off() appropriately. Also, see **max_vblank_count**, :c:type:`drm_crtc_funcs.get_vblank_counter ` and :c:type:`drm_vblank_crtc_config.disable_immediate `.h](hThis can be set to true it the hardware has a working vblank counter with high-precision timestamping (otherwise there are races) and the driver uses drm_crtc_vblank_on() and drm_crtc_vblank_off() appropriately. Also, see }(hjhhhNhNubjZ)}(h**max_vblank_count**h]hmax_vblank_count}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubh, }(hjhhhNhNubh)}(h<:c:type:`drm_crtc_funcs.get_vblank_counter `h]j)}(hjh]h!drm_crtc_funcs.get_vblank_counter}(hjhhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjjjdrm_crtc_funcsuh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:84: ./include/drm/drm_device.hhKhjubh and }(hjhhhNhNubh)}(hK:c:type:`drm_vblank_crtc_config.disable_immediate `h]j)}(hjh]h(drm_vblank_crtc_config.disable_immediate}(hjhhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjjjdrm_vblank_crtc_configuh1hhjhKhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhKhjqubeh}(h]h ]h"]h$]h&]uh1jhjUubeh}(h]h ]h"]h$]h&]uh1jhjphMhjnubj)}(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.hhM hjubj)}(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}(hj!hhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjjjdrm_crtcuh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:84: ./include/drm/drm_device.hhM hjubhl. 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)}(hjCh]hstruct drm_crtc}(hjEhhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjAubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjjjdrm_crtcuh1hhj<hM hjubhH itself. It must be initialized explicitly by calling drm_vblank_init().}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj<hM hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM hjnubj)}(hY``vblank_time_lock`` Protects vblank count and time updates during vblank enable/disable h](j)}(h``vblank_time_lock``h]j)}(hj|h]hvblank_time_lock}(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.hhMhjvubj)}(hhh]h)}(hCProtects vblank count and time updates during vblank enable/disableh]hCProtects vblank count and time updates during vblank enable/disable}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjvubeh}(h]h ]h"]h$]h&]uh1jhjhMhjnubj)}(hY``vbl_lock`` Top-level vblank references lock, wraps the low-level **vblank_time_lock**. h](j)}(h ``vbl_lock``h]j)}(hjh]hvbl_lock}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:84: ./include/drm/drm_device.hhMhjubj)}(hhh]h)}(hKTop-level vblank references lock, wraps the low-level **vblank_time_lock**.h](h6Top-level vblank references lock, wraps the low-level }(hjhhhNhNubjZ)}(h**vblank_time_lock**h]hvblank_time_lock}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:84: ./include/drm/drm_device.hhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjnubj)}(hX``max_vblank_count`` Maximum value of the vblank registers. This value +1 will result in a wrap-around of the vblank register. It is used by the vblank core to handle wrap-arounds. If set to zero the vblank core will try to guess the elapsed vblanks between times when the vblank interrupt is disabled through high-precision timestamps. That approach is suffering from small races and imprecision over longer time periods, hence exposing a hardware vblank counter is always recommended. This is the statically configured device wide maximum. The driver can instead choose to use a runtime configurable per-crtc value :c:type:`drm_vblank_crtc.max_vblank_count `, in which case **max_vblank_count** must be left at zero. See drm_crtc_set_max_vblank_count() on how to use the per-crtc value. If non-zero, :c:type:`drm_crtc_funcs.get_vblank_counter ` must be set. h](j)}(h``max_vblank_count``h]j)}(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.hhMhjubh)}(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.}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:84: ./include/drm/drm_device.hhM#hjubh)}(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 }(hj8hhhNhNubh)}(h<:c:type:`drm_vblank_crtc.max_vblank_count `h]j)}(hjBh]h drm_vblank_crtc.max_vblank_count}(hjDhhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhj@ubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjjjdrm_vblank_crtcuh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:84: ./include/drm/drm_device.hhM)hj8ubh, in which case }(hj8hhhNhNubjZ)}(h**max_vblank_count**h]hmax_vblank_count}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj8ubh\ must be left at zero. See drm_crtc_set_max_vblank_count() on how to use the per-crtc value.}(hj8hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj_hM)hjubh)}(hVIf non-zero, :c:type:`drm_crtc_funcs.get_vblank_counter ` must be set.h](h If non-zero, }(hj|hhhNhNubh)}(h<:c:type:`drm_crtc_funcs.get_vblank_counter `h]j)}(hjh]h!drm_crtc_funcs.get_vblank_counter}(hjhhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjjjdrm_crtc_funcsuh1hhjhM/hj|ubh must be set.}(hj|hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhM/hjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM/hjnubj)}(h,``vblank_event_list`` List of vblank events h](j)}(h``vblank_event_list``h]j)}(hjh]hvblank_event_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.hhM5hjubj)}(hhh]h)}(hList of vblank eventsh]hList of vblank events}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM5hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM5hjnubj)}(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.hhM:hjubj)}(hhh]h)}(hoProtects **vblank_event_list** and event delivery in general. See drm_send_event() and drm_send_event_locked().h](h Protects }(hjhhhNhNubjZ)}(h**vblank_event_list**h]hvblank_event_list}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubhQ 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.hhM9hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj hM:hjnubj)}(h-``num_crtcs`` Number of CRTCs on this device h](j)}(h ``num_crtcs``h]j)}(hjDh]h num_crtcs}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjBubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:84: ./include/drm/drm_device.hhM@hj>ubj)}(hhh]h)}(hNumber of CRTCs on this deviceh]hNumber of CRTCs on this device}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjYhM@hjZubah}(h]h ]h"]h$]h&]uh1jhj>ubeh}(h]h ]h"]h$]h&]uh1jhjYhM@hjnubj)}(h$``mode_config`` Current mode config h](j)}(h``mode_config``h]j)}(hj}h]h mode_config}(hjhhhNhNubah}(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.hhMChjwubj)}(hhh]h)}(hCurrent mode configh]hCurrent mode config}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMChjubah}(h]h ]h"]h$]h&]uh1jhjwubeh}(h]h ]h"]h$]h&]uh1jhjhMChjnubj)}(h%``object_name_lock`` GEM information h](j)}(h``object_name_lock``h]j)}(hjh]hobject_name_lock}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:84: ./include/drm/drm_device.hhMFhjubj)}(hhh]h)}(hGEM informationh]hGEM information}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMFhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMFhjnubj)}(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.hhMIhjubj)}(hhh]h)}(hGEM informationh]hGEM information}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMIhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMIhjnubj)}(h'``vma_offset_manager`` GEM information h](j)}(h``vma_offset_manager``h]j)}(hj(h]hvma_offset_manager}(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.hhMLhj"ubj)}(hhh]h)}(hGEM informationh]hGEM information}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj=hMLhj>ubah}(h]h ]h"]h$]h&]uh1jhj"ubeh}(h]h ]h"]h$]h&]uh1jhj=hMLhjnubj)}(h#``vram_mm`` VRAM MM memory manager h](j)}(h ``vram_mm``h]j)}(hjah]hvram_mm}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1jhj_ubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:84: ./include/drm/drm_device.hhMOhj[ubj)}(hhh]h)}(hVRAM MM memory managerh]hVRAM MM memory manager}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjvhMOhjwubah}(h]h ]h"]h$]h&]uh1jhj[ubeh}(h]h ]h"]h$]h&]uh1jhjvhMOhjnubj)}(h``switch_power_state`` Power state of the client. Used by drivers supporting the switcheroo driver. The state is maintained in the :c:type:`vga_switcheroo_client_ops.set_gpu_state ` callback h](j)}(h``switch_power_state``h]j)}(hjh]hswitch_power_state}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:84: ./include/drm/drm_device.hhMVhjubj)}(hhh]h)}(hPower state of the client. Used by drivers supporting the switcheroo driver. The state is maintained in the :c:type:`vga_switcheroo_client_ops.set_gpu_state ` callbackh](hlPower state of the client. Used by drivers supporting the switcheroo driver. The state is maintained in the }(hjhhhNhNubh)}(hM:c:type:`vga_switcheroo_client_ops.set_gpu_state `h]j)}(hjh]h'vga_switcheroo_client_ops.set_gpu_state}(hjhhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjjjvga_switcheroo_client_opsuh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:84: ./include/drm/drm_device.hhMShjubh callback}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMShjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMVhjnubj)}(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.hhM^hjubj)}(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.hhM]hj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj hM^hjnubj)}(h2``debugfs_root`` Root directory for debugfs files.h](j)}(h``debugfs_root``h]j)}(hj1h]h debugfs_root}(hj3hhhNhNubah}(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.hhMdhj+ubj)}(hhh]h)}(h!Root directory for debugfs files.h]h!Root directory for debugfs files.}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:84: ./include/drm/drm_device.hhMehjGubah}(h]h ]h"]h$]h&]uh1jhj+ubeh}(h]h ]h"]h$]h&]uh1jhjFhMdhjnubeh}(h]h ]h"]h$]h&]uh1jhj&ubeh}(h]h ] kernelindentah"]h$]h&]uh1jOhj_hhhNhNubh)}(h**Description**h]jZ)}(hjth]h Description}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjrubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:84: ./include/drm/drm_device.hhMhhj_hhubh)}(hIThis structure represent a complete card that may contain multiple heads.h]hIThis structure represent a complete card that may contain multiple heads.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:84: ./include/drm/drm_device.hhK@hj_hhubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jdrm_dev_dma_dev (C function)c.drm_dev_dma_devhNtauh1jhj_hhhNhNubj)}(hhh](j)}(h8struct device * drm_dev_dma_dev (struct drm_device *dev)h]j)}(h6struct device *drm_dev_dma_dev(struct drm_device *dev)h](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:84: ./include/drm/drm_device.hhMnubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMnubh)}(hhh]j)}(hdeviceh]hdevice}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj reftype identifier reftargetjmodnameN classnameNjj)}j]j ASTIdentifier)}jdrm_dev_dma_devsbc.drm_dev_dma_devasbuh1hhjhhhjhMnubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMnubhdesc_sig_punctuation)}(h*h]h*}(hjhhhNhNubah}(h]h ]pah"]h$]h&]uh1jhjhhhjhMnubj)}(hdrm_dev_dma_devh]j)}(hjh]hdrm_dev_dma_dev}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jAjBuh1jhjhhhjhMnubhdesc_parameterlist)}(h(struct drm_device *dev)h]hdesc_parameter)}(hstruct drm_device *devh](j)}(hjh]hstruct}(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubj)}(h h]h }(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubh)}(hhh]j)}(h drm_deviceh]h drm_device}(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRubah}(h]h ]h"]h$]h&] refdomainj reftypej reftargetjWmodnameN classnameNjj)}j]jc.drm_dev_dma_devasbuh1hhj3ubj)}(h h]h }(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubj)}(hdevh]hdev}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubeh}(h]h ]h"]h$]h&]noemphjAjBuh1j1hj-ubah}(h]h ]h"]h$]h&]jAjBuh1j+hjhhhjhMnubeh}(h]h ]h"]h$]h&]jAjBjuh1jjjhjhhhjhMnubah}(h]jah ](j j!eh"]h$]h&]j%j&)j'huh1jhjhMnhjhhubj))}(hhh]h)}(h'returns the DMA device for a DRM deviceh]h'returns the DMA device for a DRM device}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:84: ./include/drm/drm_device.hhMnhjhhubah}(h]h ]h"]h$]h&]uh1j(hjhhhjhMnubeh}(h]h ](j functioneh"]h$]h&]jIj jJjjKjjLjMjNuh1jhhhj_hNhNubjP)}(h**Parameters** ``struct drm_device *dev`` DRM device **Description** Returns the DMA device of the given DRM device. By default, this the DRM device's parent. See drm_dev_set_dma_dev(). **Return** A DMA-capable device for the DRM device.h](h)}(h**Parameters**h]jZ)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:84: ./include/drm/drm_device.hhMrhjubj)}(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.hhMohjubj)}(hhh]h)}(h DRM deviceh]h DRM device}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMohjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMohjubah}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]jZ)}(hj4h]h Description}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj2ubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:84: ./include/drm/drm_device.hhMqhjubh)}(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().}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:84: ./include/drm/drm_device.hhMphjubh)}(h **Return**h]jZ)}(hj[h]hReturn}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjYubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:84: ./include/drm/drm_device.hhMshjubh)}(h(A DMA-capable device for the DRM device.h]h(A DMA-capable device for the DRM device.}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:84: ./include/drm/drm_device.hhMthjubeh}(h]h ] kernelindentah"]h$]h&]uh1jOhj_hhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jdrm_driver_feature (C enum)c.drm_driver_featurehNtauh1jhj_hhhNhNubj)}(hhh](j)}(hdrm_driver_featureh]j)}(henum drm_driver_featureh](j)}(hjAh]henum}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhKubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhKubj)}(hdrm_driver_featureh]j)}(hjh]hdrm_driver_feature}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jAjBuh1jhjhhhjhKubeh}(h]h ]h"]h$]h&]jAjBjuh1jjjhjhhhjhKubah}(h]jah ](j j!eh"]h$]h&]j%j&)j'huh1jhjhKhjhhubj))}(hhh]h)}(h feature flagsh]h feature flags}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhK4hjhhubah}(h]h ]h"]h$]h&]uh1j(hjhhhjhKubeh}(h]h ](j enumeh"]h$]h&]jIj jJjjKjjLjMjNuh1jhhhj_hNhNubjP)}(hX**Constants** ``DRIVER_GEM`` Driver use the GEM memory manager. This should be set for all modern drivers. ``DRIVER_MODESET`` Driver supports mode setting interfaces (KMS). ``DRIVER_RENDER`` Driver supports dedicated render nodes. See also the :ref:`section on render nodes ` for details. ``DRIVER_ATOMIC`` Driver supports the full atomic modesetting userspace API. Drivers which only use atomic internally, but do not support the full userspace API (e.g. not all properties converted to atomic, or multi-plane updates are not guaranteed to be tear-free) should not set this flag. ``DRIVER_SYNCOBJ`` Driver supports :c:type:`drm_syncobj` for explicit synchronization of command submission. ``DRIVER_SYNCOBJ_TIMELINE`` Driver supports the timeline flavor of :c:type:`drm_syncobj` for explicit synchronization of command submission. ``DRIVER_COMPUTE_ACCEL`` Driver supports compute acceleration devices. This flag is mutually exclusive with **DRIVER_RENDER** and **DRIVER_MODESET**. Devices that support both graphics and compute acceleration should be handled by two drivers that are connected using auxiliary bus. ``DRIVER_GEM_GPUVA`` Driver supports user defined GPU VA bindings for GEM objects. ``DRIVER_CURSOR_HOTSPOT`` Driver supports and requires cursor hotspot information in the cursor plane (e.g. cursor plane has to actually track the mouse cursor and the clients are required to set hotspot in order for the cursor planes to work correctly). ``DRIVER_USE_AGP`` Set up DRM AGP support, see drm_agp_init(), the DRM core will manage AGP resources. New drivers don't need this. ``DRIVER_LEGACY`` Denote a legacy driver using shadow attach. Do not use. ``DRIVER_PCI_DMA`` Driver is capable of PCI DMA, mapping of PCI DMA buffers to userspace will be enabled. Only for legacy drivers. Do not use. ``DRIVER_SG`` Driver can perform scatter/gather DMA, allocation and mapping of scatter/gather buffers will be enabled. Only for legacy drivers. Do not use. ``DRIVER_HAVE_DMA`` Driver supports DMA, the userspace DMA API will be supported. Only for legacy drivers. Do not use. ``DRIVER_HAVE_IRQ`` Legacy irq support. Only for legacy drivers. Do not use.h](h)}(h **Constants**h]jZ)}(hjh]h Constants}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubah}(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)}(hj#h]h DRIVER_GEM}(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.hhK` for details. h](j)}(h``DRIVER_RENDER``h]j)}(hjh]h DRIVER_RENDER}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhKChjubj)}(hhh]h)}(hrDriver supports dedicated render nodes. See also the :ref:`section on render nodes ` for details.h](h5Driver supports dedicated render nodes. See also the }(hjhhhNhNubh)}(h0:ref:`section on render nodes `h]hinline)}(hjh]hsection on render nodes}(hjhhhNhNubah}(h]h ](j stdstd-refeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftyperef refexplicitrefwarnjdrm_render_nodeuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhKBhjubh for details.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhKBhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKChjubj)}(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.hhKFhj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj hKJhjubj)}(hm``DRIVER_SYNCOBJ`` Driver supports :c:type:`drm_syncobj` for explicit synchronization of command submission. h](j)}(h``DRIVER_SYNCOBJ``h]j)}(hj0h]hDRIVER_SYNCOBJ}(hj2hhhNhNubah}(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.hhKNhj*ubj)}(hhh]h)}(hYDriver supports :c:type:`drm_syncobj` for explicit synchronization of command submission.h](hDriver supports }(hjIhhhNhNubh)}(h:c:type:`drm_syncobj`h]j)}(hjSh]h drm_syncobj}(hjUhhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjQubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjjj drm_syncobjuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhKMhjIubh4 for explicit synchronization of command submission.}(hjIhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjphKMhjFubah}(h]h ]h"]h$]h&]uh1jhj*ubeh}(h]h ]h"]h$]h&]uh1jhjEhKNhjubj)}(h``DRIVER_SYNCOBJ_TIMELINE`` Driver supports the timeline flavor of :c:type:`drm_syncobj` for explicit synchronization of command submission. h](j)}(h``DRIVER_SYNCOBJ_TIMELINE``h]j)}(hjh]hDRIVER_SYNCOBJ_TIMELINE}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhKRhjubj)}(hhh]h)}(hpDriver supports the timeline flavor of :c:type:`drm_syncobj` for explicit synchronization of command submission.h](h'Driver supports the timeline flavor of }(hjhhhNhNubh)}(h:c:type:`drm_syncobj`h]j)}(hjh]h drm_syncobj}(hjhhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjjj drm_syncobjuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhKQhjubh4 for explicit synchronization of command submission.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhKQhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKRhjubj)}(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 }(hjhhhNhNubjZ)}(h**DRIVER_RENDER**h]h DRIVER_RENDER}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubh and }(hjhhhNhNubjZ)}(h**DRIVER_MODESET**h]hDRIVER_MODESET}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubh. 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)}(hjHh]hDRIVER_GEM_GPUVA}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjFubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhKZhjBubj)}(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.}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1hhj]hKZhj^ubah}(h]h ]h"]h$]h&]uh1jhjBubeh}(h]h ]h"]h$]h&]uh1jhj]hKZhjubj)}(h``DRIVER_CURSOR_HOTSPOT`` Driver supports and requires cursor hotspot information in the cursor plane (e.g. cursor plane has to actually track the mouse cursor and the clients are required to set hotspot in order for the cursor planes to work correctly). h](j)}(h``DRIVER_CURSOR_HOTSPOT``h]j)}(hjh]hDRIVER_CURSOR_HOTSPOT}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhK`hj{ubj)}(hhh]h)}(hDriver supports and requires cursor hotspot information in the cursor plane (e.g. cursor plane has to actually track the mouse cursor and the clients are required to set hotspot in order for the cursor planes to work correctly).h]hDriver supports and requires cursor hotspot information in the cursor plane (e.g. cursor plane has to actually track the mouse cursor and the clients are required to set hotspot in order for the cursor planes to work correctly).}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhK]hjubah}(h]h ]h"]h$]h&]uh1jhj{ubeh}(h]h ]h"]h$]h&]uh1jhjhK`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)}(hjh]hDRIVER_USE_AGP}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhKdhjubj)}(hhh]h)}(hpSet up DRM AGP support, see drm_agp_init(), the DRM core will manage AGP resources. New drivers don't need this.h]hrSet up DRM AGP support, see drm_agp_init(), the DRM core will manage AGP resources. New drivers don’t need this.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhKchjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKdhjubj)}(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&]uh1hhj hKghj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj hKghjubj)}(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)}(hj.h]hDRIVER_PCI_DMA}(hj0hhhNhNubah}(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.hhKkhj(ubj)}(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.}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhKjhjDubah}(h]h ]h"]h$]h&]uh1jhj(ubeh}(h]h ]h"]h$]h&]uh1jhjChKkhjubj)}(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)}(hjhh]h DRIVER_SG}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjfubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhKphjbubj)}(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.hhKnhj~ubah}(h]h ]h"]h$]h&]uh1jhjbubeh}(h]h ]h"]h$]h&]uh1jhj}hKphjubj)}(hw``DRIVER_HAVE_DMA`` Driver supports DMA, the userspace DMA API will be supported. Only for legacy drivers. Do not use. h](j)}(h``DRIVER_HAVE_DMA``h]j)}(hjh]hDRIVER_HAVE_DMA}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhKthjubj)}(hhh]h)}(hbDriver supports DMA, the userspace DMA API will be supported. Only for legacy drivers. Do not use.h]hbDriver supports DMA, the userspace DMA API will be supported. Only for legacy drivers. Do not use.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhKshjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKthjubj)}(hL``DRIVER_HAVE_IRQ`` Legacy irq support. Only for legacy drivers. Do not use.h](j)}(h``DRIVER_HAVE_IRQ``h]j)}(hjh]hDRIVER_HAVE_IRQ}(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.hhKvhjubj)}(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&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKvhjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jOhj_hhhNhNubh)}(h**Description**h]jZ)}(hjh]h Description}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhKyhj_hhubh)}(hoSee :c:type:`drm_driver.driver_features `, drm_device.driver_features and drm_core_check_feature().h](hSee }(hj5hhhNhNubh)}(h1:c:type:`drm_driver.driver_features `h]j)}(hj?h]hdrm_driver.driver_features}(hjAhhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhj=ubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjjj drm_driveruh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhK5hj5ubh:, drm_device.driver_features and drm_core_check_feature().}(hj5hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj\hK5hj_hhubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jdrm_driver (C struct) c.drm_driverhNtauh1jhj_hhhNhNubj)}(hhh](j)}(h drm_driverh]j)}(hstruct drm_driverh](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|hhhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhK;ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|hhhjhK;ubj)}(h drm_driverh]j)}(hjzh]h drm_driver}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jAjBuh1jhj|hhhjhK;ubeh}(h]h ]h"]h$]h&]jAjBjuh1jjjhjxhhhjhK;ubah}(h]jsah ](j j!eh"]h$]h&]j%j&)j'huh1jhjhK;hjuhhubj))}(hhh]h)}(hDRM driver structureh]hDRM driver structure}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhKhjhhubah}(h]h ]h"]h$]h&]uh1j(hjuhhhjhK;ubeh}(h]h ](j structeh"]h$]h&]jIj jJjjKjjLjMjNuh1jhhhj_hNhNubjP)}(hX0**Definition**:: struct drm_driver { int (*load) (struct drm_device *, unsigned long flags); int (*open) (struct drm_device *, struct drm_file *); void (*postclose) (struct drm_device *, struct drm_file *); void (*unload) (struct drm_device *); void (*release) (struct drm_device *); void (*master_set)(struct drm_device *dev, struct drm_file *file_priv, bool from_open); void (*master_drop)(struct drm_device *dev, struct drm_file *file_priv); void (*debugfs_init)(struct drm_minor *minor); struct drm_gem_object *(*gem_create_object)(struct drm_device *dev, size_t size); int (*prime_handle_to_fd)(struct drm_device *dev, struct drm_file *file_priv, uint32_t handle, uint32_t flags, int *prime_fd); int (*prime_fd_to_handle)(struct drm_device *dev, struct drm_file *file_priv, int prime_fd, uint32_t *handle); struct drm_gem_object * (*gem_prime_import)(struct drm_device *dev, struct dma_buf *dma_buf); struct drm_gem_object *(*gem_prime_import_sg_table)( struct drm_device *dev, struct dma_buf_attachment *attach, struct sg_table *sgt); int (*dumb_create)(struct drm_file *file_priv, struct drm_device *dev, struct drm_mode_create_dumb *args); int (*dumb_map_offset)(struct drm_file *file_priv, struct drm_device *dev, uint32_t handle, uint64_t *offset); int (*fbdev_probe)(struct drm_fb_helper *fbdev_helper, struct drm_fb_helper_surface_size *sizes); void (*show_fdinfo)(struct drm_printer *p, struct drm_file *f); int major; int minor; int patchlevel; char *name; char *desc; u32 driver_features; const struct drm_ioctl_desc *ioctls; int num_ioctls; const struct file_operations *fops; }; **Members** ``load`` Backward-compatible driver callback to complete initialization steps after the driver is registered. For this reason, may suffer from race conditions and its use is deprecated for new drivers. It is therefore only supported for existing drivers not yet converted to the new scheme. See devm_drm_dev_alloc() and drm_dev_register() for proper and race-free way to set up a :c:type:`struct drm_device `. This is deprecated, do not use! Returns: Zero on success, non-zero value on failure. ``open`` Driver callback when a new :c:type:`struct drm_file ` is opened. Useful for setting up driver-private data structures like buffer allocators, execution contexts or similar things. Such driver-private resources must be released again in **postclose**. Since the display/modeset side of DRM can only be owned by exactly one :c:type:`struct drm_file ` (see :c:type:`drm_file.is_master ` and :c:type:`drm_device.master `) there should never be a need to set up any modeset related resources in this callback. Doing so would be a driver design bug. Returns: 0 on success, a negative error code on failure, which will be promoted to userspace as the result of the open() system call. ``postclose`` One of the driver callbacks when a new :c:type:`struct drm_file ` is closed. Useful for tearing down driver-private data structures allocated in **open** like buffer allocators, execution contexts or similar things. Since the display/modeset side of DRM can only be owned by exactly one :c:type:`struct drm_file ` (see :c:type:`drm_file.is_master ` and :c:type:`drm_device.master `) there should never be a need to tear down any modeset related resources in this callback. Doing so would be a driver design bug. ``unload`` Reverse the effects of the driver load callback. Ideally, the clean up performed by the driver should happen in the reverse order of the initialization. Similarly to the load hook, this handler is deprecated and its usage should be dropped in favor of an open-coded teardown function at the driver layer. See drm_dev_unregister() and drm_dev_put() for the proper way to remove a :c:type:`struct drm_device `. The unload() hook is called right after unregistering the device. ``release`` Optional callback for destroying device data after the final reference is released, i.e. the device is being destroyed. This is deprecated, clean up all memory allocations associated with a :c:type:`drm_device` using drmm_add_action(), drmm_kmalloc() and related managed resources functions. ``master_set`` Called whenever the minor master is set. Only used by vmwgfx. ``master_drop`` Called whenever the minor master is dropped. Only used by vmwgfx. ``debugfs_init`` Allows drivers to create driver-specific debugfs files. ``gem_create_object`` constructor for gem objects Hook for allocating the GEM object struct, for use by the CMA and SHMEM GEM helpers. Returns a GEM object on success, or an ERR_PTR()-encoded error code otherwise. ``prime_handle_to_fd`` PRIME export function. Only used by vmwgfx. ``prime_fd_to_handle`` PRIME import function. Only used by vmwgfx. ``gem_prime_import`` Import hook for GEM drivers. This defaults to drm_gem_prime_import() if not set. ``gem_prime_import_sg_table`` Optional hook used by the PRIME helper functions drm_gem_prime_import() respectively drm_gem_prime_import_dev(). ``dumb_create`` This creates a new dumb buffer in the driver's backing storage manager (GEM, TTM or something else entirely) and returns the resulting buffer handle. This handle can then be wrapped up into a framebuffer modeset object. Note that userspace is not allowed to use such objects for render acceleration - drivers must create their own private ioctls for such a use case. Width, height and depth are specified in the :c:type:`drm_mode_create_dumb` argument. The callback needs to fill the handle, pitch and size for the created buffer. Called by the user via ioctl. Returns: Zero on success, negative errno on failure. ``dumb_map_offset`` Allocate an offset in the drm device node's address space to be able to memory map a dumb buffer. The default implementation is drm_gem_create_mmap_offset(). GEM based drivers must not overwrite this. Called by the user via ioctl. Returns: Zero on success, negative errno on failure. ``fbdev_probe`` Allocates and initialize the fb_info structure for fbdev emulation. Furthermore it also needs to allocate the DRM framebuffer used to back the fbdev. This callback is mandatory for fbdev support. Returns: 0 on success ot a negative error code otherwise. ``show_fdinfo`` Print device specific fdinfo. See Documentation/gpu/drm-usage-stats.rst. ``major`` driver major number ``minor`` driver minor number ``patchlevel`` driver patch level ``name`` driver name ``desc`` driver description ``driver_features`` Driver features, see :c:type:`enum drm_driver_feature `. Drivers can disable some features on a per-instance basis using :c:type:`drm_device.driver_features `. ``ioctls`` Array of driver-private IOCTL description entries. See the chapter on :ref:`IOCTL support in the userland interfaces chapter` for the full details. ``num_ioctls`` Number of entries in **ioctls**. ``fops`` File operations for the DRM device node. See the discussion in :ref:`file operations` for in-depth coverage and some examples.h](h)}(h**Definition**::h](jZ)}(h**Definition**h]h Definition}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubh:}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhKhjubj2)}(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&]jAjBuh1j1hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhKhjubh)}(h **Members**h]jZ)}(hjh]hMembers}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhKhjubj)}(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)}(hj/h]hload}(hj1hhhNhNubah}(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)}(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 }(hjHhhhNhNubh)}(h(:c:type:`struct drm_device `h]j)}(hjRh]hstruct drm_device}(hjThhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjPubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjjj drm_deviceuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhKhjHubh.}(hjHhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjohKhjEubh)}(hThis is deprecated, do not use!h]hThis is deprecated, do not use!}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhKhjEubh)}(hReturns:h]hReturns:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhKhjEubh)}(h+Zero on success, non-zero value on failure.h]h+Zero on success, non-zero value on failure.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjDhKhjEubeh}(h]h ]h"]h$]h&]uh1jhj)ubeh}(h]h ]h"]h$]h&]uh1jhjDhKhj&ubj)}(hX``open`` Driver callback when a new :c:type:`struct drm_file ` is opened. Useful for setting up driver-private data structures like buffer allocators, execution contexts or similar things. Such driver-private resources must be released again in **postclose**. Since the display/modeset side of DRM can only be owned by exactly one :c:type:`struct drm_file ` (see :c:type:`drm_file.is_master ` and :c:type:`drm_device.master `) there should never be a need to set up any modeset related resources in this callback. Doing so would be a driver design bug. Returns: 0 on success, a negative error code on failure, which will be promoted to userspace as the result of the open() system call. h](j)}(h``open``h]j)}(hjh]hopen}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhKhjubj)}(hhh](h)}(hXDriver callback when a new :c:type:`struct drm_file ` is opened. Useful for setting up driver-private data structures like buffer allocators, execution contexts or similar things. Such driver-private resources must be released again in **postclose**.h](hDriver callback when a new }(hjhhhNhNubh)}(h$:c:type:`struct drm_file `h]j)}(hjh]hstruct drm_file}(hjhhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjjjdrm_fileuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhKhjubh is opened. Useful for setting up driver-private data structures like buffer allocators, execution contexts or similar things. Such driver-private resources must be released again in }(hjhhhNhNubjZ)}(h **postclose**h]h postclose}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhKhjubh)}(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}(hj!hhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjjjdrm_fileuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhKhjubh (see }(hjhhhNhNubh)}(h':c:type:`drm_file.is_master `h]j)}(hjCh]hdrm_file.is_master}(hjEhhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjAubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjjjdrm_fileuh1hhj<hKhjubh and }(hjhhhNhNubh)}(h(:c:type:`drm_device.master `h]j)}(hjfh]hdrm_device.master}(hjhhhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjdubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjjj drm_deviceuh1hhj<hKhjubh) 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&]uh1hhj<hKhjubh)}(hReturns:h]hReturns:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhKhjubh)}(h|0 on success, a negative error code on failure, which will be promoted to userspace as the result of the open() system call.h]h|0 on success, a negative error code on failure, which will be promoted to userspace as the result of the open() system call.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhKhjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhj&ubj)}(hX9``postclose`` One of the driver callbacks when a new :c:type:`struct drm_file ` is closed. Useful for tearing down driver-private data structures allocated in **open** like buffer allocators, execution contexts or similar things. Since the display/modeset side of DRM can only be owned by exactly one :c:type:`struct drm_file ` (see :c:type:`drm_file.is_master ` and :c:type:`drm_device.master `) there should never be a need to tear down any modeset related resources in this callback. Doing so would be a driver design bug. h](j)}(h ``postclose``h]j)}(hjh]h postclose}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhKhjubj)}(hhh](h)}(hOne of the driver callbacks when a new :c:type:`struct drm_file ` is closed. Useful for tearing down driver-private data structures allocated in **open** like buffer allocators, execution contexts or similar things.h](h'One of the driver callbacks when a new }(hjhhhNhNubh)}(h$:c:type:`struct drm_file `h]j)}(hjh]hstruct drm_file}(hjhhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjjjdrm_fileuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhKhjubhP is closed. Useful for tearing down driver-private data structures allocated in }(hjhhhNhNubjZ)}(h**open**h]hopen}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubh> like buffer allocators, execution contexts or similar things.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhKhjubh)}(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)}(hj$h]hstruct drm_file}(hj&hhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhj"ubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjjjdrm_fileuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhKhjubh (see }(hjhhhNhNubh)}(h':c:type:`drm_file.is_master `h]j)}(hjHh]hdrm_file.is_master}(hjJhhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjFubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjjjdrm_fileuh1hhjAhKhjubh and }(hjhhhNhNubh)}(h(:c:type:`drm_device.master `h]j)}(hjkh]hdrm_device.master}(hjmhhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjiubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjjj drm_deviceuh1hhjAhKhjubh) 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&]uh1hhjAhKhjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhj&ubj)}(hX``unload`` Reverse the effects of the driver load callback. Ideally, the clean up performed by the driver should happen in the reverse order of the initialization. Similarly to the load hook, this handler is deprecated and its usage should be dropped in favor of an open-coded teardown function at the driver layer. See drm_dev_unregister() and drm_dev_put() for the proper way to remove a :c:type:`struct drm_device `. The unload() hook is called right after unregistering the device. h](j)}(h ``unload``h]j)}(hjh]hunload}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhKhjubj)}(hhh](h)}(hXReverse the effects of the driver load callback. Ideally, the clean up performed by the driver should happen in the reverse order of the initialization. Similarly to the load hook, this handler is deprecated and its usage should be dropped in favor of an open-coded teardown function at the driver layer. See drm_dev_unregister() and drm_dev_put() for the proper way to remove a :c:type:`struct drm_device `.h](hX~Reverse the effects of the driver load callback. Ideally, the clean up performed by the driver should happen in the reverse order of the initialization. Similarly to the load hook, this handler is deprecated and its usage should be dropped in favor of an open-coded teardown function at the driver layer. See drm_dev_unregister() and drm_dev_put() for the proper way to remove a }(hjhhhNhNubh)}(h(:c:type:`struct drm_device `h]j)}(hjh]hstruct drm_device}(hjhhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjjj drm_deviceuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhKhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhKhjubh)}(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.hhKhjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhj&ubj)}(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.hhMhj ubj)}(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.}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhKhj&ubh)}(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 }(hj8hhhNhNubh)}(h:c:type:`drm_device`h]j)}(hjBh]h drm_device}(hjDhhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhj@ubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjjj drm_deviceuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhMhj8ubhQ using drmm_add_action(), drmm_kmalloc() and related managed resources functions.}(hj8hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj_hMhj&ubeh}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj%hMhj&ubj)}(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&]uh1jhjzubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhM hjvubj)}(hhh]h)}(h=Called whenever the minor master is set. Only used by vmwgfx.h]h=Called whenever the minor master is set. Only used by vmwgfx.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM hjubah}(h]h ]h"]h$]h&]uh1jhjvubeh}(h]h ]h"]h$]h&]uh1jhjhM hj&ubj)}(hR``master_drop`` Called whenever the minor master is dropped. Only used by vmwgfx. h](j)}(h``master_drop``h]j)}(hjh]h master_drop}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhMhjubj)}(hhh]h)}(hACalled whenever the minor master is dropped. Only used by vmwgfx.h]hACalled whenever the minor master is dropped. Only used by vmwgfx.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhj&ubj)}(hI``debugfs_init`` Allows drivers to create driver-specific debugfs files. h](j)}(h``debugfs_init``h]j)}(hjh]h debugfs_init}(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)}(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&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj hMhj&ubj)}(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.}(hjO 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"hj&ubj)}(hC``prime_handle_to_fd`` PRIME export function. Only used by vmwgfx. h](j)}(h``prime_handle_to_fd``h]j)}(hjp h]hprime_handle_to_fd}(hjr hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjn ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhM(hjj 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&]uh1jhjj ubeh}(h]h ]h"]h$]h&]uh1jhj hM(hj&ubj)}(hC``prime_fd_to_handle`` PRIME import function. Only used by vmwgfx. h](j)}(h``prime_fd_to_handle``h]j)}(hj h]hprime_fd_to_handle}(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 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/hj&ubj)}(hg``gem_prime_import`` Import hook for GEM drivers. This defaults to drm_gem_prime_import() if not set. h](j)}(h``gem_prime_import``h]j)}(hj h]hgem_prime_import}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhM9hj ubj)}(hhh](h)}(hImport hook for GEM drivers.h]hImport hook for GEM drivers.}(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&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj hM9hj&ubj)}(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().}(hjC!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?!hMAhj&ubj)}(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)}(hjd!h]h dumb_create}(hjf!hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjb!ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.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.hhMKhjz!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.hhMOhjz!ubh)}(hWidth, height and depth are specified in the :c:type:`drm_mode_create_dumb` argument. The callback needs to fill the handle, pitch and size for the created buffer.h](h-Width, height and depth are specified in the }(hj!hhhNhNubh)}(h:c:type:`drm_mode_create_dumb`h]j)}(hj!h]hdrm_mode_create_dumb}(hj!hhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhj!ubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjjjdrm_mode_create_dumbuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhMShj!ubhX argument. The callback needs to fill the handle, pitch and size for the created buffer.}(hj!hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj!hMShjz!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.hhMWhjz!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.hhMYhjz!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&]uh1hhjy!hM[hjz!ubeh}(h]h ]h"]h$]h&]uh1jhj^!ubeh}(h]h ]h"]h$]h&]uh1jhjy!hM[hj&ubj)}(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.}(hj3"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.}(hjB"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:}(hjQ"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 "hMmhj&ubj)}(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~hjz"ubj)}(hhh](h)}(hAllocates and initialize the fb_info structure for fbdev emulation. Furthermore it also needs to allocate the DRM framebuffer used to back the fbdev.h]hAllocates and initialize the fb_info structure for fbdev emulation. Furthermore it also needs to allocate the DRM framebuffer used to back the fbdev.}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhMvhj"ubh)}(h-This callback is mandatory for fbdev support.h]h-This callback is mandatory for fbdev support.}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhMzhj"ubh)}(hReturns:h]hReturns:}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhM|hj"ubh)}(h00 on success ot a negative error code otherwise.h]h00 on success ot a negative error code otherwise.}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj"hM~hj"ubeh}(h]h ]h"]h$]h&]uh1jhjz"ubeh}(h]h ]h"]h$]h&]uh1jhj"hM~hj&ubj)}(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"hMhj&ubj)}(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}(hj8#hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj4#hMhj5#ubah}(h]h ]h"]h$]h&]uh1jhj#ubeh}(h]h ]h"]h$]h&]uh1jhj4#hMhj&ubj)}(h``minor`` driver minor number h](j)}(h ``minor``h]j)}(hjX#h]hminor}(hjZ#hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjV#ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhMhjR#ubj)}(hhh]h)}(hdriver minor numberh]hdriver minor number}(hjq#hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjm#hMhjn#ubah}(h]h ]h"]h$]h&]uh1jhjR#ubeh}(h]h ]h"]h$]h&]uh1jhjm#hMhj&ubj)}(h"``patchlevel`` driver patch level h](j)}(h``patchlevel``h]j)}(hj#h]h patchlevel}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj#ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhMhj#ubj)}(hhh]h)}(hdriver patch levelh]hdriver patch level}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj#hMhj#ubah}(h]h ]h"]h$]h&]uh1jhj#ubeh}(h]h ]h"]h$]h&]uh1jhj#hMhj&ubj)}(h``name`` driver name h](j)}(h``name``h]j)}(hj#h]hname}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj#ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhMhj#ubj)}(hhh]h)}(h driver nameh]h driver name}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj#hMhj#ubah}(h]h ]h"]h$]h&]uh1jhj#ubeh}(h]h ]h"]h$]h&]uh1jhj#hMhj&ubj)}(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$hMhj&ubj)}(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.hhMhj6$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 }(hjU$hhhNhNubh)}(h6:c:type:`enum drm_driver_feature `h]j)}(hj_$h]henum drm_driver_feature}(hja$hhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhj]$ubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjjjdrm_driver_featureuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhMhjU$ubhB. Drivers can disable some features on a per-instance basis using }(hjU$hhhNhNubh)}(h1:c:type:`drm_device.driver_features `h]j)}(hj$h]hdrm_device.driver_features}(hj$hhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhj$ubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjjj drm_deviceuh1hhj|$hMhjU$ubh.}(hjU$hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj|$hMhjR$ubah}(h]h ]h"]h$]h&]uh1jhj6$ubeh}(h]h ]h"]h$]h&]uh1jhjQ$hMhj&ubj)}(h``ioctls`` Array of driver-private IOCTL description entries. See the chapter on :ref:`IOCTL support in the userland interfaces chapter` for the full details. h](j)}(h ``ioctls``h]j)}(hj$h]hioctls}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj$ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhMhj$ubj)}(hhh]h)}(hArray of driver-private IOCTL description entries. See the chapter on :ref:`IOCTL support in the userland interfaces chapter` for the full details.h](hFArray of driver-private IOCTL description entries. See the chapter on }(hj$hhhNhNubh)}(hI:ref:`IOCTL support in the userland interfaces chapter`h]j)}(hj$h]h0IOCTL support in the userland interfaces chapter}(hj$hhhNhNubah}(h]h ](j stdstd-refeh"]h$]h&]uh1jhj$ubah}(h]h ]h"]h$]h&]refdocj refdomainj$reftyperef refexplicitrefwarnjdrm_driver_ioctluh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhMhj$ubh for the full details.}(hj$hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj$hMhj$ubah}(h]h ]h"]h$]h&]uh1jhj$ubeh}(h]h ]h"]h$]h&]uh1jhj$hMhj&ubj)}(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 }(hj3%hhhNhNubjZ)}(h **ioctls**h]hioctls}(hj;%hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj3%ubh.}(hj3%hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj/%hMhj0%ubah}(h]h ]h"]h$]h&]uh1jhj%ubeh}(h]h ]h"]h$]h&]uh1jhj/%hMhj&ubj)}(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)}(hje%h]hfops}(hjg%hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjc%ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhMhj_%ubj)}(hhh]h)}(hFile operations for the DRM device node. See the discussion in :ref:`file operations` for in-depth coverage and some examples.h](h?File operations for the DRM device node. See the discussion in }(hj~%hhhNhNubh)}(h':ref:`file operations`h]j)}(hj%h]hfile operations}(hj%hhhNhNubah}(h]h ](j stdstd-refeh"]h$]h&]uh1jhj%ubah}(h]h ]h"]h$]h&]refdocj refdomainj%reftyperef refexplicitrefwarnjdrm_driver_fopsuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhMhj~%ubh) for in-depth coverage and some examples.}(hj~%hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj%hMhj{%ubah}(h]h ]h"]h$]h&]uh1jhj_%ubeh}(h]h ]h"]h$]h&]uh1jhjz%hMhj&ubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jOhj_hhhNhNubh)}(h**Description**h]jZ)}(hj%h]h Description}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj%ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhMhj_hhubh)}(hXdThis structure represent the common code for a family of cards. There will be one :c:type:`struct drm_device ` for each card present in this family. It contains lots of vfunc entries, and a pile of those probably should be moved to more appropriate places like :c:type:`drm_mode_config_funcs` or into a new operations structure for GEM drivers.h](hRThis structure represent the common code for a family of cards. There will be one }(hj%hhhNhNubh)}(h(:c:type:`struct drm_device `h]j)}(hj%h]hstruct drm_device}(hj%hhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhj%ubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjjj drm_deviceuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.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 refexplicitrefwarnjjjdrm_mode_config_funcsuh1hhj &hKhj%ubh4 or into a new operations structure for GEM drivers.}(hj%hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj &hKhj_hhubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jdevm_drm_dev_alloc (C macro)c.devm_drm_dev_allochNtauh1jhj_hhhNhNubj)}(hhh](j)}(hdevm_drm_dev_alloch]j)}(hdevm_drm_dev_alloch]j)}(hdevm_drm_dev_alloch]j)}(hjJ&h]hdevm_drm_dev_alloc}(hjT&hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjP&ubah}(h]h ](jjeh"]h$]h&]jAjBuh1jhjL&hhhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhMubah}(h]h ]h"]h$]h&]jAjBjuh1jjjhjH&hhhjg&hMubah}(h]jC&ah ](j j!eh"]h$]h&]j%j&)j'huh1jhjg&hMhjE&hhubj))}(hhh]h}(h]h ]h"]h$]h&]uh1j(hjE&hhhjg&hMubeh}(h]h ](j macroeh"]h$]h&]jIj jJj&jKj&jLjMjNuh1jhhhj_hNhNubh)}(h5``devm_drm_dev_alloc (parent, driver, type, member)``h]j)}(hj&h]h1devm_drm_dev_alloc (parent, driver, type, member)}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj&ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhMhj_hhubh block_quote)}(h?Resource managed allocation of a :c:type:`drm_device` instance h]h)}(h>Resource managed allocation of a :c:type:`drm_device` instanceh](h!Resource managed allocation of a }(hj&hhhNhNubh)}(h:c:type:`drm_device`h]j)}(hj&h]h drm_device}(hj&hhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhj&ubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjjj drm_deviceuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhMhj&ubh instance}(hj&hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj&hMhj&ubah}(h]h ]h"]h$]h&]uh1j&hj&hMhj_hhubjP)}(hX**Parameters** ``parent`` Parent device object ``driver`` DRM driver ``type`` the type of the struct which contains struct :c:type:`drm_device` ``member`` the name of the :c:type:`drm_device` within **type**. **Description** This allocates and initialize a new DRM device. No device registration is done. Call drm_dev_register() to advertice the device to user space and register it with other core subsystems. This should be done last in the device initialization sequence to make sure userspace can't access an inconsistent state. The initial ref-count of the object is 1. Use drm_dev_get() and drm_dev_put() to take and drop further ref-counts. It is recommended that drivers embed :c:type:`struct drm_device ` into their own device structure. Note that this manages the lifetime of the resulting :c:type:`drm_device` automatically using devres. The DRM device initialized with this function is automatically put on driver detach using drm_dev_put(). **Return** Pointer to new DRM device, or ERR_PTR on failure.h](h)}(h**Parameters**h]jZ)}(hj&h]h Parameters}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj&ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhMhj&ubj)}(hhh](j)}(h ``parent`` Parent device object h](j)}(h ``parent``h]j)}(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)}(hj8'h]hdriver}(hj:'hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6'ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhMhj2'ubj)}(hhh]h)}(h DRM driverh]h DRM driver}(hjQ'hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjM'hMhjN'ubah}(h]h ]h"]h$]h&]uh1jhj2'ubeh}(h]h ]h"]h$]h&]uh1jhjM'hMhj&ubj)}(hK``type`` the type of the struct which contains struct :c:type:`drm_device` h](j)}(h``type``h]j)}(hjq'h]htype}(hjs'hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjo'ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhMhjk'ubj)}(hhh]h)}(hAthe type of the struct which contains struct :c:type:`drm_device`h](h-the type of the struct which contains struct }(hj'hhhNhNubh)}(h:c:type:`drm_device`h]j)}(hj'h]h drm_device}(hj'hhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhj'ubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjjj drm_deviceuh1hhj'hMhj'ubeh}(h]h ]h"]h$]h&]uh1hhj'hMhj'ubah}(h]h ]h"]h$]h&]uh1jhjk'ubeh}(h]h ]h"]h$]h&]uh1jhj'hMhj&ubj)}(hA``member`` the name of the :c:type:`drm_device` within **type**. h](j)}(h ``member``h]j)}(hj'h]hmember}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj'ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhMhj'ubj)}(hhh]h)}(h5the name of the :c:type:`drm_device` within **type**.h](hthe name of the }(hj'hhhNhNubh)}(h:c:type:`drm_device`h]j)}(hj'h]h drm_device}(hj'hhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhj'ubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjjj drm_deviceuh1hhj'hMhj'ubh within }(hj'hhhNhNubjZ)}(h**type**h]htype}(hj (hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj'ubh.}(hj'hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj'hMhj'ubah}(h]h ]h"]h$]h&]uh1jhj'ubeh}(h]h ]h"]h$]h&]uh1jhj'hMhj&ubeh}(h]h ]h"]h$]h&]uh1jhj&ubh)}(h**Description**h]jZ)}(hj9(h]h Description}(hj;(hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj7(ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhMhj&ubh)}(hX3This allocates and initialize a new DRM device. No device registration is done. Call drm_dev_register() to advertice the device to user space and register it with other core subsystems. This should be done last in the device initialization sequence to make sure userspace can't access an inconsistent state.h]hX5This allocates and initialize a new DRM device. No device registration is done. Call drm_dev_register() to advertice the device to user space and register it with other core subsystems. This should be done last in the device initialization sequence to make sure userspace can’t access an inconsistent state.}(hjO(hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhMhj&ubh)}(hrThe initial ref-count of the object is 1. Use drm_dev_get() and drm_dev_put() to take and drop further ref-counts.h]hrThe initial ref-count of the object is 1. Use drm_dev_get() and drm_dev_put() to take and drop further ref-counts.}(hj^(hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhMhj&ubh)}(hnIt is recommended that drivers embed :c:type:`struct drm_device ` into their own device structure.h](h%It is recommended that drivers embed }(hjm(hhhNhNubh)}(h(:c:type:`struct drm_device `h]j)}(hjw(h]hstruct drm_device}(hjy(hhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhju(ubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjjj drm_deviceuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhMhjm(ubh! into their own device structure.}(hjm(hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj(hMhj&ubh)}(hNote that this manages the lifetime of the resulting :c:type:`drm_device` automatically using devres. The DRM device initialized with this function is automatically put on driver detach using drm_dev_put().h](h5Note that this manages the lifetime of the resulting }(hj(hhhNhNubh)}(h:c:type:`drm_device`h]j)}(hj(h]h drm_device}(hj(hhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhj(ubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjjj drm_deviceuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhMhj(ubh automatically using devres. The DRM device initialized with this function is automatically put on driver detach using drm_dev_put().}(hj(hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj(hMhj&ubh)}(h **Return**h]jZ)}(hj(h]hReturn}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj(ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhMhj&ubh)}(h1Pointer to new DRM device, or ERR_PTR on failure.h]h1Pointer to new DRM device, or ERR_PTR on failure.}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhMhj&ubeh}(h]h ] kernelindentah"]h$]h&]uh1jOhj_hhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j!drm_dev_is_unplugged (C function)c.drm_dev_is_unpluggedhNtauh1jhj_hhhNhNubj)}(hhh](j)}(h2bool drm_dev_is_unplugged (struct drm_device *dev)h]j)}(h1bool drm_dev_is_unplugged(struct drm_device *dev)h](hdesc_sig_keyword_type)}(hboolh]hbool}(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&]uh1jhj8)ubah}(h]h ](jjeh"]h$]h&]jAjBuh1jhj)hhhj))hMubj,)}(h(struct drm_device *dev)h]j2)}(hstruct drm_device *devh](j)}(hjh]hstruct}(hjX)hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjT)ubj)}(h h]h }(hje)hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjT)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 classnameNjj)}j]j)}jj>)sbc.drm_dev_is_unpluggedasbuh1hhjT)ubj)}(h h]h }(hj)hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjT)ubj)}(hjh]h*}(hj)hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjT)ubj)}(hdevh]hdev}(hj)hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjT)ubeh}(h]h ]h"]h$]h&]noemphjAjBuh1j1hjP)ubah}(h]h ]h"]h$]h&]jAjBuh1j+hj)hhhj))hMubeh}(h]h ]h"]h$]h&]jAjBjuh1jjjhj)hhhj))hMubah}(h]j )ah ](j j!eh"]h$]h&]j%j&)j'huh1jhj))hMhj )hhubj))}(hhh]h)}(his a DRM device unpluggedh]his a DRM device unplugged}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhMhj)hhubah}(h]h ]h"]h$]h&]uh1j(hj )hhhj))hMubeh}(h]h ](j functioneh"]h$]h&]jIj jJj)jKj)jLjMjNuh1jhhhj_hNhNubjP)}(hX **Parameters** ``struct drm_device *dev`` DRM device **Description** This function can be called to check whether a hotpluggable is unplugged. Unplugging itself is singalled through drm_dev_unplug(). If a device is unplugged, these two functions guarantee that any store before calling drm_dev_unplug() is visible to callers of this function after it completes WARNING: This function fundamentally races against drm_dev_unplug(). It is recommended that drivers instead use the underlying drm_dev_enter() and drm_dev_exit() function pairs.h](h)}(h**Parameters**h]jZ)}(hj)h]h Parameters}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj)ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhMhj)ubj)}(hhh]j)}(h&``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}(hj5*hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj1*hMhj2*ubah}(h]h ]h"]h$]h&]uh1jhj*ubeh}(h]h ]h"]h$]h&]uh1jhj1*hMhj*ubah}(h]h ]h"]h$]h&]uh1jhj)ubh)}(h**Description**h]jZ)}(hjW*h]h Description}(hjY*hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjU*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}(hjm*hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhMhj)ubh)}(hWARNING: This function fundamentally races against drm_dev_unplug(). It is recommended that drivers instead use the underlying drm_dev_enter() and drm_dev_exit() function pairs.h]hWARNING: This function fundamentally races against drm_dev_unplug(). It is recommended that drivers instead use the underlying drm_dev_enter() and drm_dev_exit() function pairs.}(hj|*hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhMhj)ubeh}(h]h ] kernelindentah"]h$]h&]uh1jOhj_hhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j(drm_core_check_all_features (C function)c.drm_core_check_all_featureshNtauh1jhj_hhhNhNubj)}(hhh](j)}(hMbool drm_core_check_all_features (const struct drm_device *dev, u32 features)h]j)}(hLbool drm_core_check_all_features(const struct drm_device *dev, u32 features)h](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_all_featuresh]j)}(hdrm_core_check_all_featuresh]hdrm_core_check_all_features}(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*ubah}(h]h ](jjeh"]h$]h&]jAjBuh1jhj*hhhj*hMubj,)}(h,(const struct drm_device *dev, u32 features)h](j2)}(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 classnameNjj)}j]j)}jj*sbc.drm_core_check_all_featuresasbuh1hhj*ubj)}(h h]h }(hjA+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*ubj)}(hjh]h*}(hjO+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*ubj)}(hdevh]hdev}(hj\+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*ubeh}(h]h ]h"]h$]h&]noemphjAjBuh1j1hj*ubj2)}(h u32 featuresh](h)}(hhh]j)}(hu32h]hu32}(hjx+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhju+ubah}(h]h ]h"]h$]h&] refdomainj reftypej reftargetjz+modnameN classnameNjj)}j]j=+c.drm_core_check_all_featuresasbuh1hhjq+ubj)}(h h]h }(hj+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjq+ubj)}(hfeaturesh]hfeatures}(hj+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjq+ubeh}(h]h ]h"]h$]h&]noemphjAjBuh1j1hj*ubeh}(h]h ]h"]h$]h&]jAjBuh1j+hj*hhhj*hMubeh}(h]h ]h"]h$]h&]jAjBjuh1jjjhj*hhhj*hMubah}(h]j*ah ](j j!eh"]h$]h&]j%j&)j'huh1jhj*hMhj*hhubj))}(hhh]h)}(hcheck driver feature flags maskh]hcheck driver feature flags mask6}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhMhj+hhubah}(h]h ]h"]h$]h&]uh1j(hj*hhhj*hMubeh}(h]h ](j functioneh"]h$]h&]jIj jJj+jKj+jLjMjNuh1jhhhj_hNhNubjP)}(hX**Parameters** ``const struct drm_device *dev`` DRM device to check ``u32 features`` feature flag(s) mask **Description** This checks **dev** for driver features, see :c:type:`drm_driver.driver_features `, :c:type:`drm_device.driver_features `, and the various :c:type:`enum drm_driver_feature ` flags. Returns true if all features in the **features** mask are supported, false otherwise.h](h)}(h**Parameters**h]jZ)}(hj+h]h Parameters}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj+ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.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)}(hjH,h]h u32 features}(hjJ,hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjF,ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhM hjB,ubj)}(hhh]h)}(hfeature flag(s) maskh]hfeature flag(s) mask}(hja,hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj],hM hj^,ubah}(h]h ]h"]h$]h&]uh1jhjB,ubeh}(h]h ]h"]h$]h&]uh1jhj],hM hj,ubeh}(h]h ]h"]h$]h&]uh1jhj+ubh)}(h**Description**h]jZ)}(hj,h]h Description}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj,ubah}(h]h ]h"]h$]h&]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 }(hj,hhhNhNubjZ)}(h**dev**h]hdev}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj,ubh for driver features, see }(hj,hhhNhNubh)}(h1:c:type:`drm_driver.driver_features `h]j)}(hj,h]hdrm_driver.driver_features}(hj,hhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhj,ubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjjj drm_driveruh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhM hj,ubh, }(hj,hhhNhNubh)}(h1:c:type:`drm_device.driver_features `h]j)}(hj,h]hdrm_device.driver_features}(hj,hhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhj,ubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjjj drm_deviceuh1hhj,hM hj,ubh, and the various }(hj,hhhNhNubh)}(h6:c:type:`enum drm_driver_feature `h]j)}(hj,h]henum drm_driver_feature}(hj,hhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhj,ubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjjjdrm_driver_featureuh1hhj,hM hj,ubh flags.}(hj,hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj,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#-hhhNhNubjZ)}(h **features**h]hfeatures}(hj+-hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj#-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&]uh1jOhj_hhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j#drm_core_check_feature (C function)c.drm_core_check_featurehNtauh1jhj_hhhNhNubj)}(hhh](j)}(h[bool drm_core_check_feature (const struct drm_device *dev, enum drm_driver_feature feature)h]j)}(hZbool drm_core_check_feature(const struct drm_device *dev, enum drm_driver_feature feature)h](j))}(hj)h]hbool}(hjd-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 }(hjr-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`-hhhjq-hMubj)}(hdrm_core_check_featureh]j)}(hdrm_core_check_featureh]hdrm_core_check_feature}(hj-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-ubah}(h]h ](jjeh"]h$]h&]jAjBuh1jhj`-hhhjq-hMubj,)}(h?(const struct drm_device *dev, enum drm_driver_feature feature)h](j2)}(hconst struct drm_device *devh](j)}(hj*h]hconst}(hj-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-ubj)}(h h]h }(hj-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-ubj)}(hjh]hstruct}(hj-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-ubj)}(h h]h }(hj-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-ubh)}(hhh]j)}(h drm_deviceh]h drm_device}(hj-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-ubah}(h]h ]h"]h$]h&] refdomainj reftypej reftargetj-modnameN classnameNjj)}j]j)}jj-sbc.drm_core_check_featureasbuh1hhj-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&]noemphjAjBuh1j1hj-ubj2)}(henum drm_driver_feature featureh](j)}(hjAh]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}(hjK.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjH.ubah}(h]h ]h"]h$]h&] refdomainj reftypej reftargetjM.modnameN classnameNjj)}j]j-c.drm_core_check_featureasbuh1hhj).ubj)}(h h]h }(hji.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj).ubj)}(hfeatureh]hfeature}(hjw.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj).ubeh}(h]h ]h"]h$]h&]noemphjAjBuh1j1hj-ubeh}(h]h ]h"]h$]h&]jAjBuh1j+hj`-hhhjq-hMubeh}(h]h ]h"]h$]h&]jAjBjuh1jjjhj\-hhhjq-hMubah}(h]jW-ah ](j j!eh"]h$]h&]j%j&)j'huh1jhjq-hMhjY-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(hjY-hhhjq-hMubeh}(h]h ](j functioneh"]h$]h&]jIj jJj.jKj.jLjMjNuh1jhhhj_hNhNubjP)}(hX**Parameters** ``const struct drm_device *dev`` DRM device to check ``enum drm_driver_feature feature`` feature flag **Description** This checks **dev** for driver features, see :c:type:`drm_driver.driver_features `, :c:type:`drm_device.driver_features `, and the various :c:type:`enum drm_driver_feature ` flags. Returns true if the **feature** is supported, false otherwise.h](h)}(h**Parameters**h]jZ)}(hj.h]h Parameters}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj.ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhMhj.ubj)}(hhh](j)}(h5``const struct drm_device *dev`` DRM device to check h](j)}(h ``const struct drm_device *dev``h]j)}(hj.h]hconst struct drm_device *dev}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj.ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhMhj.ubj)}(hhh]h)}(hDRM device to checkh]hDRM device to check}(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)}(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}(hj4/hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj0/hMhj1/ubah}(h]h ]h"]h$]h&]uh1jhj/ubeh}(h]h ]h"]h$]h&]uh1jhj0/hMhj.ubeh}(h]h ]h"]h$]h&]uh1jhj.ubh)}(h**Description**h]jZ)}(hjV/h]h Description}(hjX/hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjT/ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhMhj.ubh)}(hThis checks **dev** for driver features, see :c:type:`drm_driver.driver_features `, :c:type:`drm_device.driver_features `, and the various :c:type:`enum drm_driver_feature ` flags.h](h This checks }(hjl/hhhNhNubjZ)}(h**dev**h]hdev}(hjt/hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjl/ubh for driver features, see }(hjl/hhhNhNubh)}(h1:c:type:`drm_driver.driver_features `h]j)}(hj/h]hdrm_driver.driver_features}(hj/hhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhj/ubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjjj drm_driveruh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhMhjl/ubh, }(hjl/hhhNhNubh)}(h1:c:type:`drm_device.driver_features `h]j)}(hj/h]hdrm_device.driver_features}(hj/hhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhj/ubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjjj drm_deviceuh1hhj/hMhjl/ubh, and the various }(hjl/hhhNhNubh)}(h6:c:type:`enum drm_driver_feature `h]j)}(hj/h]henum drm_driver_feature}(hj/hhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhj/ubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjjjdrm_driver_featureuh1hhj/hMhjl/ubh flags.}(hjl/hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj/hMhj.ubh)}(h>Returns true if the **feature** is supported, false otherwise.h](hReturns true if the }(hj/hhhNhNubjZ)}(h **feature**h]hfeature}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj/ubh is supported, false otherwise.}(hj/hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhM hj.ubeh}(h]h ] kernelindentah"]h$]h&]uh1jOhj_hhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j(drm_drv_uses_atomic_modeset (C function)c.drm_drv_uses_atomic_modesethNtauh1jhj_hhhNhNubj)}(hhh](j)}(h9bool drm_drv_uses_atomic_modeset (struct drm_device *dev)h]j)}(h8bool drm_drv_uses_atomic_modeset(struct drm_device *dev)h](j))}(hj)h]hbool}(hj70hhhNhNubah}(h]h ]j%)ah"]h$]h&]uh1j)hj30hhhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhM*ubj)}(h h]h }(hjE0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj30hhhjD0hM*ubj)}(hdrm_drv_uses_atomic_modeseth]j)}(hdrm_drv_uses_atomic_modeseth]hdrm_drv_uses_atomic_modeset}(hjW0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjS0ubah}(h]h ](jjeh"]h$]h&]jAjBuh1jhj30hhhjD0hM*ubj,)}(h(struct drm_device *dev)h]j2)}(hstruct drm_device *devh](j)}(hjh]hstruct}(hjs0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjo0ubj)}(h h]h }(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjo0ubh)}(hhh]j)}(h drm_deviceh]h drm_device}(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0ubah}(h]h ]h"]h$]h&] refdomainj reftypej reftargetj0modnameN classnameNjj)}j]j)}jjY0sbc.drm_drv_uses_atomic_modesetasbuh1hhjo0ubj)}(h h]h }(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjo0ubj)}(hjh]h*}(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjo0ubj)}(hdevh]hdev}(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjo0ubeh}(h]h ]h"]h$]h&]noemphjAjBuh1j1hjk0ubah}(h]h ]h"]h$]h&]jAjBuh1j+hj30hhhjD0hM*ubeh}(h]h ]h"]h$]h&]jAjBjuh1jjjhj/0hhhjD0hM*ubah}(h]j*0ah ](j j!eh"]h$]h&]j%j&)j'huh1jhjD0hM*hj,0hhubj))}(hhh]h)}(h.check if the driver implements atomic_commit()h]h.check if the driver implements atomic_commit()}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhM*hj0hhubah}(h]h ]h"]h$]h&]uh1j(hj,0hhhjD0hM*ubeh}(h]h ](j functioneh"]h$]h&]jIj jJj1jKj1jLjMjNuh1jhhhj_hNhNubjP)}(h**Parameters** ``struct drm_device *dev`` DRM device **Description** This check is useful if drivers do not have DRIVER_ATOMIC set but have atomic modesetting internally implemented.h](h)}(h**Parameters**h]jZ)}(hj1h]h Parameters}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj1ubah}(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)}(hj71h]hstruct drm_device *dev}(hj91hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj51ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhM,hj11ubj)}(hhh]h)}(h DRM deviceh]h DRM device}(hjP1hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjL1hM,hjM1ubah}(h]h ]h"]h$]h&]uh1jhj11ubeh}(h]h ]h"]h$]h&]uh1jhjL1hM,hj.1ubah}(h]h ]h"]h$]h&]uh1jhj1ubh)}(h**Description**h]jZ)}(hjr1h]h Description}(hjt1hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjp1ubah}(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.}(hj1hhhNhNubah}(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&]uh1jOhj_hhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jdrm_put_dev (C function) c.drm_put_devhNtauh1jhj_hhhNhNubj)}(hhh](j)}(h)void drm_put_dev (struct drm_device *dev)h]j)}(h(void drm_put_dev(struct drm_device *dev)h](j))}(hvoidh]hvoid}(hj1hhhNhNubah}(h]h ]j%)ah"]h$]h&]uh1j)hj1hhh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:90: ./drivers/gpu/drm/drm_drv.chMubj)}(h h]h }(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1hhhj1hMubj)}(h drm_put_devh]j)}(h drm_put_devh]h drm_put_dev}(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubah}(h]h ](jjeh"]h$]h&]jAjBuh1jhj1hhhj1hMubj,)}(h(struct drm_device *dev)h]j2)}(hstruct drm_device *devh](j)}(hjh]hstruct}(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubj)}(h h]h }(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubh)}(hhh]j)}(h drm_deviceh]h drm_device}(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2ubah}(h]h ]h"]h$]h&] refdomainj reftypej reftargetj2modnameN classnameNjj)}j]j)}jj1sb c.drm_put_devasbuh1hhj1ubj)}(h h]h }(hj22hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubj)}(hjh]h*}(hj@2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubj)}(hdevh]hdev}(hjM2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubeh}(h]h ]h"]h$]h&]noemphjAjBuh1j1hj1ubah}(h]h ]h"]h$]h&]jAjBuh1j+hj1hhhj1hMubeh}(h]h ]h"]h$]h&]jAjBjuh1jjjhj1hhhj1hMubah}(h]j1ah ](j j!eh"]h$]h&]j%j&)j'huh1jhj1hMhj1hhubj))}(hhh]h)}(h#Unregister and release a DRM deviceh]h#Unregister and release a DRM device}(hjw2hhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:90: ./drivers/gpu/drm/drm_drv.chMhjt2hhubah}(h]h ]h"]h$]h&]uh1j(hj1hhhj1hMubeh}(h]h ](j functioneh"]h$]h&]jIj jJj2jKj2jLjMjNuh1jhhhj_hNhNubjP)}(hX**Parameters** ``struct drm_device *dev`` DRM device **Description** Called at module unload time or when a PCI device is unplugged. Cleans up all DRM device, calling drm_lastclose(). **Note** Use of this function is deprecated. It will eventually go away completely. Please use drm_dev_unregister() and drm_dev_put() explicitly instead to make sure that the device isn't userspace accessible any more while teardown is in progress, ensuring that userspace can't access an inconsistent state.h](h)}(h**Parameters**h]jZ)}(hj2h]h Parameters}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj2ubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:90: ./drivers/gpu/drm/drm_drv.chMhj2ubj)}(hhh]j)}(h&``struct drm_device *dev`` DRM device h](j)}(h``struct drm_device *dev``h]j)}(hj2h]hstruct drm_device *dev}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2ubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:90: ./drivers/gpu/drm/drm_drv.chMhj2ubj)}(hhh]h)}(h DRM deviceh]h DRM device}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj2hMhj2ubah}(h]h ]h"]h$]h&]uh1jhj2ubeh}(h]h ]h"]h$]h&]uh1jhj2hMhj2ubah}(h]h ]h"]h$]h&]uh1jhj2ubh)}(h**Description**h]jZ)}(hj2h]h Description}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj2ubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:90: ./drivers/gpu/drm/drm_drv.chMhj2ubh)}(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.}(hj 3hhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:90: ./drivers/gpu/drm/drm_drv.chMhj2ubh)}(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.chMhj2ubh)}(h**Note**h]jZ)}(hj)3h]hNote}(hj+3hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj'3ubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:90: ./drivers/gpu/drm/drm_drv.chMhj2ubh)}(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.}(hj?3hhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:90: ./drivers/gpu/drm/drm_drv.chMhj2ubeh}(h]h ] kernelindentah"]h$]h&]uh1jOhj_hhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jdrm_dev_enter (C function)c.drm_dev_enterhNtauh1jhj_hhhNhNubj)}(hhh](j)}(h5bool drm_dev_enter (struct drm_device *dev, int *idx)h]j)}(h4bool drm_dev_enter(struct drm_device *dev, int *idx)h](j))}(hj)h]hbool}(hjn3hhhNhNubah}(h]h ]j%)ah"]h$]h&]uh1j)hjj3hhh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:90: ./drivers/gpu/drm/drm_drv.chMubj)}(h h]h }(hj|3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjj3hhhj{3hMubj)}(h drm_dev_enterh]j)}(h drm_dev_enterh]h drm_dev_enter}(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubah}(h]h ](jjeh"]h$]h&]jAjBuh1jhjj3hhhj{3hMubj,)}(h"(struct drm_device *dev, int *idx)h](j2)}(hstruct drm_device *devh](j)}(hjh]hstruct}(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubj)}(h h]h }(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubh)}(hhh]j)}(h drm_deviceh]h drm_device}(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubah}(h]h ]h"]h$]h&] refdomainj reftypej reftargetj3modnameN classnameNjj)}j]j)}jj3sbc.drm_dev_enterasbuh1hhj3ubj)}(h h]h }(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubj)}(hjh]h*}(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubj)}(hdevh]hdev}(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubeh}(h]h ]h"]h$]h&]noemphjAjBuh1j1hj3ubj2)}(hint *idxh](j))}(hinth]hint}(hj4hhhNhNubah}(h]h ]j%)ah"]h$]h&]uh1j)hj4ubj)}(h h]h }(hj*4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4ubj)}(hjh]h*}(hj84hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4ubj)}(hidxh]hidx}(hjE4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4ubeh}(h]h ]h"]h$]h&]noemphjAjBuh1j1hj3ubeh}(h]h ]h"]h$]h&]jAjBuh1j+hjj3hhhj{3hMubeh}(h]h ]h"]h$]h&]jAjBjuh1jjjhjf3hhhj{3hMubah}(h]ja3ah ](j j!eh"]h$]h&]j%j&)j'huh1jhj{3hMhjc3hhubj))}(hhh]h)}(hEnter device critical sectionh]hEnter device critical section}(hjo4hhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:90: ./drivers/gpu/drm/drm_drv.chMhjl4hhubah}(h]h ]h"]h$]h&]uh1j(hjc3hhhj{3hMubeh}(h]h ](j functioneh"]h$]h&]jIj jJj4jKj4jLjMjNuh1jhhhj_hNhNubjP)}(hX**Parameters** ``struct drm_device *dev`` DRM device ``int *idx`` Pointer to index that will be passed to the matching drm_dev_exit() **Description** This function marks and protects the beginning of a section that should not be entered after the device has been unplugged. The section end is marked with drm_dev_exit(). Calls to this function can be nested. **Return** True if it is OK to enter the section, false otherwise.h](h)}(h**Parameters**h]jZ)}(hj4h]h Parameters}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj4ubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:90: ./drivers/gpu/drm/drm_drv.chMhj4ubj)}(hhh](j)}(h&``struct drm_device *dev`` DRM device h](j)}(h``struct drm_device *dev``h]j)}(hj4h]hstruct drm_device *dev}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj4ubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:90: ./drivers/gpu/drm/drm_drv.chMhj4ubj)}(hhh]h)}(h DRM deviceh]h DRM device}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj4hMhj4ubah}(h]h ]h"]h$]h&]uh1jhj4ubeh}(h]h ]h"]h$]h&]uh1jhj4hMhj4ubj)}(hQ``int *idx`` Pointer to index that will be passed to the matching drm_dev_exit() h](j)}(h ``int *idx``h]j)}(hj4h]hint *idx}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj4ubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:90: ./drivers/gpu/drm/drm_drv.chMhj4ubj)}(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&]uh1hhj4hMhj4ubah}(h]h ]h"]h$]h&]uh1jhj4ubeh}(h]h ]h"]h$]h&]uh1jhj4hMhj4ubeh}(h]h ]h"]h$]h&]uh1jhj4ubh)}(h**Description**h]jZ)}(hj$5h]h Description}(hj&5hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj"5ubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:90: ./drivers/gpu/drm/drm_drv.chMhj4ubh)}(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.}(hj:5hhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:90: ./drivers/gpu/drm/drm_drv.chMhj4ubh)}(h **Return**h]jZ)}(hjK5h]hReturn}(hjM5hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjI5ubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:90: ./drivers/gpu/drm/drm_drv.chMhj4ubh)}(h7True if it is OK to enter the section, false otherwise.h]h7True if it is OK to enter the section, false otherwise.}(hja5hhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:90: ./drivers/gpu/drm/drm_drv.chMhj4ubeh}(h]h ] kernelindentah"]h$]h&]uh1jOhj_hhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jdrm_dev_exit (C function)c.drm_dev_exithNtauh1jhj_hhhNhNubj)}(hhh](j)}(hvoid drm_dev_exit (int idx)h]j)}(hvoid drm_dev_exit(int idx)h](j))}(hvoidh]hvoid}(hj5hhhNhNubah}(h]h ]j%)ah"]h$]h&]uh1j)hj5hhh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:90: ./drivers/gpu/drm/drm_drv.chMubj)}(h h]h }(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5hhhj5hMubj)}(h drm_dev_exith]j)}(h drm_dev_exith]h drm_dev_exit}(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5ubah}(h]h ](jjeh"]h$]h&]jAjBuh1jhj5hhhj5hMubj,)}(h (int idx)h]j2)}(hint idxh](j))}(hinth]hint}(hj5hhhNhNubah}(h]h ]j%)ah"]h$]h&]uh1j)hj5ubj)}(h h]h }(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5ubj)}(hidxh]hidx}(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5ubeh}(h]h ]h"]h$]h&]noemphjAjBuh1j1hj5ubah}(h]h ]h"]h$]h&]jAjBuh1j+hj5hhhj5hMubeh}(h]h ]h"]h$]h&]jAjBjuh1jjjhj5hhhj5hMubah}(h]j5ah ](j j!eh"]h$]h&]j%j&)j'huh1jhj5hMhj5hhubj))}(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(hj5hhhj5hMubeh}(h]h ](j functioneh"]h$]h&]jIj jJj+6jKj+6jLjMjNuh1jhhhj_hNhNubjP)}(h**Parameters** ``int idx`` index returned from drm_dev_enter() **Description** This function marks the end of a section that should not be entered after the device has been unplugged.h](h)}(h**Parameters**h]jZ)}(hj56h]h Parameters}(hj76hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj36ubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:90: ./drivers/gpu/drm/drm_drv.chMhj/6ubj)}(hhh]j)}(h0``int idx`` index returned from drm_dev_enter() h](j)}(h ``int idx``h]j)}(hjT6h]hint idx}(hjV6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjR6ubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:90: ./drivers/gpu/drm/drm_drv.chMhjN6ubj)}(hhh]h)}(h#index returned from drm_dev_enter()h]h#index returned from drm_dev_enter()}(hjm6hhhNhNubah}(h]h ]h"]h$]h&]uh1hhji6hMhjj6ubah}(h]h ]h"]h$]h&]uh1jhjN6ubeh}(h]h ]h"]h$]h&]uh1jhji6hMhjK6ubah}(h]h ]h"]h$]h&]uh1jhj/6ubh)}(h**Description**h]jZ)}(hj6h]h Description}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj6ubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:90: ./drivers/gpu/drm/drm_drv.chMhj/6ubh)}(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.}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:90: ./drivers/gpu/drm/drm_drv.chMhj/6ubeh}(h]h ] kernelindentah"]h$]h&]uh1jOhj_hhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jdrm_dev_unplug (C function)c.drm_dev_unplughNtauh1jhj_hhhNhNubj)}(hhh](j)}(h,void drm_dev_unplug (struct drm_device *dev)h]j)}(h+void drm_dev_unplug(struct drm_device *dev)h](j))}(hvoidh]hvoid}(hj6hhhNhNubah}(h]h ]j%)ah"]h$]h&]uh1j)hj6hhh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:90: ./drivers/gpu/drm/drm_drv.chMubj)}(h h]h }(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6hhhj6hMubj)}(hdrm_dev_unplugh]j)}(hdrm_dev_unplugh]hdrm_dev_unplug}(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6ubah}(h]h ](jjeh"]h$]h&]jAjBuh1jhj6hhhj6hMubj,)}(h(struct drm_device *dev)h]j2)}(hstruct drm_device *devh](j)}(hjh]hstruct}(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj 7ubj)}(h h]h }(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj 7ubh)}(hhh]j)}(h drm_deviceh]h drm_device}(hj/7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,7ubah}(h]h ]h"]h$]h&] refdomainj reftypej reftargetj17modnameN classnameNjj)}j]j)}jj6sbc.drm_dev_unplugasbuh1hhj 7ubj)}(h h]h }(hjO7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj 7ubj)}(hjh]h*}(hj]7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj 7ubj)}(hdevh]hdev}(hjj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj 7ubeh}(h]h ]h"]h$]h&]noemphjAjBuh1j1hj 7ubah}(h]h ]h"]h$]h&]jAjBuh1j+hj6hhhj6hMubeh}(h]h ]h"]h$]h&]jAjBjuh1jjjhj6hhhj6hMubah}(h]j6ah ](j j!eh"]h$]h&]j%j&)j'huh1jhj6hMhj6hhubj))}(hhh]h)}(hunplug a DRM deviceh]hunplug a DRM device}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:90: ./drivers/gpu/drm/drm_drv.chMhj7hhubah}(h]h ]h"]h$]h&]uh1j(hj6hhhj6hMubeh}(h]h ](j functioneh"]h$]h&]jIj jJj7jKj7jLjMjNuh1jhhhj_hNhNubjP)}(hX**Parameters** ``struct drm_device *dev`` DRM device **Description** This unplugs a hotpluggable DRM device, which makes it inaccessible to userspace operations. Entry-points can use drm_dev_enter() and drm_dev_exit() to protect device resources in a race free manner. This essentially unregisters the device like drm_dev_unregister(), but can be called while there are still open users of **dev**.h](h)}(h**Parameters**h]jZ)}(hj7h]h Parameters}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj7ubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:90: ./drivers/gpu/drm/drm_drv.chMhj7ubj)}(hhh]j)}(h&``struct drm_device *dev`` DRM device h](j)}(h``struct drm_device *dev``h]j)}(hj7h]hstruct drm_device *dev}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7ubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:90: ./drivers/gpu/drm/drm_drv.chMhj7ubj)}(hhh]h)}(h DRM deviceh]h DRM device}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj7hMhj7ubah}(h]h ]h"]h$]h&]uh1jhj7ubeh}(h]h ]h"]h$]h&]uh1jhj7hMhj7ubah}(h]h ]h"]h$]h&]uh1jhj7ubh)}(h**Description**h]jZ)}(hj8h]h Description}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj8ubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:90: ./drivers/gpu/drm/drm_drv.chMhj7ubh)}(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 }(hj&8hhhNhNubjZ)}(h**dev**h]hdev}(hj.8hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj&8ubh.}(hj&8hhhNhNubeh}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:90: ./drivers/gpu/drm/drm_drv.chMhj7ubeh}(h]h ] kernelindentah"]h$]h&]uh1jOhj_hhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j drm_dev_set_dma_dev (C function)c.drm_dev_set_dma_devhNtauh1jhj_hhhNhNubj)}(hhh](j)}(hIvoid drm_dev_set_dma_dev (struct drm_device *dev, struct device *dma_dev)h]j)}(hHvoid drm_dev_set_dma_dev(struct drm_device *dev, struct device *dma_dev)h](j))}(hvoidh]hvoid}(hjg8hhhNhNubah}(h]h ]j%)ah"]h$]h&]uh1j)hjc8hhh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:90: ./drivers/gpu/drm/drm_drv.chMubj)}(h h]h }(hjv8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjc8hhhju8hMubj)}(hdrm_dev_set_dma_devh]j)}(hdrm_dev_set_dma_devh]hdrm_dev_set_dma_dev}(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8ubah}(h]h ](jjeh"]h$]h&]jAjBuh1jhjc8hhhju8hMubj,)}(h0(struct drm_device *dev, struct device *dma_dev)h](j2)}(hstruct drm_device *devh](j)}(hjh]hstruct}(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8ubj)}(h h]h }(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8ubh)}(hhh]j)}(h drm_deviceh]h drm_device}(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8ubah}(h]h ]h"]h$]h&] refdomainj reftypej reftargetj8modnameN classnameNjj)}j]j)}jj8sbc.drm_dev_set_dma_devasbuh1hhj8ubj)}(h h]h }(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8ubj)}(hjh]h*}(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8ubj)}(hdevh]hdev}(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8ubeh}(h]h ]h"]h$]h&]noemphjAjBuh1j1hj8ubj2)}(hstruct device *dma_devh](j)}(hjh]hstruct}(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9ubj)}(h h]h }(hj#9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9ubh)}(hhh]j)}(hdeviceh]hdevice}(hj49hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj19ubah}(h]h ]h"]h$]h&] refdomainj reftypej reftargetj69modnameN classnameNjj)}j]j8c.drm_dev_set_dma_devasbuh1hhj9ubj)}(h h]h }(hjR9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9ubj)}(hjh]h*}(hj`9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9ubj)}(hdma_devh]hdma_dev}(hjm9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9ubeh}(h]h ]h"]h$]h&]noemphjAjBuh1j1hj8ubeh}(h]h ]h"]h$]h&]jAjBuh1j+hjc8hhhju8hMubeh}(h]h ]h"]h$]h&]jAjBjuh1jjjhj_8hhhju8hMubah}(h]jZ8ah ](j j!eh"]h$]h&]j%j&)j'huh1jhju8hMhj\8hhubj))}(hhh]h)}(h#set the DMA device for a DRM deviceh]h#set the DMA device for a DRM device}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:90: ./drivers/gpu/drm/drm_drv.chMhj9hhubah}(h]h ]h"]h$]h&]uh1j(hj\8hhhju8hMubeh}(h]h ](j functioneh"]h$]h&]jIj jJj9jKj9jLjMjNuh1jhhhj_hNhNubjP)}(hXc**Parameters** ``struct drm_device *dev`` DRM device ``struct device *dma_dev`` DMA device or NULL **Description** Sets the DMA device of the given DRM device. Only required if the DMA device is different from the DRM device's parent. After calling this function, the DRM device holds a reference on **dma_dev**. Pass NULL to clear the DMA device.h](h)}(h**Parameters**h]jZ)}(hj9h]h Parameters}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj9ubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:90: ./drivers/gpu/drm/drm_drv.chMhj9ubj)}(hhh](j)}(h&``struct drm_device *dev`` DRM device h](j)}(h``struct drm_device *dev``h]j)}(hj9h]hstruct drm_device *dev}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj9ubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:90: ./drivers/gpu/drm/drm_drv.chMhj9ubj)}(hhh]h)}(h DRM deviceh]h DRM device}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj9hMhj9ubah}(h]h ]h"]h$]h&]uh1jhj9ubeh}(h]h ]h"]h$]h&]uh1jhj9hMhj9ubj)}(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&:hMhj9ubeh}(h]h ]h"]h$]h&]uh1jhj9ubh)}(h**Description**h]jZ)}(hjL:h]h Description}(hjN:hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjJ:ubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:90: ./drivers/gpu/drm/drm_drv.chMhj9ubh)}(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 }(hjb:hhhNhNubjZ)}(h **dma_dev**h]hdma_dev}(hjj:hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjb:ubh$. Pass NULL to clear the DMA device.}(hjb:hhhNhNubeh}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:90: ./drivers/gpu/drm/drm_drv.chMhj9ubeh}(h]h ] kernelindentah"]h$]h&]uh1jOhj_hhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j!drm_dev_wedged_event (C function)c.drm_dev_wedged_eventhNtauh1jhj_hhhNhNubj)}(hhh](j)}(hiint drm_dev_wedged_event (struct drm_device *dev, unsigned long method, struct drm_wedge_task_info *info)h]j)}(hhint drm_dev_wedged_event(struct drm_device *dev, unsigned long method, struct drm_wedge_task_info *info)h](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 }(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:hhhj:hM!ubj)}(hdrm_dev_wedged_eventh]j)}(hdrm_dev_wedged_eventh]hdrm_dev_wedged_event}(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:ubah}(h]h ](jjeh"]h$]h&]jAjBuh1jhj:hhhj:hM!ubj,)}(hP(struct drm_device *dev, unsigned long method, struct drm_wedge_task_info *info)h](j2)}(hstruct drm_device *devh](j)}(hjh]hstruct}(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:ubj)}(h h]h }(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:ubh)}(hhh]j)}(h drm_deviceh]h drm_device}(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:ubah}(h]h ]h"]h$]h&] refdomainj reftypej reftargetj;modnameN classnameNjj)}j]j)}jj:sbc.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)}(hdevh]hdev}(hj9;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:ubeh}(h]h ]h"]h$]h&]noemphjAjBuh1j1hj:ubj2)}(hunsigned long methodh](j))}(hunsignedh]hunsigned}(hjR;hhhNhNubah}(h]h ]j%)ah"]h$]h&]uh1j)hjN;ubj)}(h h]h }(hj`;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjN;ubj))}(hlongh]hlong}(hjn;hhhNhNubah}(h]h ]j%)ah"]h$]h&]uh1j)hjN;ubj)}(h h]h }(hj|;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjN;ubj)}(hmethodh]hmethod}(hj;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjN;ubeh}(h]h ]h"]h$]h&]noemphjAjBuh1j1hj:ubj2)}(h struct drm_wedge_task_info *infoh](j)}(hjh]hstruct}(hj;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;ubj)}(h h]h }(hj;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;ubh)}(hhh]j)}(hdrm_wedge_task_infoh]hdrm_wedge_task_info}(hj;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;ubah}(h]h ]h"]h$]h&] refdomainj reftypej reftargetj;modnameN classnameNjj)}j]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&]noemphjAjBuh1j1hj:ubeh}(h]h ]h"]h$]h&]jAjBuh1j+hj:hhhj:hM!ubeh}(h]h ]h"]h$]h&]jAjBjuh1jjjhj:hhhj:hM!ubah}(h]j:ah ](j j!eh"]h$]h&]j%j&)j'huh1jhj:hM!hj: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(hj:hhhj:hM!ubeh}(h]h ](j functioneh"]h$]h&]jIj jJj<<jKj<<jLjMjNuh1jhhhj_hNhNubjP)}(hX**Parameters** ``struct drm_device *dev`` DRM device ``unsigned long method`` method(s) to be used for recovery ``struct drm_wedge_task_info *info`` optional information about the guilty task **Description** This generates a device wedged uevent for the DRM device specified by **dev**. Recovery **method**\(s) of choice will be sent in the uevent environment as ``WEDGED=[,..,]`` in order of less to more side-effects. If caller is unsure about recovery or **method** is unknown (0), ``WEDGED=unknown`` will be sent instead. Refer to "Device Wedging" chapter in Documentation/gpu/drm-uapi.rst for more details. **Return** 0 on success, negative error code otherwise.h](h)}(h**Parameters**h]jZ)}(hjF<h]h Parameters}(hjH<hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjD<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)}(hje<h]hstruct drm_device *dev}(hjg<hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjc<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&]uh1hhjz<hM"hj{<ubah}(h]h ]h"]h$]h&]uh1jhj_<ubeh}(h]h ]h"]h$]h&]uh1jhjz<hM"hj\<ubj)}(h;``unsigned long method`` method(s) to be used for recovery h](j)}(h``unsigned long method``h]j)}(hj<h]hunsigned long method}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj<ubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:90: ./drivers/gpu/drm/drm_drv.chM#hj<ubj)}(hhh]h)}(h!method(s) to be used for recoveryh]h!method(s) to be used for recovery}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj<hM#hj<ubah}(h]h ]h"]h$]h&]uh1jhj<ubeh}(h]h ]h"]h$]h&]uh1jhj<hM#hj\<ubj)}(hP``struct drm_wedge_task_info *info`` optional information about the guilty task h](j)}(h$``struct drm_wedge_task_info *info``h]j)}(hj<h]h struct drm_wedge_task_info *info}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj<ubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:90: ./drivers/gpu/drm/drm_drv.chM$hj<ubj)}(hhh]h)}(h*optional information about the guilty taskh]h*optional information about the guilty task}(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]jZ)}(hj=h]h Description}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj=ubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals: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(=hhhNhNubjZ)}(h**dev**h]hdev}(hj0=hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj(=ubh . Recovery }(hj(=hhhNhNubjZ)}(h **method**h]hmethod}(hjB=hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj(=ubh9(s) of choice will be sent in the uevent environment as }(hj(=hhhNhNubj)}(h#``WEDGED=[,..,]``h]hWEDGED=[,..,]}(hjT=hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj(=ubhN in order of less to more side-effects. If caller is unsure about recovery or }(hj(=hhhNhNubjZ)}(h **method**h]hmethod}(hjf=hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj(=ubh is unknown (0), }(hj(=hhhNhNubj)}(h``WEDGED=unknown``h]hWEDGED=unknown}(hjx=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]jZ)}(hj=h]hReturn}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj=ubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:90: ./drivers/gpu/drm/drm_drv.chM.hj@<ubh)}(h,0 on success, negative error code otherwise.h]h,0 on success, negative error code otherwise.}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:90: ./drivers/gpu/drm/drm_drv.chM/hj@<ubeh}(h]h ] kernelindentah"]h$]h&]uh1jOhj_hhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j__drm_dev_alloc (C function)c.__drm_dev_allochNtauh1jhj_hhhNhNubj)}(hhh](j)}(hkvoid * __drm_dev_alloc (struct device *parent, const struct drm_driver *driver, size_t size, size_t offset)h]j)}(hivoid *__drm_dev_alloc(struct device *parent, const struct drm_driver *driver, size_t size, size_t offset)h](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.chMIubj)}(h h]h }(hj=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=hhhj=hMIubj)}(hjh]h*}(hj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=hhhj=hMIubj)}(h__drm_dev_alloch]j)}(h__drm_dev_alloch]h__drm_dev_alloc}(hj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>ubah}(h]h ](jjeh"]h$]h&]jAjBuh1jhj=hhhj=hMIubj,)}(hT(struct device *parent, const struct drm_driver *driver, size_t size, size_t offset)h](j2)}(hstruct device *parenth](j)}(hjh]hstruct}(hj1>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj->ubj)}(h h]h }(hj>>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj->ubh)}(hhh]j)}(hdeviceh]hdevice}(hjO>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjL>ubah}(h]h ]h"]h$]h&] refdomainj reftypej reftargetjQ>modnameN classnameNjj)}j]j)}jj>sbc.__drm_dev_allocasbuh1hhj->ubj)}(h h]h }(hjo>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&]noemphjAjBuh1j1hj)>ubj2)}(hconst struct drm_driver *driverh](j)}(hj*h]hconst}(hj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>ubj)}(h h]h }(hj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>ubj)}(hjh]hstruct}(hj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>ubj)}(h h]h }(hj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>ubh)}(hhh]j)}(h drm_driverh]h drm_driver}(hj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>ubah}(h]h ]h"]h$]h&] refdomainj reftypej reftargetj>modnameN classnameNjj)}j]jk>c.__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)}(hdriverh]hdriver}(hj?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>ubeh}(h]h ]h"]h$]h&]noemphjAjBuh1j1hj)>ubj2)}(h size_t sizeh](h)}(hhh]j)}(hsize_th]hsize_t}(hj1?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.?ubah}(h]h ]h"]h$]h&] refdomainj reftypej reftargetj3?modnameN classnameNjj)}j]jk>c.__drm_dev_allocasbuh1hhj*?ubj)}(h h]h }(hjO?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*?ubj)}(hsizeh]hsize}(hj]?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*?ubeh}(h]h ]h"]h$]h&]noemphjAjBuh1j1hj)>ubj2)}(h size_t offseth](h)}(hhh]j)}(hsize_th]hsize_t}(hjy?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjv?ubah}(h]h ]h"]h$]h&] refdomainj reftypej reftargetj{?modnameN classnameNjj)}j]jk>c.__drm_dev_allocasbuh1hhjr?ubj)}(h h]h }(hj?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjr?ubj)}(hoffseth]hoffset}(hj?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjr?ubeh}(h]h ]h"]h$]h&]noemphjAjBuh1j1hj)>ubeh}(h]h ]h"]h$]h&]jAjBuh1j+hj=hhhj=hMIubeh}(h]h ]h"]h$]h&]jAjBjuh1jjjhj=hhhj=hMIubah}(h]j=ah ](j j!eh"]h$]h&]j%j&)j'huh1jhj=hMIhj=hhubj))}(hhh]h)}(h-Allocation of a :c:type:`drm_device` instanceh](hAllocation of a }(hj?hhhNhNubh)}(h:c:type:`drm_device`h]j)}(hj?h]h drm_device}(hj?hhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhj?ubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjj)}j]jk>c.__drm_dev_allocasbj drm_deviceuh1hhj1hMhj?ubh instance}(hj?hhhNhNubeh}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:90: ./drivers/gpu/drm/drm_drv.chMIhj?hhubah}(h]h ]h"]h$]h&]uh1j(hj=hhhj=hMIubeh}(h]h ](j functioneh"]h$]h&]jIj jJj@jKj@jLjMjNuh1jhhhj_hNhNubjP)}(hX**Parameters** ``struct device *parent`` Parent device object ``const struct drm_driver *driver`` DRM driver ``size_t size`` the size of the struct which contains struct drm_device ``size_t offset`` the offset of the :c:type:`drm_device` within the container. **Description** This should *NOT* be by any drivers, but is a dedicated interface for the corresponding Rust abstraction. This is the same as devm_drm_dev_alloc(), but without the corresponding resource management through the parent device, but not the same as drm_dev_alloc(), since the latter is the deprecated version, which does not support subclassing. **Return** A pointer to new DRM device, or an ERR_PTR on failure.h](h)}(h**Parameters**h]jZ)}(hj@h]h Parameters}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj@ubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:90: ./drivers/gpu/drm/drm_drv.chMMhj@ubj)}(hhh](j)}(h/``struct device *parent`` Parent device object h](j)}(h``struct device *parent``h]j)}(hj8@h]hstruct device *parent}(hj:@hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6@ubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:90: ./drivers/gpu/drm/drm_drv.chMJhj2@ubj)}(hhh]h)}(hParent device objecth]hParent device object}(hjQ@hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjM@hMJhjN@ubah}(h]h ]h"]h$]h&]uh1jhj2@ubeh}(h]h ]h"]h$]h&]uh1jhjM@hMJhj/@ubj)}(h/``const struct drm_driver *driver`` DRM driver h](j)}(h#``const struct drm_driver *driver``h]j)}(hjq@h]hconst struct drm_driver *driver}(hjs@hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjo@ubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:90: ./drivers/gpu/drm/drm_drv.chMKhjk@ubj)}(hhh]h)}(h DRM driverh]h DRM driver}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj@hMKhj@ubah}(h]h ]h"]h$]h&]uh1jhjk@ubeh}(h]h ]h"]h$]h&]uh1jhj@hMKhj/@ubj)}(hH``size_t size`` the size of the struct which contains struct drm_device h](j)}(h``size_t size``h]j)}(hj@h]h size_t size}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj@ubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:90: ./drivers/gpu/drm/drm_drv.chMLhj@ubj)}(hhh]h)}(h7the size of the struct which contains struct drm_deviceh]h7the size of the struct which contains struct drm_device}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj@hMLhj@ubah}(h]h ]h"]h$]h&]uh1jhj@ubeh}(h]h ]h"]h$]h&]uh1jhj@hMLhj/@ubj)}(hO``size_t offset`` the offset of the :c:type:`drm_device` within the container. Rh](j)}(h``size_t offset``h]j)}(hj@h]h size_t offset}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj@ubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:90: ./drivers/gpu/drm/drm_drv.chMMhj@ubj)}(hhh]h)}(h` method after registering the device nodes, creating race conditions. Usage of the :c:type:`drm_driver.load ` methods is therefore deprecated, drivers must perform all initialization before calling drm_dev_register(). **Return** 0 on success, negative error code on failure.h](h)}(h**Parameters**h]jZ)}(hj Lh]h Parameters}(hj LhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj Lubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:90: ./drivers/gpu/drm/drm_drv.chMhjLubj)}(hhh](j)}(h.``struct drm_device *dev`` Device to register h](j)}(h``struct drm_device *dev``h]j)}(hj*Lh]hstruct drm_device *dev}(hj,LhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj(Lubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:90: ./drivers/gpu/drm/drm_drv.chM hj$Lubj)}(hhh]h)}(hDevice to registerh]hDevice to register}(hjCLhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj?LhM hj@Lubah}(h]h ]h"]h$]h&]uh1jhj$Lubeh}(h]h ]h"]h$]h&]uh1jhj?LhM hj!Lubj)}(hF``unsigned long flags`` Flags passed to the driver's .load() function h](j)}(h``unsigned long flags``h]j)}(hjcLh]hunsigned long flags}(hjeLhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjaLubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:90: ./drivers/gpu/drm/drm_drv.chMhj]Lubj)}(hhh]h)}(h-Flags passed to the driver's .load() functionh]h/Flags passed to the driver’s .load() function}(hj|LhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjxLhMhjyLubah}(h]h ]h"]h$]h&]uh1jhj]Lubeh}(h]h ]h"]h$]h&]uh1jhjxLhMhj!Lubeh}(h]h ]h"]h$]h&]uh1jhjLubh)}(h**Description**h]jZ)}(hjLh]h Description}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjLubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals: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 }(hjLhhhNhNubjZ)}(h**dev**h]hdev}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjLubhT with the system, advertise device to user-space and start normal device operation. }(hjLhhhNhNubjZ)}(h**dev**h]hdev}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjLubh3 must be initialized via drm_dev_init() previously.}(hjLhhhNhNubeh}(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!}(hjLhhhNhNubah}(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]jZ)}(hjLh]hNOTE}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjLubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:90: ./drivers/gpu/drm/drm_drv.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 refexplicitrefwarnjjj 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)}(hjMhhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhj:Mubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjjj drm_driveruh1hhj5MhMhjMubhl methods is therefore deprecated, drivers must perform all initialization before calling drm_dev_register().}(hjMhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj5MhMhjLubh)}(h **Return**h]jZ)}(hjeMh]hReturn}(hjgMhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjcMubah}(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.}(hj{MhhhNhNubah}(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&]uh1jOhj_hhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jdrm_dev_unregister (C function)c.drm_dev_unregisterhNtauh1jhj_hhhNhNubj)}(hhh](j)}(h0void drm_dev_unregister (struct drm_device *dev)h]j)}(h/void drm_dev_unregister(struct drm_device *dev)h](j))}(hvoidh]hvoid}(hjMhhhNhNubah}(h]h ]j%)ah"]h$]h&]uh1j)hjMhhh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:90: ./drivers/gpu/drm/drm_drv.chMhubj)}(h h]h }(hjMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMhhhjMhMhubj)}(hdrm_dev_unregisterh]j)}(hdrm_dev_unregisterh]hdrm_dev_unregister}(hjMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMubah}(h]h ](jjeh"]h$]h&]jAjBuh1jhjMhhhjMhMhubj,)}(h(struct drm_device *dev)h]j2)}(hstruct drm_device *devh](j)}(hjh]hstruct}(hjMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMubj)}(h h]h }(hjMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMubh)}(hhh]j)}(h drm_deviceh]h drm_device}(hjNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNubah}(h]h ]h"]h$]h&] refdomainj reftypej reftargetjNmodnameN classnameNjj)}j]j)}jjMsbc.drm_dev_unregisterasbuh1hhjMubj)}(h h]h }(hj%NhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMubj)}(hjh]h*}(hj3NhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMubj)}(hdevh]hdev}(hj@NhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMubeh}(h]h ]h"]h$]h&]noemphjAjBuh1j1hjMubah}(h]h ]h"]h$]h&]jAjBuh1j+hjMhhhjMhMhubeh}(h]h ]h"]h$]h&]jAjBjuh1jjjhjMhhhjMhMhubah}(h]jMah ](j j!eh"]h$]h&]j%j&)j'huh1jhjMhMhhjMhhubj))}(hhh]h)}(hUnregister DRM deviceh]hUnregister DRM device}(hjjNhhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:90: ./drivers/gpu/drm/drm_drv.chMhhjgNhhubah}(h]h ]h"]h$]h&]uh1j(hjMhhhjMhMhubeh}(h]h ](j functioneh"]h$]h&]jIj jJjNjKjNjLjMjNuh1jhhhj_hNhNubjP)}(hX**Parameters** ``struct drm_device *dev`` Device to unregister **Description** Unregister the DRM device from the system. This does the reverse of drm_dev_register() but does not deallocate the device. The caller must call drm_dev_put() to drop their final reference, unless it is managed with devres (as devices allocated with devm_drm_dev_alloc() are), in which case there is already an unwind action registered. A special form of unregistering for hotpluggable devices is drm_dev_unplug(), which can be called while there are still open users of **dev**. This should be called first in the device teardown code to make sure userspace can't access the device instance any more.h](h)}(h**Parameters**h]jZ)}(hjNh]h Parameters}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:90: ./drivers/gpu/drm/drm_drv.chMlhjNubj)}(hhh]j)}(h0``struct drm_device *dev`` Device to unregister h](j)}(h``struct drm_device *dev``h]j)}(hjNh]hstruct drm_device *dev}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjNubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:90: ./drivers/gpu/drm/drm_drv.chMihjNubj)}(hhh]h)}(hDevice to unregisterh]hDevice to unregister}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjNhMihjNubah}(h]h ]h"]h$]h&]uh1jhjNubeh}(h]h ]h"]h$]h&]uh1jhjNhMihjNubah}(h]h ]h"]h$]h&]uh1jhjNubh)}(h**Description**h]jZ)}(hjNh]h Description}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:90: ./drivers/gpu/drm/drm_drv.chMkhjNubh)}(hXOUnregister the DRM device from the system. This does the reverse of drm_dev_register() but does not deallocate the device. The caller must call drm_dev_put() to drop their final reference, unless it is managed with devres (as devices allocated with devm_drm_dev_alloc() are), in which case there is already an unwind action registered.h]hXOUnregister the DRM device from the system. This does the reverse of drm_dev_register() but does not deallocate the device. The caller must call drm_dev_put() to drop their final reference, unless it is managed with devres (as devices allocated with devm_drm_dev_alloc() are), in which case there is already an unwind action registered.}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:90: ./drivers/gpu/drm/drm_drv.chMjhjNubh)}(hA special form of unregistering for hotpluggable devices is drm_dev_unplug(), which can be called while there are still open users of **dev**.h](hA special form of unregistering for hotpluggable devices is drm_dev_unplug(), which can be called while there are still open users of }(hj OhhhNhNubjZ)}(h**dev**h]hdev}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj Oubh.}(hj OhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:90: ./drivers/gpu/drm/drm_drv.chMphjNubh)}(hyThis should be called first in the device teardown code to make sure userspace can't access the device instance any more.h]h{This should be called first in the device teardown code to make sure userspace can’t access the device instance any more.}(hj,OhhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:90: ./drivers/gpu/drm/drm_drv.chMshjNubeh}(h]h ] kernelindentah"]h$]h&]uh1jOhj_hhhNhNubeh}(h]#device-instance-and-driver-handlingah ]h"]#device instance and driver handlingah$]h&]uh1hhhhhhhhKOubh)}(hhh](h)}(h Driver Loadh]h Driver Load}(hjMOhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjJOhhhhhK^ubh)}(hhh](h)}(hComponent Helper Usageh]hComponent Helper Usage}(hj^OhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj[OhhhhhKaubh)}(hXDRM drivers that drive hardware where a logical device consists of a pile of independent hardware blocks are recommended to use the :ref:`component helper library`. 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 }(hjlOhhhNhNubh)}(h*:ref:`component helper library`h]j)}(hjvOh]hcomponent helper library}(hjxOhhhNhNubah}(h]h ](j stdstd-refeh"]h$]h&]uh1jhjtOubah}(h]h ]h"]h$]h&]refdocj refdomainjOreftyperef refexplicitrefwarnj componentuh1hh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:99: ./drivers/gpu/drm/drm_drv.chMhjlOubhS. For consistency and better options for code reuse the following guidelines apply:}(hjlOhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjOhMhj[Ohhubj&)}(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 }(hjOhhhNhNubh)}(hA:c:type:`component_master_ops.master_bind `h]j)}(hjOh]h component_master_ops.master_bind}(hjOhhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjOubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjjjcomponent_master_opsuh1hh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:99: ./drivers/gpu/drm/drm_drv.chMhjOubh callback, starting with devm_drm_dev_alloc(), then binding all components with component_bind_all() and finishing with drm_dev_register().}(hjOhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjOhMhjOubah}(h]h ]h"]h$]h&]uh1jOhjOubjO)}(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 }(hjOhhhNhNubh)}(h(:c:type:`struct drm_device `h]j)}(hjOh]hstruct drm_device}(hjOhhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjOubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjjj drm_deviceuh1hh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:99: ./drivers/gpu/drm/drm_drv.chMhjOubhD of the device instance, not some driver specific private structure.}(hjOhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjPhMhjOubah}(h]h ]h"]h$]h&]uh1jOhjOubjO)}(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 }(hj&PhhhNhNubh)}(h:c:type:`drm_bridge`h]j)}(hj0Ph]h drm_bridge}(hj2PhhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhj.Pubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjjj drm_bridgeuh1hh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:99: ./drivers/gpu/drm/drm_drv.chMhj&Pubh or }(hj&PhhhNhNubh)}(h:c:type:`drm_panel`h]j)}(hjTPh]h drm_panel}(hjVPhhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjRPubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjjj drm_paneluh1hhjMPhMhj&Pubh, 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.}(hj&PhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjMPhMhj"Pubah}(h]h ]h"]h$]h&]uh1jOhjOubeh}(h]h ]h"]h$]h&]bullet-uh1jOhjOhMhjOubah}(h]h ]h"]h$]h&]uh1j&hjOhMhj[Ohhubeh}(h]component-helper-usageah ]h"]component helper usageah$]h&]uh1hhjJOhhhhhKaubh)}(hhh](h)}(hMemory Manager Initializationh]hMemory Manager Initialization}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjPhhhhhKgubh)}(hXEvery DRM driver requires a memory manager which must be initialized at load time. DRM currently contains two memory managers, the Translation Table Manager (TTM) and the Graphics Execution Manager (GEM). This document describes the use of the GEM memory manager only. See ? for details.h]hXEvery DRM driver requires a memory manager which must be initialized at load time. DRM currently contains two memory managers, the Translation Table Manager (TTM) and the Graphics Execution Manager (GEM). This document describes the use of the GEM memory manager only. See ? for details.}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKihjPhhubeh}(h]memory-manager-initializationah ]h"]memory manager initializationah$]h&]uh1hhjJOhhhhhKgubh)}(hhh](h)}(h"Miscellaneous Device Configurationh]h"Miscellaneous Device Configuration}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjPhhhhhKpubh)}(hXAnother task that may be necessary for PCI devices during configuration is mapping the video BIOS. On many devices, the VBIOS describes device configuration, LCD panel timings (if any), and contains flags indicating device state. Mapping the BIOS can be done using the pci_map_rom() call, a convenience function that takes care of mapping the actual ROM, whether it has been shadowed into memory (typically at address 0xc0000) or exists on the PCI device in the ROM BAR. Note that after the ROM has been mapped and any necessary information has been extracted, it should be unmapped; on many devices, the ROM address decoder is shared with other BARs, so leaving it mapped could cause undesired behaviour like hangs or memory corruption.h]hXAnother task that may be necessary for PCI devices during configuration is mapping the video BIOS. On many devices, the VBIOS describes device configuration, LCD panel timings (if any), and contains flags indicating device state. Mapping the BIOS can be done using the pci_map_rom() call, a convenience function that takes care of mapping the actual ROM, whether it has been shadowed into memory (typically at address 0xc0000) or exists on the PCI device in the ROM BAR. Note that after the ROM has been mapped and any necessary information has been extracted, it should be unmapped; on many devices, the ROM address decoder is shared with other BARs, so leaving it mapped could cause undesired behaviour like hangs or memory corruption.}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKrhjPhhubeh}(h]"miscellaneous-device-configurationah ]h"]"miscellaneous device configurationah$]h&]uh1hhjJOhhhhhKpubeh}(h] driver-loadah ]h"] driver loadah$]h&]uh1hhhhhhhhK^ubh)}(hhh](h)}(hManaged Resourcesh]hManaged Resources}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjPhhhhhKubh)}(hInspired by struct :c:type:`device` managed resources, but tied to the lifetime of struct :c:type:`drm_device`, which can outlive the underlying physical device, usually when userspace has some open files and other handles to resources still open.h](hInspired by struct }(hjPhhhNhNubh)}(h:c:type:`device`h]j)}(hjQh]hdevice}(hj QhhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjQubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjjjdeviceuh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:129: ./drivers/gpu/drm/drm_managed.chKhjPubh7 managed resources, but tied to the lifetime of struct }(hjPhhhNhNubh)}(h:c:type:`drm_device`h]j)}(hj,Qh]h drm_device}(hj.QhhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhj*Qubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjjj drm_deviceuh1hhj%QhKhjPubh, which can outlive the underlying physical device, usually when userspace has some open files and other handles to resources still open.}(hjPhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj%QhKhjPhhubh)}(hXTRelease actions can be added with drmm_add_action(), memory allocations can be done directly with drmm_kmalloc() and the related functions. Everything will be released on the final drm_dev_put() in reverse order of how the release actions have been added and memory has been allocated since driver loading started with devm_drm_dev_alloc().h]hXTRelease actions can be added with drmm_add_action(), memory allocations can be done directly with drmm_kmalloc() and the related functions. Everything will be released on the final drm_dev_put() in reverse order of how the release actions have been added and memory has been allocated since driver loading started with devm_drm_dev_alloc().}(hjSQhhhNhNubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:129: ./drivers/gpu/drm/drm_managed.chKhjPhhubh)}(hX3Note that release actions and managed memory can also be added and removed during the lifetime of the driver, all the functions are fully concurrent safe. But it is recommended to use managed resources only for resources that change rarely, if ever, during the lifetime of the :c:type:`drm_device` instance.h](hXNote that release actions and managed memory can also be added and removed during the lifetime of the driver, all the functions are fully concurrent safe. But it is recommended to use managed resources only for resources that change rarely, if ever, during the lifetime of the }(hjbQhhhNhNubh)}(h:c:type:`drm_device`h]j)}(hjlQh]h drm_device}(hjnQhhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjjQubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjjj drm_deviceuh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:129: ./drivers/gpu/drm/drm_managed.chK hjbQubh instance.}(hjbQhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjQhK hjPhhubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j drmm_release_action (C function)c.drmm_release_actionhNtauh1jhjPhhhNhNubj)}(hhh](j)}(hVvoid drmm_release_action (struct drm_device *dev, drmres_release_t action, void *data)h]j)}(hUvoid drmm_release_action(struct drm_device *dev, drmres_release_t action, void *data)h](j))}(hvoidh]hvoid}(hjQhhhNhNubah}(h]h ]j%)ah"]h$]h&]uh1j)hjQhhh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:132: ./drivers/gpu/drm/drm_managed.chKubj)}(h h]h }(hjQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQhhhjQhKubj)}(hdrmm_release_actionh]j)}(hdrmm_release_actionh]hdrmm_release_action}(hjQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQubah}(h]h ](jjeh"]h$]h&]jAjBuh1jhjQhhhjQhKubj,)}(h=(struct drm_device *dev, drmres_release_t action, void *data)h](j2)}(hstruct drm_device *devh](j)}(hjh]hstruct}(hjQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQubj)}(h h]h }(hjQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQubh)}(hhh]j)}(h drm_deviceh]h drm_device}(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRubah}(h]h ]h"]h$]h&] refdomainj reftypej reftargetj RmodnameN classnameNjj)}j]j)}jjQsbc.drmm_release_actionasbuh1hhjQubj)}(h h]h }(hj(RhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQubj)}(hjh]h*}(hj6RhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQubj)}(hdevh]hdev}(hjCRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQubeh}(h]h ]h"]h$]h&]noemphjAjBuh1j1hjQubj2)}(hdrmres_release_t actionh](h)}(hhh]j)}(hdrmres_release_th]hdrmres_release_t}(hj_RhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\Rubah}(h]h ]h"]h$]h&] refdomainj reftypej reftargetjaRmodnameN classnameNjj)}j]j$Rc.drmm_release_actionasbuh1hhjXRubj)}(h h]h }(hj}RhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjXRubj)}(hactionh]haction}(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjXRubeh}(h]h ]h"]h$]h&]noemphjAjBuh1j1hjQubj2)}(h void *datah](j))}(hvoidh]hvoid}(hjRhhhNhNubah}(h]h ]j%)ah"]h$]h&]uh1j)hjRubj)}(h h]h }(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRubj)}(hjh]h*}(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRubj)}(hdatah]hdata}(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRubeh}(h]h ]h"]h$]h&]noemphjAjBuh1j1hjQubeh}(h]h ]h"]h$]h&]jAjBuh1j+hjQhhhjQhKubeh}(h]h ]h"]h$]h&]jAjBjuh1jjjhjQhhhjQhKubah}(h]jQah ](j j!eh"]h$]h&]j%j&)j'huh1jhjQhKhjQhhubj))}(hhh]h)}(h4release a managed action from a :c:type:`drm_device`h](h release a managed action from a }(hjRhhhNhNubh)}(h:c:type:`drm_device`h]j)}(hjSh]h drm_device}(hjShhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjRubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjj)}j]j$Rc.drmm_release_actionasbj drm_deviceuh1hhjQhKhjRubeh}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:132: ./drivers/gpu/drm/drm_managed.chKhjRhhubah}(h]h ]h"]h$]h&]uh1j(hjQhhhjQhKubeh}(h]h ](j functioneh"]h$]h&]jIj jJj3SjKj3SjLjMjNuh1jhhhjPhNhNubjP)}(hX**Parameters** ``struct drm_device *dev`` DRM device ``drmres_release_t action`` function which would be called when **dev** is released ``void *data`` opaque pointer, passed to **action** **Description** This function calls the **action** previously added by drmm_add_action() immediately. The **action** is removed from the list of cleanup actions for **dev**, which means that it won't be called in the final drm_dev_put().h](h)}(h**Parameters**h]jZ)}(hj=Sh]h Parameters}(hj?ShhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj;Subah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:132: ./drivers/gpu/drm/drm_managed.chKhj7Subj)}(hhh](j)}(h&``struct drm_device *dev`` DRM device h](j)}(h``struct drm_device *dev``h]j)}(hj\Sh]hstruct drm_device *dev}(hj^ShhhNhNubah}(h]h ]h"]h$]h&]uh1jhjZSubah}(h]h ]h"]h$]h&]uh1jh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:132: ./drivers/gpu/drm/drm_managed.chKhjVSubj)}(hhh]h)}(h DRM deviceh]h DRM device}(hjuShhhNhNubah}(h]h ]h"]h$]h&]uh1hhjqShKhjrSubah}(h]h ]h"]h$]h&]uh1jhjVSubeh}(h]h ]h"]h$]h&]uh1jhjqShKhjSSubj)}(hT``drmres_release_t action`` function which would be called when **dev** is released h](j)}(h``drmres_release_t action``h]j)}(hjSh]hdrmres_release_t action}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1jhjSubah}(h]h ]h"]h$]h&]uh1jh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:132: ./drivers/gpu/drm/drm_managed.chKhjSubj)}(hhh]h)}(h7function which would be called when **dev** is releasedh](h$function which would be called when }(hjShhhNhNubjZ)}(h**dev**h]hdev}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjSubh is released}(hjShhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjShKhjSubah}(h]h ]h"]h$]h&]uh1jhjSubeh}(h]h ]h"]h$]h&]uh1jhjShKhjSSubj)}(h4``void *data`` opaque pointer, passed to **action** h](j)}(h``void *data``h]j)}(hjSh]h void *data}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1jhjSubah}(h]h ]h"]h$]h&]uh1jh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:132: ./drivers/gpu/drm/drm_managed.chKhjSubj)}(hhh]h)}(h$opaque pointer, passed to **action**h](hopaque pointer, passed to }(hjShhhNhNubjZ)}(h **action**h]haction}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjSubeh}(h]h ]h"]h$]h&]uh1hhjShKhjSubah}(h]h ]h"]h$]h&]uh1jhjSubeh}(h]h ]h"]h$]h&]uh1jhjShKhjSSubeh}(h]h ]h"]h$]h&]uh1jhj7Subh)}(h**Description**h]jZ)}(hj)Th]h Description}(hj+ThhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj'Tubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:132: ./drivers/gpu/drm/drm_managed.chKhj7Subh)}(hThis function calls the **action** previously added by drmm_add_action() immediately. The **action** is removed from the list of cleanup actions for **dev**, which means that it won't be called in the final drm_dev_put().h](hThis function calls the }(hj?ThhhNhNubjZ)}(h **action**h]haction}(hjGThhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj?Tubh8 previously added by drmm_add_action() immediately. The }(hj?ThhhNhNubjZ)}(h **action**h]haction}(hjYThhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj?Tubh1 is removed from the list of cleanup actions for }(hj?ThhhNhNubjZ)}(h**dev**h]hdev}(hjkThhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj?TubhC, which means that it won’t be called in the final drm_dev_put().}(hj?ThhhNhNubeh}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:132: ./drivers/gpu/drm/drm_managed.chKhj7Subeh}(h]h ] kernelindentah"]h$]h&]uh1jOhjPhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jdrmm_kmalloc (C function)c.drmm_kmallochNtauh1jhjPhhhNhNubj)}(hhh](j)}(hDvoid * drmm_kmalloc (struct drm_device *dev, size_t size, gfp_t gfp)h]j)}(hBvoid *drmm_kmalloc(struct drm_device *dev, size_t size, gfp_t gfp)h](j))}(hvoidh]hvoid}(hjThhhNhNubah}(h]h ]j%)ah"]h$]h&]uh1j)hjThhh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:132: ./drivers/gpu/drm/drm_managed.chKubj)}(h h]h }(hjThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjThhhjThKubj)}(hjh]h*}(hjThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjThhhjThKubj)}(h drmm_kmalloch]j)}(h drmm_kmalloch]h drmm_kmalloc}(hjThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjTubah}(h]h ](jjeh"]h$]h&]jAjBuh1jhjThhhjThKubj,)}(h0(struct drm_device *dev, size_t size, gfp_t gfp)h](j2)}(hstruct drm_device *devh](j)}(hjh]hstruct}(hjThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjTubj)}(h h]h }(hjThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjTubh)}(hhh]j)}(h drm_deviceh]h drm_device}(hj UhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj Uubah}(h]h ]h"]h$]h&] refdomainj reftypej reftargetjUmodnameN classnameNjj)}j]j)}jjTsbc.drmm_kmallocasbuh1hhjTubj)}(h h]h }(hj,UhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjTubj)}(hjh]h*}(hj:UhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjTubj)}(hdevh]hdev}(hjGUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjTubeh}(h]h ]h"]h$]h&]noemphjAjBuh1j1hjTubj2)}(h size_t sizeh](h)}(hhh]j)}(hsize_th]hsize_t}(hjcUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`Uubah}(h]h ]h"]h$]h&] refdomainj reftypej reftargetjeUmodnameN classnameNjj)}j]j(Uc.drmm_kmallocasbuh1hhj\Uubj)}(h h]h }(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\Uubj)}(hsizeh]hsize}(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\Uubeh}(h]h ]h"]h$]h&]noemphjAjBuh1j1hjTubj2)}(h gfp_t gfph](h)}(hhh]j)}(hgfp_th]hgfp_t}(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUubah}(h]h ]h"]h$]h&] refdomainj reftypej reftargetjUmodnameN classnameNjj)}j]j(Uc.drmm_kmallocasbuh1hhjUubj)}(h h]h }(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUubj)}(hgfph]hgfp}(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUubeh}(h]h ]h"]h$]h&]noemphjAjBuh1j1hjTubeh}(h]h ]h"]h$]h&]jAjBuh1j+hjThhhjThKubeh}(h]h ]h"]h$]h&]jAjBjuh1jjjhjThhhjThKubah}(h]jTah ](j j!eh"]h$]h&]j%j&)j'huh1jhjThKhjThhubj))}(hhh]h)}(h&:c:type:`drm_device` managed kmalloc()h](h)}(h:c:type:`drm_device`h]j)}(hjVh]h drm_device}(hj VhhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjVubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjj)}j]j(Uc.drmm_kmallocasbj drm_deviceuh1hhjQhKhjVubh managed kmalloc()}(hjVhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:132: ./drivers/gpu/drm/drm_managed.chKhjUhhubah}(h]h ]h"]h$]h&]uh1j(hjThhhjThKubeh}(h]h ](j functioneh"]h$]h&]jIj jJj=VjKj=VjLjMjNuh1jhhhjPhNhNubjP)}(hXv**Parameters** ``struct drm_device *dev`` DRM device ``size_t size`` size of the memory allocation ``gfp_t gfp`` GFP allocation flags **Description** This is a :c:type:`drm_device` managed version of kmalloc(). The allocated memory is automatically freed on the final drm_dev_put(). Memory can also be freed before the final drm_dev_put() by calling drmm_kfree().h](h)}(h**Parameters**h]jZ)}(hjGVh]h Parameters}(hjIVhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjEVubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:132: ./drivers/gpu/drm/drm_managed.chKhjAVubj)}(hhh](j)}(h&``struct drm_device *dev`` DRM device h](j)}(h``struct drm_device *dev``h]j)}(hjfVh]hstruct drm_device *dev}(hjhVhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjdVubah}(h]h ]h"]h$]h&]uh1jh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:132: ./drivers/gpu/drm/drm_managed.chKhj`Vubj)}(hhh]h)}(h DRM deviceh]h DRM device}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj{VhKhj|Vubah}(h]h ]h"]h$]h&]uh1jhj`Vubeh}(h]h ]h"]h$]h&]uh1jhj{VhKhj]Vubj)}(h.``size_t size`` size of the memory allocation h](j)}(h``size_t size``h]j)}(hjVh]h size_t size}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjVubah}(h]h ]h"]h$]h&]uh1jh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:132: ./drivers/gpu/drm/drm_managed.chKhjVubj)}(hhh]h)}(hsize of the memory allocationh]hsize of the memory allocation}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjVhKhjVubah}(h]h ]h"]h$]h&]uh1jhjVubeh}(h]h ]h"]h$]h&]uh1jhjVhKhj]Vubj)}(h#``gfp_t gfp`` GFP allocation flags h](j)}(h ``gfp_t gfp``h]j)}(hjVh]h gfp_t gfp}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjVubah}(h]h ]h"]h$]h&]uh1jh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:132: ./drivers/gpu/drm/drm_managed.chKhjVubj)}(hhh]h)}(hGFP allocation flagsh]hGFP allocation flags}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjVhKhjVubah}(h]h ]h"]h$]h&]uh1jhjVubeh}(h]h ]h"]h$]h&]uh1jhjVhKhj]Vubeh}(h]h ]h"]h$]h&]uh1jhjAVubh)}(h**Description**h]jZ)}(hjWh]h Description}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjWubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:132: ./drivers/gpu/drm/drm_managed.chKhjAVubh)}(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 }(hj)WhhhNhNubh)}(h:c:type:`drm_device`h]j)}(hj3Wh]h drm_device}(hj5WhhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhj1Wubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjjj drm_deviceuh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:132: ./drivers/gpu/drm/drm_managed.chKhj)Wubh 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().}(hj)WhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjPWhKhjAVubeh}(h]h ] kernelindentah"]h$]h&]uh1jOhjPhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jdrmm_kstrdup (C function)c.drmm_kstrduphNtauh1jhjPhhhNhNubj)}(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}(hj{WhhhNhNubah}(h]h ]j%)ah"]h$]h&]uh1j)hjwWhhh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:132: ./drivers/gpu/drm/drm_managed.chKubj)}(h h]h }(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjwWhhhjWhKubj)}(hjh]h*}(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjwWhhhjWhKubj)}(h drmm_kstrduph]j)}(h drmm_kstrduph]h drmm_kstrdup}(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWubah}(h]h ](jjeh"]h$]h&]jAjBuh1jhjwWhhhjWhKubj,)}(h2(struct drm_device *dev, const char *s, gfp_t gfp)h](j2)}(hstruct drm_device *devh](j)}(hjh]hstruct}(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWubj)}(h h]h }(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWubh)}(hhh]j)}(h drm_deviceh]h drm_device}(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWubah}(h]h ]h"]h$]h&] refdomainj reftypej reftargetjWmodnameN classnameNjj)}j]j)}jjWsbc.drmm_kstrdupasbuh1hhjWubj)}(h h]h }(hjXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWubj)}(hjh]h*}(hjXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWubj)}(hdevh]hdev}(hjXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWubeh}(h]h ]h"]h$]h&]noemphjAjBuh1j1hjWubj2)}(h const char *sh](j)}(hj*h]hconst}(hj7XhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3Xubj)}(h h]h }(hjDXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3Xubj))}(hcharh]hchar}(hjRXhhhNhNubah}(h]h ]j%)ah"]h$]h&]uh1j)hj3Xubj)}(h h]h }(hj`XhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3Xubj)}(hjh]h*}(hjnXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3Xubj)}(hsh]hs}(hj{XhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3Xubeh}(h]h ]h"]h$]h&]noemphjAjBuh1j1hjWubj2)}(h gfp_t gfph](h)}(hhh]j)}(hgfp_th]hgfp_t}(hjXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjXubah}(h]h ]h"]h$]h&] refdomainj reftypej reftargetjXmodnameN classnameNjj)}j]jWc.drmm_kstrdupasbuh1hhjXubj)}(h h]h }(hjXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjXubj)}(hgfph]hgfp}(hjXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjXubeh}(h]h ]h"]h$]h&]noemphjAjBuh1j1hjWubeh}(h]h ]h"]h$]h&]jAjBuh1j+hjwWhhhjWhKubeh}(h]h ]h"]h$]h&]jAjBjuh1jjjhjsWhhhjWhKubah}(h]jnWah ](j j!eh"]h$]h&]j%j&)j'huh1jhjWhKhjpWhhubj))}(hhh]h)}(h&:c:type:`drm_device` managed kstrdup()h](h)}(h:c:type:`drm_device`h]j)}(hjXh]h drm_device}(hjXhhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjXubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjj)}j]jWc.drmm_kstrdupasbj drm_deviceuh1hhjQhKhjXubh managed kstrdup()}(hjXhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:132: ./drivers/gpu/drm/drm_managed.chKhjXhhubah}(h]h ]h"]h$]h&]uh1j(hjpWhhhjWhKubeh}(h]h ](j functioneh"]h$]h&]jIj jJj)YjKj)YjLjMjNuh1jhhhjPhNhNubjP)}(hXt**Parameters** ``struct drm_device *dev`` DRM device ``const char *s`` 0-terminated string to be duplicated ``gfp_t gfp`` GFP allocation flags **Description** This is a :c:type:`drm_device` managed version of kstrdup(). The allocated memory is automatically freed on the final drm_dev_put() and works exactly like a memory allocation obtained by drmm_kmalloc().h](h)}(h**Parameters**h]jZ)}(hj3Yh]h Parameters}(hj5YhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj1Yubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:132: ./drivers/gpu/drm/drm_managed.chKhj-Yubj)}(hhh](j)}(h&``struct drm_device *dev`` DRM device h](j)}(h``struct drm_device *dev``h]j)}(hjRYh]hstruct drm_device *dev}(hjTYhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjPYubah}(h]h ]h"]h$]h&]uh1jh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:132: ./drivers/gpu/drm/drm_managed.chKhjLYubj)}(hhh]h)}(h DRM deviceh]h DRM device}(hjkYhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjgYhKhjhYubah}(h]h ]h"]h$]h&]uh1jhjLYubeh}(h]h ]h"]h$]h&]uh1jhjgYhKhjIYubj)}(h7``const char *s`` 0-terminated string to be duplicated h](j)}(h``const char *s``h]j)}(hjYh]h const char *s}(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$0-terminated string to be duplicatedh]h$0-terminated string to be duplicated}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjYhKhjYubah}(h]h ]h"]h$]h&]uh1jhjYubeh}(h]h ]h"]h$]h&]uh1jhjYhKhjIYubj)}(h#``gfp_t gfp`` GFP allocation flags h](j)}(h ``gfp_t gfp``h]j)}(hjYh]h gfp_t gfp}(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)}(hGFP allocation flagsh]hGFP allocation flags}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjYhKhjYubah}(h]h ]h"]h$]h&]uh1jhjYubeh}(h]h ]h"]h$]h&]uh1jhjYhKhjIYubeh}(h]h ]h"]h$]h&]uh1jhj-Yubh)}(h**Description**h]jZ)}(hjYh]h Description}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjYubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:132: ./drivers/gpu/drm/drm_managed.chKhj-Yubh)}(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}(hj!ZhhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjZubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjjj drm_deviceuh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:132: ./drivers/gpu/drm/drm_managed.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&]uh1hhjgc.drmm_kcallocasbuh1hhjrgubj)}(h h]h }(hjghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjrgubj)}(hjh]hn}(hjghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjrgubeh}(h]h ]h"]h$]h&]noemphjAjBuh1j1hjfubj2)}(h size_t sizeh](h)}(hhh]j)}(hsize_th]hsize_t}(hjghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjgubah}(h]h ]h"]h$]h&] refdomainj reftypej reftargetjgmodnameN classnameNjj)}j]j>gc.drmm_kcallocasbuh1hhjgubj)}(h h]h }(hjghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjgubj)}(hsizeh]hsize}(hjghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjgubeh}(h]h ]h"]h$]h&]noemphjAjBuh1j1hjfubj2)}(h gfp_t flagsh](h)}(hhh]j)}(hgfp_th]hgfp_t}(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhubah}(h]h ]h"]h$]h&] refdomainj reftypej reftargetj hmodnameN classnameNjj)}j]j>gc.drmm_kcallocasbuh1hhjhubj)}(h h]h }(hj&hhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhubj)}(hflagsh]hflags}(hj4hhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhubeh}(h]h ]h"]h$]h&]noemphjAjBuh1j1hjfubeh}(h]h ]h"]h$]h&]jAjBuh1j+hjfhhhjfhK\ubeh}(h]h ]h"]h$]h&]jAjBjuh1jjjhjfhhhjfhK\ubah}(h]jfah ](j j!eh"]h$]h&]j%j&)j'huh1jhjfhK\hjfhhubj))}(hhh]h)}(h&:c:type:`drm_device` managed kcalloc()h](h)}(h:c:type:`drm_device`h]j)}(hjdhh]h drm_device}(hjfhhhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjbhubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjj)}j]j>gc.drmm_kcallocasbj drm_deviceuh1hhj\hKhj^hubh managed kcalloc()}(hj^hhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:135: ./include/drm/drm_managed.hhK\hj[hhhubah}(h]h ]h"]h$]h&]uh1j(hjfhhhjfhK\ubeh}(h]h ](j functioneh"]h$]h&]jIj jJjhjKjhjLjMjNuh1jhhhjPhNhNubjP)}(hX**Parameters** ``struct drm_device *dev`` DRM device ``size_t n`` number of array elements to allocate ``size_t size`` size of array member ``gfp_t flags`` GFP allocation flags **Description** This is a :c:type:`drm_device` managed version of kcalloc(). The allocated memory is automatically freed on the final drm_dev_put() and works exactly like a memory allocation obtained by drmm_kmalloc().h](h)}(h**Parameters**h]jZ)}(hjhh]h Parameters}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjhubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:135: ./include/drm/drm_managed.hhK`hjhubj)}(hhh](j)}(h&``struct drm_device *dev`` DRM device h](j)}(h``struct drm_device *dev``h]j)}(hjhh]hstruct drm_device *dev}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:135: ./include/drm/drm_managed.hhK]hjhubj)}(hhh]h)}(h DRM deviceh]h DRM device}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhK]hjhubah}(h]h ]h"]h$]h&]uh1jhjhubeh}(h]h ]h"]h$]h&]uh1jhjhhK]hjhubj)}(h2``size_t n`` number of array elements to allocate h](j)}(h ``size_t n``h]j)}(hjhh]hsize_t n}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:135: ./include/drm/drm_managed.hhK^hjhubj)}(hhh]h)}(h$number of array elements to allocateh]h$number of array elements to allocate}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1hhjihK^hjiubah}(h]h ]h"]h$]h&]uh1jhjhubeh}(h]h ]h"]h$]h&]uh1jhjihK^hjhubj)}(h%``size_t size`` size of array member h](j)}(h``size_t size``h]j)}(hj5ih]h size_t size}(hj7ihhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3iubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:135: ./include/drm/drm_managed.hhK_hj/iubj)}(hhh]h)}(hsize of array memberh]hsize of array member}(hjNihhhNhNubah}(h]h ]h"]h$]h&]uh1hhjJihK_hjKiubah}(h]h ]h"]h$]h&]uh1jhj/iubeh}(h]h ]h"]h$]h&]uh1jhjJihK_hjhubj)}(h%``gfp_t flags`` GFP allocation flags h](j)}(h``gfp_t flags``h]j)}(hjnih]h gfp_t flags}(hjpihhhNhNubah}(h]h ]h"]h$]h&]uh1jhjliubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:135: ./include/drm/drm_managed.hhK`hjhiubj)}(hhh]h)}(hGFP allocation flagsh]hGFP allocation flags}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1hhjihK`hjiubah}(h]h ]h"]h$]h&]uh1jhjhiubeh}(h]h ]h"]h$]h&]uh1jhjihK`hjhubeh}(h]h ]h"]h$]h&]uh1jhjhubh)}(h**Description**h]jZ)}(hjih]h Description}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjiubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:135: ./include/drm/drm_managed.hhKbhjhubh)}(hThis is a :c:type:`drm_device` managed version of kcalloc(). The allocated memory is automatically freed on the final drm_dev_put() and works exactly like a memory allocation obtained by drmm_kmalloc().h](h This is a }(hjihhhNhNubh)}(h:c:type:`drm_device`h]j)}(hjih]h drm_device}(hjihhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjiubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjjj drm_deviceuh1hh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:135: ./include/drm/drm_managed.hhKahjiubh managed version of kcalloc(). The allocated memory is automatically freed on the final drm_dev_put() and works exactly like a memory allocation obtained by drmm_kmalloc().}(hjihhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjihKahjhubeh}(h]h ] kernelindentah"]h$]h&]uh1jOhjPhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jdrmm_mutex_init (C macro)c.drmm_mutex_inithNtauh1jhjPhhhNhNubj)}(hhh](j)}(hdrmm_mutex_inith]j)}(hdrmm_mutex_inith]j)}(hdrmm_mutex_inith]j)}(hj jh]hdrmm_mutex_initG}(hjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjubah}(h]h ](jjeh"]h$]h&]jAjBuh1jhj jhhh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:135: ./include/drm/drm_managed.hhKsubah}(h]h ]h"]h$]h&]jAjBjuh1jjjhj jhhhj(jhKsubah}(h]jjah ](j j!eh"]h$]h&]j%j&)j'huh1jhj(jhKshjjhhubj))}(hhh]h}(h]h ]h"]h$]h&]uh1j(hjjhhhj(jhKsubeh}(h]h ](j macroeh"]h$]h&]jIj jJjAjjKjAjjLjMjNuh1jhhhjPhNhNubh)}(h``drmm_mutex_init (dev, lock)``h]j)}(hjGjh]hdrmm_mutex_init (dev, lock)}(hjIjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjEjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:135: ./include/drm/drm_managed.hhKuhjPhhubj&)}(h*:c:type:`drm_device`-managed mutex_init() h]h)}(h):c:type:`drm_device`-managed mutex_init()h](h)}(h:c:type:`drm_device`h]j)}(hjgjh]h drm_device}(hjijhhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjejubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjjj drm_deviceuh1hh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:135: ./include/drm/drm_managed.hhKshjajubh-managed mutex_init()}(hjajhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjjhKshj]jubah}(h]h ]h"]h$]h&]uh1j&hjjhKshjPhhubjP)}(hX$**Parameters** ``dev`` DRM device ``lock`` lock to be initialized **Return** 0 on success, or a negative errno code otherwise. **Description** This is a :c:type:`drm_device`-managed version of mutex_init(). The initialized lock is automatically destroyed on the final drm_dev_put().h](h)}(h**Parameters**h]jZ)}(hjjh]h Parameters}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:135: ./include/drm/drm_managed.hhKwhjjubj)}(hhh](j)}(h``dev`` DRM device h](j)}(h``dev``h]j)}(hjjh]hdev}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjjubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:135: ./include/drm/drm_managed.hhKthjjubj)}(hhh]h)}(h DRM deviceh]h DRM device}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjjhKthjjubah}(h]h ]h"]h$]h&]uh1jhjjubeh}(h]h ]h"]h$]h&]uh1jhjjhKthjjubj)}(h ``lock`` lock to be initialized h](j)}(h``lock``h]j)}(hjjh]hlock}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjjubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:135: ./include/drm/drm_managed.hhKuhjjubj)}(hhh]h)}(hlock to be initializedh]hlock to be initialized}(hj khhhNhNubah}(h]h ]h"]h$]h&]uh1hhjkhKuhj kubah}(h]h ]h"]h$]h&]uh1jhjjubeh}(h]h ]h"]h$]h&]uh1jhjkhKuhjjubeh}(h]h ]h"]h$]h&]uh1jhjjubh)}(h **Return**h]jZ)}(hj.kh]hReturn}(hj0khhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj,kubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:135: ./include/drm/drm_managed.hhKwhjjubh)}(h10 on success, or a negative errno code otherwise.h]h10 on success, or a negative errno code otherwise.}(hjDkhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:135: ./include/drm/drm_managed.hhKwhjjubh)}(h**Description**h]jZ)}(hjUkh]h Description}(hjWkhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjSkubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:135: ./include/drm/drm_managed.hhKyhjjubh)}(hThis is a :c:type:`drm_device`-managed version of mutex_init(). The initialized lock is automatically destroyed on the final drm_dev_put().h](h This is a }(hjkkhhhNhNubh)}(h:c:type:`drm_device`h]j)}(hjukh]h drm_device}(hjwkhhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjskubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjjj drm_deviceuh1hh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:135: ./include/drm/drm_managed.hhKyhjkkubhm-managed version of mutex_init(). The initialized lock is automatically destroyed on the final drm_dev_put().}(hjkkhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjkhKyhjjubeh}(h]h ] kernelindentah"]h$]h&]uh1jOhjPhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j&drmm_alloc_ordered_workqueue (C macro)c.drmm_alloc_ordered_workqueuehNtauh1jhjPhhhNhNubj)}(hhh](j)}(hdrmm_alloc_ordered_workqueueh]j)}(hdrmm_alloc_ordered_workqueueh]j)}(hdrmm_alloc_ordered_workqueueh]j)}(hjkh]hdrmm_alloc_ordered_workqueue}(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkubah}(h]h ](jjeh"]h$]h&]jAjBuh1jhjkhhh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:135: ./include/drm/drm_managed.hhKubah}(h]h ]h"]h$]h&]jAjBjuh1jjjhjkhhhjkhKubah}(h]jkah ](j j!eh"]h$]h&]j%j&)j'huh1jhjkhKhjkhhubj))}(hhh]h}(h]h ]h"]h$]h&]uh1j(hjkhhhjkhKubeh}(h]h ](j macroeh"]h$]h&]jIj jJjkjKjkjLjMjNuh1jhhhjPhNhNubh)}(h;``drmm_alloc_ordered_workqueue (dev, fmt, flags, args...)``h]j)}(hjkh]h7drmm_alloc_ordered_workqueue (dev, fmt, flags, args...)}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjkubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:135: ./include/drm/drm_managed.hhKhjPhhubj&)}(h7:c:type:`drm_device` managed alloc_ordered_workqueue() h]h)}(h6:c:type:`drm_device` managed alloc_ordered_workqueue()h](h)}(h:c:type:`drm_device`h]j)}(hjlh]h drm_device}(hjlhhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjlubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjjj drm_deviceuh1hh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:135: ./include/drm/drm_managed.hhKhj lubh" managed alloc_ordered_workqueue()}(hj lhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj0lhKhj lubah}(h]h ]h"]h$]h&]uh1j&hj0lhKhjPhhubjP)}(hX**Parameters** ``dev`` DRM device ``fmt`` printf format for the name of the workqueue ``flags`` WQ_* flags (only WQ_FREEZABLE and WQ_MEM_RECLAIM are meaningful) ``args...`` args for **fmt** **Description** This is a :c:type:`drm_device`-managed version of alloc_ordered_workqueue(). The allocated workqueue is automatically destroyed on the final drm_dev_put(). **Return** workqueue on success, negative ERR_PTR otherwise.h](h)}(h**Parameters**h]jZ)}(hjGlh]h Parameters}(hjIlhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjElubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:135: ./include/drm/drm_managed.hhKhjAlubj)}(hhh](j)}(h``dev`` DRM device h](j)}(h``dev``h]j)}(hjflh]hdev}(hjhlhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjdlubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:135: ./include/drm/drm_managed.hhKhj`lubj)}(hhh]h)}(h DRM deviceh]h DRM device}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj{lhKhj|lubah}(h]h ]h"]h$]h&]uh1jhj`lubeh}(h]h ]h"]h$]h&]uh1jhj{lhKhj]lubj)}(h4``fmt`` printf format for the name of the workqueue h](j)}(h``fmt``h]j)}(hjlh]hfmt}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjlubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:135: ./include/drm/drm_managed.hhKhjlubj)}(hhh]h)}(h+printf format for the name of the workqueueh]h+printf format for the name of the workqueue}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjlhKhjlubah}(h]h ]h"]h$]h&]uh1jhjlubeh}(h]h ]h"]h$]h&]uh1jhjlhKhj]lubj)}(hK``flags`` WQ_* flags (only WQ_FREEZABLE and WQ_MEM_RECLAIM are meaningful) h](j)}(h ``flags``h]j)}(hjlh]hflags}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjlubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:135: ./include/drm/drm_managed.hhKhjlubj)}(hhh]h)}(h@WQ_* flags (only WQ_FREEZABLE and WQ_MEM_RECLAIM are meaningful)h]h@WQ_* flags (only WQ_FREEZABLE and WQ_MEM_RECLAIM are meaningful)}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjlhKhjlubah}(h]h ]h"]h$]h&]uh1jhjlubeh}(h]h ]h"]h$]h&]uh1jhjlhKhj]lubj)}(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.hhKhj mubj)}(hhh]h)}(hargs for **fmt**h](h args for }(hj*mhhhNhNubjZ)}(h**fmt**h]hfmt}(hj2mhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj*mubeh}(h]h ]h"]h$]h&]uh1hhj&mhKhj'mubah}(h]h ]h"]h$]h&]uh1jhj mubeh}(h]h ]h"]h$]h&]uh1jhj&mhKhj]lubeh}(h]h ]h"]h$]h&]uh1jhjAlubh)}(h**Description**h]jZ)}(hjZmh]h Description}(hj\mhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjXmubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:135: ./include/drm/drm_managed.hhKhjAlubh)}(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 }(hjpmhhhNhNubh)}(h:c:type:`drm_device`h]j)}(hjzmh]h drm_device}(hj|mhhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjxmubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjjj drm_deviceuh1hh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:135: ./include/drm/drm_managed.hhKhjpmubh}-managed version of alloc_ordered_workqueue(). The allocated workqueue is automatically destroyed on the final drm_dev_put().}(hjpmhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjmhKhjAlubh)}(h **Return**h]jZ)}(hjmh]hReturn}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjmubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:135: ./include/drm/drm_managed.hhKhjAlubh)}(h1workqueue on success, negative ERR_PTR otherwise.h]h1workqueue on success, negative ERR_PTR otherwise.}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:135: ./include/drm/drm_managed.hhKhjAlubeh}(h]h ] kernelindentah"]h$]h&]uh1jOhjPhhhNhNubeh}(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}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjmhhhhhKubhtarget)}(h.. _drm_driver_fops:h]h}(h]h ]h"]h$]h&]refiddrm-driver-fopsuh1jmhKhjmhhhhubh)}(hhh](h)}(hFile Operationsh]hFile Operations}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjmhhhhhKubh)}(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 refexplicitrefwarnjjjfile_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)}(hj>nh]hdrm_driver.fops}(hj@nhhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhj`h]j)}(hjanh]hfile_operations.compat_ioctl}(hjcnhhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhj_nubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjjjfile_operationsuh1hhj7nhKHhjnubhT handler that processes private ioctls and calls drm_compat_ioctl() for core ioctls.}(hjnhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj7nhKHhjmhhubh)}(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.}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:146: ./drivers/gpu/drm/drm_file.chKShjmhhubh)}(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.}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:146: ./drivers/gpu/drm/drm_file.chKYhjmhhubh)}(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().}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:146: ./drivers/gpu/drm/drm_file.chK\hjmhhubh)}(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 }(hjnhhhNhNubh)}(h:c:type:`file_operations`h]j)}(hjnh]hfile_operations}(hjnhhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjnubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjjjfile_operationsuh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:146: ./drivers/gpu/drm/drm_file.chK_hjnubh structure:}(hjnhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjnhK_hjmhhubj2)}(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, };}hjnsbah}(h]h ]h"]h$]h&]jAjBuh1j1h]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:146: ./drivers/gpu/drm/drm_file.chKbhjmhhubh)}(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.}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:146: ./drivers/gpu/drm/drm_file.chKmhjmhhubh)}(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&]uh1jhj oubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjjjfile_operationsuh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:146: ./drivers/gpu/drm/drm_file.chKqhjoubh must be stored in }(hjohhhNhNubh)}(h&:c:type:`drm_driver.fops `h]j)}(hj3oh]hdrm_driver.fops}(hj5ohhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhj1oubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjjj drm_driveruh1hhj,ohKqhjoubh.}(hjohhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj,ohKqhjmhhubh)}(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 }(hjZohhhNhNubh)}(hI:ref:`IOCTL support in the userland interfaces chapter`h]j)}(hjdoh]h0IOCTL support in the userland interfaces chapter}(hjfohhhNhNubah}(h]h ](j stdstd-refeh"]h$]h&]uh1jhjboubah}(h]h ]h"]h$]h&]refdocj refdomainjporeftyperef refexplicitrefwarnjdrm_driver_ioctluh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:146: ./drivers/gpu/drm/drm_file.chKshjZoubh.}(hjZohhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjohKshjmhhubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jdrm_minor (C struct) c.drm_minorhNtauh1jhjmhhhY/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}(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjohhhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhKubj)}(h h]h }(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjohhhjohKubj)}(h drm_minorh]j)}(hjoh]h drm_minor}(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjoubah}(h]h ](jjeh"]h$]h&]jAjBuh1jhjohhhjohKubeh}(h]h ]h"]h$]h&]jAjBjuh1jjjhjohhhjohKubah}(h]joah ](j j!eh"]h$]h&]j%j&)j'huh1jhjohKhjohhubj))}(hhh]h)}(hDRM device minor structureh]hDRM device minor structure}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhKEhjohhubah}(h]h ]h"]h$]h&]uh1j(hjohhhjohKubeh}(h]h ](j structeh"]h$]h&]jIj jJjpjKjpjLjMjNuh1jhhhjmhjohNubjP)}(h8**Definition**:: struct drm_minor { }; **Members**h](h)}(h**Definition**::h](jZ)}(h**Definition**h]h Definition}(hj phhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj pubh:}(hj phhhNhNubeh}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhKIhjpubj2)}(hstruct drm_minor { };h]hstruct drm_minor { };}hj&psbah}(h]h ]h"]h$]h&]jAjBuh1j1hY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhKKhjpubh)}(h **Members**h]jZ)}(hj7ph]hMembers}(hj9phhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj5pubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhKNhjpubeh}(h]h ] kernelindentah"]h$]h&]uh1jOhjmhhhjohNubh)}(h**Description**h]jZ)}(hjVph]h Description}(hjXphhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjTpubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhKQhjmhhubh)}(hXeThis structure represents a DRM minor number for device nodes in /dev. Entirely opaque to drivers and should never be inspected directly by drivers. Drivers instead should only interact with :c:type:`struct drm_file ` and of course :c:type:`struct drm_device `, which is also where driver-private data and resources can be attached to.h](hThis structure represents a DRM minor number for device nodes in /dev. Entirely opaque to drivers and should never be inspected directly by drivers. Drivers instead should only interact with }(hjlphhhNhNubh)}(h$:c:type:`struct drm_file `h]j)}(hjvph]hstruct drm_file}(hjxphhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjtpubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjjjdrm_fileuh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhKFhjlpubh and of course }(hjlphhhNhNubh)}(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 refexplicitrefwarnjjj drm_deviceuh1hhjphKFhjlpubhK, which is also where driver-private data and resources can be attached to.}(hjlphhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjphKFhjmhhubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jdrm_pending_event (C struct)c.drm_pending_eventhNtauh1jhjmhhhjohNubj)}(hhh](j)}(hdrm_pending_eventh]j)}(hstruct drm_pending_eventh](j)}(hjh]hstruct}(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjphhhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhKOubj)}(h h]h }(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjphhhjphKOubj)}(hdrm_pending_eventh]j)}(hjph]hdrm_pending_event}(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjpubah}(h]h ](jjeh"]h$]h&]jAjBuh1jhjphhhjphKOubeh}(h]h ]h"]h$]h&]jAjBjuh1jjjhjphhhjphKOubah}(h]jpah ](j j!eh"]h$]h&]j%j&)j'huh1jhjphKOhjphhubj))}(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.hhKYhjqhhubah}(h]h ]h"]h$]h&]uh1j(hjphhhjphKOubeh}(h]h ](j structeh"]h$]h&]jIj jJj4qjKj4qjLjMjNuh1jhhhjmhjohNubjP)}(hXu**Definition**:: struct drm_pending_event { struct completion *completion; void (*completion_release)(struct completion *completion); struct drm_event *event; struct dma_fence *fence; struct drm_file *file_priv; struct list_head link; struct list_head pending_link; }; **Members** ``completion`` Optional pointer to a kernel internal completion signalled when drm_send_event() is called, useful to internally synchronize with nonblocking operations. ``completion_release`` Optional callback currently only used by the atomic modeset helpers to clean up the reference count for the structure **completion** is stored in. ``event`` Pointer to the actual event that should be sent to userspace to be read using drm_read(). Can be optional, since nowadays events are also used to signal kernel internal threads with **completion** or DMA transactions using **fence**. ``fence`` Optional DMA fence to unblock other hardware transactions which depend upon the nonblocking DRM operation this event represents. ``file_priv`` :c:type:`struct drm_file ` where **event** should be delivered to. Only set when **event** is set. ``link`` Double-linked list to keep track of this event. Can be used by the driver up to the point when it calls drm_send_event(), after that this list entry is owned by the core for its own book-keeping. ``pending_link`` Entry on :c:type:`drm_file.pending_event_list `, to keep track of all pending events for **file_priv**, to allow correct unwinding of them when userspace closes the file before the event is delivered.h](h)}(h**Definition**::h](jZ)}(h**Definition**h]h Definition}(hj@qhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj` where **event** should be delivered to. Only set when **event** is set. h](j)}(h ``file_priv``h]j)}(hjrh]h file_priv}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjrubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhKhjrubj)}(hhh]h)}(hl:c:type:`struct drm_file ` where **event** should be delivered to. Only set when **event** is set.h](h)}(h$:c:type:`struct drm_file `h]j)}(hjrh]hstruct drm_file}(hjrhhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjrubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjjjdrm_fileuh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhKhjrubh where }(hjrhhhNhNubjZ)}(h **event**h]hevent}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjrubh' should be delivered to. Only set when }(hjrhhhNhNubjZ)}(h **event**h]hevent}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjrubh is set.}(hjrhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjrhKhjrubah}(h]h ]h"]h$]h&]uh1jhjrubeh}(h]h ]h"]h$]h&]uh1jhjrhKhjqubj)}(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)}(hj$sh]hlink}(hj&shhhNhNubah}(h]h ]h"]h$]h&]uh1jhj"subah}(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.}(hj=shhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhKhj:subah}(h]h ]h"]h$]h&]uh1jhjsubeh}(h]h ]h"]h$]h&]uh1jhj9shKhjqubj)}(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)}(hj^sh]h pending_link}(hj`shhhNhNubah}(h]h ]h"]h$]h&]uh1jhj\subah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhKhjXsubj)}(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 }(hjwshhhNhNubh)}(h0:c:type:`drm_file.pending_event_list `h]j)}(hjsh]hdrm_file.pending_event_list}(hjshhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjsubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjjjdrm_fileuh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhKhjwsubh*, to keep track of all pending events for }(hjwshhhNhNubjZ)}(h **file_priv**h]h file_priv}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjwsubhb, to allow correct unwinding of them when userspace closes the file before the event is delivered.}(hjwshhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjshKhjtsubah}(h]h ]h"]h$]h&]uh1jhjXsubeh}(h]h ]h"]h$]h&]uh1jhjsshKhjqubeh}(h]h ]h"]h$]h&]uh1jhj8qubeh}(h]h ] kernelindentah"]h$]h&]uh1jOhjmhhhjohNubh)}(h**Description**h]jZ)}(hjsh]h Description}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjsubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhKhjmhhubh)}(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 }(hjshhhNhNubh)}(h(:c:type:`struct completion `h]j)}(hjsh]hstruct completion}(hjshhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjsubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjjj completionuh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhKZhjsubh, }(hjshhhNhNubh)}(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 refexplicitrefwarnjjj dma_fenceuh1hhjthKZhjsubh and also the DRM-specific }(hjshhhNhNubh)}(h&:c:type:`struct drm_event `h]j)}(hj=th]hstruct drm_event}(hj?thhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhj;tubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjjj drm_eventuh1hhjthKZhjsubh delivery mechanism.}(hjshhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjthKZhjmhhubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jdrm_file (C struct) c.drm_filehNtauh1jhjmhhhjohNubj)}(hhh](j)}(hdrm_fileh]j)}(hstruct drm_fileh](j)}(hjh]hstruct}(hj}thhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjythhhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhKaubj)}(h h]h }(hjthhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjythhhjthKaubj)}(hdrm_fileh]j)}(hjwth]hdrm_file}(hjthhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjtubah}(h]h ](jjeh"]h$]h&]jAjBuh1jhjythhhjthKaubeh}(h]h ]h"]h$]h&]jAjBjuh1jjjhjuthhhjthKaubah}(h]jptah ](j j!eh"]h$]h&]j%j&)j'huh1jhjthKahjrthhubj))}(hhh]h)}(hDRM file private datah]hDRM file private data}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhKhjthhubah}(h]h ]h"]h$]h&]uh1j(hjrthhhjthKaubeh}(h]h ](j structeh"]h$]h&]jIj jJjtjKjtjLjMjNuh1jhhhjmhjohNubjP)}(hX**Definition**:: struct drm_file { bool authenticated; bool stereo_allowed; bool universal_planes; bool atomic; bool aspect_ratio_allowed; bool writeback_connectors; bool was_master; bool is_master; bool supports_virtualized_cursor_plane; struct drm_master *master; spinlock_t master_lookup_lock; struct pid __rcu *pid; u64 client_id; drm_magic_t magic; struct list_head lhead; struct drm_minor *minor; struct idr object_idr; spinlock_t table_lock; struct idr syncobj_idr; spinlock_t syncobj_table_lock; struct file *filp; void *driver_priv; struct list_head fbs; struct mutex fbs_lock; struct list_head blobs; wait_queue_head_t event_wait; struct list_head pending_event_list; struct list_head event_list; int event_space; struct mutex event_read_lock; struct drm_prime_file_private prime; const char *client_name; struct mutex client_name_lock; struct dentry *debugfs_client; }; **Members** ``authenticated`` Whether the client is allowed to submit rendering, which for legacy nodes means it must be authenticated. See also the :ref:`section on primary nodes and authentication `. ``stereo_allowed`` True when the client has asked us to expose stereo 3D mode flags. ``universal_planes`` True if client understands CRTC primary planes and cursor planes in the plane list. Automatically set when **atomic** is set. ``atomic`` True if client understands atomic properties. ``aspect_ratio_allowed`` True, if client can handle picture aspect ratios, and has requested to pass this information along with the mode. ``writeback_connectors`` True if client understands writeback connectors ``was_master`` This client has or had, master capability. Protected by struct :c:type:`drm_device.master_mutex `. This is used to ensure that CAP_SYS_ADMIN is not enforced, if the client is or was master in the past. ``is_master`` This client is the creator of **master**. Protected by struct :c:type:`drm_device.master_mutex `. See also the :ref:`section on primary nodes and authentication `. ``supports_virtualized_cursor_plane`` This client is capable of handling the cursor plane with the restrictions imposed on it by the virtualized drivers. This implies that the cursor plane has to behave like a cursor i.e. track cursor movement. It also requires setting of the hotspot properties by the client on the cursor plane. ``master`` Master this node is currently associated with. Protected by struct :c:type:`drm_device.master_mutex `, and serialized by **master_lookup_lock**. Only relevant if drm_is_primary_client() returns true. Note that this only matches :c:type:`drm_device.master ` if the master is the currently active one. To update **master**, both :c:type:`drm_device.master_mutex ` and **master_lookup_lock** need to be held, therefore holding either of them is safe and enough for the read side. When dereferencing this pointer, either hold struct :c:type:`drm_device.master_mutex ` for the duration of the pointer's use, or use drm_file_get_master() if struct :c:type:`drm_device.master_mutex ` is not currently held and there is no other need to hold it. This prevents **master** from being freed during use. See also **authentication** and **is_master** and the :ref:`section on primary nodes and authentication `. ``master_lookup_lock`` Serializes **master**. ``pid`` Process that is using this file. Must only be dereferenced under a rcu_read_lock or equivalent. Updates are guarded with dev->filelist_mutex and reference must be dropped after a RCU grace period to accommodate lockless readers. ``client_id`` A unique id for fdinfo ``magic`` Authentication magic, see **authenticated**. ``lhead`` List of all open files of a DRM device, linked into :c:type:`drm_device.filelist `. Protected by :c:type:`drm_device.filelist_mutex `. ``minor`` :c:type:`struct drm_minor ` for this file. ``object_idr`` Mapping of mm object handles to object pointers. Used by the GEM subsystem. Protected by **table_lock**. Note that allocated entries might be NULL as a transient state when creating or deleting a handle. ``table_lock`` Protects **object_idr**. ``syncobj_idr`` Mapping of sync object handles to object pointers. ``syncobj_table_lock`` Protects **syncobj_idr**. ``filp`` Pointer to the core file structure. ``driver_priv`` Optional pointer for driver private data. Can be allocated in :c:type:`drm_driver.open ` and should be freed in :c:type:`drm_driver.postclose `. ``fbs`` List of :c:type:`struct drm_framebuffer ` associated with this file, using the :c:type:`drm_framebuffer.filp_head ` entry. Protected by **fbs_lock**. Note that the **fbs** list holds a reference on the framebuffer object to prevent it from untimely disappearing. ``fbs_lock`` Protects **fbs**. ``blobs`` User-created blob properties; this retains a reference on the property. Protected by **drm_mode_config.blob_lock**; ``event_wait`` Waitqueue for new events added to **event_list**. ``pending_event_list`` List of pending :c:type:`struct drm_pending_event `, used to clean up pending events in case this file gets closed before the event is signalled. Uses the :c:type:`drm_pending_event.pending_link ` entry. Protect by :c:type:`drm_device.event_lock `. ``event_list`` List of :c:type:`struct drm_pending_event `, ready for delivery to userspace through drm_read(). Uses the :c:type:`drm_pending_event.link ` entry. Protect by :c:type:`drm_device.event_lock `. ``event_space`` Available event space to prevent userspace from exhausting kernel memory. Currently limited to the fairly arbitrary value of 4KB. ``event_read_lock`` Serializes drm_read(). ``prime`` Per-file buffer caches used by the PRIME buffer sharing code. ``client_name`` Userspace-provided name; useful for accounting and debugging. ``client_name_lock`` Protects **client_name**. ``debugfs_client`` debugfs directory for each client under a drm node.h](h)}(h**Definition**::h](jZ)}(h**Definition**h]h Definition}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjtubh:}(hjthhhNhNubeh}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhKhjtubj2)}(hXstruct drm_file { bool authenticated; bool stereo_allowed; bool universal_planes; bool atomic; bool aspect_ratio_allowed; bool writeback_connectors; bool was_master; bool is_master; bool supports_virtualized_cursor_plane; struct drm_master *master; spinlock_t master_lookup_lock; struct pid __rcu *pid; u64 client_id; drm_magic_t magic; struct list_head lhead; struct drm_minor *minor; struct idr object_idr; spinlock_t table_lock; struct idr syncobj_idr; spinlock_t syncobj_table_lock; struct file *filp; void *driver_priv; struct list_head fbs; struct mutex fbs_lock; struct list_head blobs; wait_queue_head_t event_wait; struct list_head pending_event_list; struct list_head event_list; int event_space; struct mutex event_read_lock; struct drm_prime_file_private prime; const char *client_name; struct mutex client_name_lock; struct dentry *debugfs_client; };h]hXstruct drm_file { bool authenticated; bool stereo_allowed; bool universal_planes; bool atomic; bool aspect_ratio_allowed; bool writeback_connectors; bool was_master; bool is_master; bool supports_virtualized_cursor_plane; struct drm_master *master; spinlock_t master_lookup_lock; struct pid __rcu *pid; u64 client_id; drm_magic_t magic; struct list_head lhead; struct drm_minor *minor; struct idr object_idr; spinlock_t table_lock; struct idr syncobj_idr; spinlock_t syncobj_table_lock; struct file *filp; void *driver_priv; struct list_head fbs; struct mutex fbs_lock; struct list_head blobs; wait_queue_head_t event_wait; struct list_head pending_event_list; struct list_head event_list; int event_space; struct mutex event_read_lock; struct drm_prime_file_private prime; const char *client_name; struct mutex client_name_lock; struct dentry *debugfs_client; };}hjtsbah}(h]h ]h"]h$]h&]jAjBuh1j1hY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhKhjtubh)}(h **Members**h]jZ)}(hj uh]hMembers}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj uubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhKhjtubj)}(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)}(hj,uh]h authenticated}(hj.uhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj*uubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhKhj&uubj)}(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.}(hjEuhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhKhjBuubh)}(hSSee also the :ref:`section on primary nodes and authentication `.h](h See also the }(hjTuhhhNhNubh)}(hE:ref:`section on primary nodes and authentication `h]j)}(hj^uh]h+section on primary nodes and authentication}(hj`uhhhNhNubah}(h]h ](j stdstd-refeh"]h$]h&]uh1jhj\uubah}(h]h ]h"]h$]h&]refdocj refdomainjjureftyperef refexplicitrefwarnjdrm_primary_nodeuh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhKhjTuubh.}(hjTuhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj|uhKhjBuubeh}(h]h ]h"]h$]h&]uh1jhj&uubeh}(h]h ]h"]h$]h&]uh1jhjAuhKhj#uubj)}(hU``stereo_allowed`` True when the client has asked us to expose stereo 3D mode flags. h](j)}(h``stereo_allowed``h]j)}(hjuh]hstereo_allowed}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjuubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhKhjuubj)}(hhh]h)}(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.}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjuhKhjuubah}(h]h ]h"]h$]h&]uh1jhjuubeh}(h]h ]h"]h$]h&]uh1jhjuhKhj#uubj)}(h``universal_planes`` True if client understands CRTC primary planes and cursor planes in the plane list. Automatically set when **atomic** is set. h](j)}(h``universal_planes``h]j)}(hjuh]huniversal_planes}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjuubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhKhjuubj)}(hhh]h)}(h}True if client understands CRTC primary planes and cursor planes in the plane list. Automatically set when **atomic** is set.h](hkTrue if client understands CRTC primary planes and cursor planes in the plane list. Automatically set when }(hjuhhhNhNubjZ)}(h **atomic**h]hatomic}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjuubh is set.}(hjuhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhKhjuubah}(h]h ]h"]h$]h&]uh1jhjuubeh}(h]h ]h"]h$]h&]uh1jhjuhKhj#uubj)}(h9``atomic`` True if client understands atomic properties. h](j)}(h ``atomic``h]j)}(hjvh]hatomic}(hj vhhhNhNubah}(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.}(hj7vhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj3vhKhj4vubah}(h]h ]h"]h$]h&]uh1jhjvubeh}(h]h ]h"]h$]h&]uh1jhj3vhKhj#uubj)}(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)}(hjWvh]haspect_ratio_allowed}(hjYvhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjUvubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhKhjQvubj)}(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.}(hjpvhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhKhjmvubah}(h]h ]h"]h$]h&]uh1jhjQvubeh}(h]h ]h"]h$]h&]uh1jhjlvhKhj#uubj)}(hI``writeback_connectors`` True if client understands writeback connectors h](j)}(h``writeback_connectors``h]j)}(hjvh]hwriteback_connectors}(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 writeback connectorsh]h/True if client understands writeback connectors}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjvhKhjvubah}(h]h ]h"]h$]h&]uh1jhjvubeh}(h]h ]h"]h$]h&]uh1jhjvhKhj#uubj)}(h``was_master`` This client has or had, master capability. Protected by struct :c:type:`drm_device.master_mutex `. This is used to ensure that CAP_SYS_ADMIN is not enforced, if the client is or was master in the past. h](j)}(h``was_master``h]j)}(hjvh]h was_master}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjvubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhKhjvubj)}(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 }(hjvhhhNhNubh)}(h.:c:type:`drm_device.master_mutex `h]j)}(hjvh]hdrm_device.master_mutex}(hjvhhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjvubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjjj drm_deviceuh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhKhjvubh.}(hjvhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj whKhjvubh)}(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.hhKhjvubeh}(h]h ]h"]h$]h&]uh1jhjvubeh}(h]h ]h"]h$]h&]uh1jhjvhKhj#uubj)}(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)}(hj6wh]h is_master}(hj8whhhNhNubah}(h]h ]h"]h$]h&]uh1jhj4wubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhKhj0wubj)}(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 }(hjOwhhhNhNubjZ)}(h **master**h]hmaster}(hjWwhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjOwubh. Protected by struct }(hjOwhhhNhNubh)}(h.:c:type:`drm_device.master_mutex `h]j)}(hjkwh]hdrm_device.master_mutex}(hjmwhhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjiwubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjjj drm_deviceuh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhKhjOwubh.}(hjOwhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjwhKhjLwubh)}(hSSee also the :ref:`section on primary nodes and authentication `.h](h See also the }(hjwhhhNhNubh)}(hE:ref:`section on primary nodes and authentication `h]j)}(hjwh]h+section on primary nodes and authentication}(hjwhhhNhNubah}(h]h ](j stdstd-refeh"]h$]h&]uh1jhjwubah}(h]h ]h"]h$]h&]refdocj refdomainjwreftyperef refexplicitrefwarnjdrm_primary_nodeuh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhKhjwubh.}(hjwhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjwhKhjLwubeh}(h]h ]h"]h$]h&]uh1jhj0wubeh}(h]h ]h"]h$]h&]uh1jhjKwhKhj#uubj)}(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)}(hjwh]h!supports_virtualized_cursor_plane}(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)}(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.}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhKhjwubh)}(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.hhKhjwubeh}(h]h ]h"]h$]h&]uh1jhjwubeh}(h]h ]h"]h$]h&]uh1jhjwhKhj#uubj)}(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)}(hj!xh]hmaster}(hj#xhhhNhNubah}(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 }(hj:xhhhNhNubh)}(h.:c:type:`drm_device.master_mutex `h]j)}(hjDxh]hdrm_device.master_mutex}(hjFxhhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjBxubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjjj drm_deviceuh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhKhj:xubh, and serialized by }(hj:xhhhNhNubjZ)}(h**master_lookup_lock**h]hmaster_lookup_lock}(hjfxhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj:xubh.}(hj:xhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjaxhKhj7xubh)}(hOnly relevant if drm_is_primary_client() returns true. Note that this only matches :c:type:`drm_device.master ` if the master is the currently active one.h](hSOnly relevant if drm_is_primary_client() returns true. Note that this only matches }(hj~xhhhNhNubh)}(h(:c:type:`drm_device.master `h]j)}(hjxh]hdrm_device.master}(hjxhhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjxubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjjj drm_deviceuh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhKhj~xubh+ if the master is the currently active one.}(hj~xhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjxhKhj7xubh)}(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 }(hjxhhhNhNubjZ)}(h **master**h]hmaster}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjxubh, both }(hjxhhhNhNubh)}(h.:c:type:`drm_device.master_mutex `h]j)}(hjxh]hdrm_device.master_mutex}(hjxhhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjxubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjjj drm_deviceuh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhKhjxubh and }(hjxhhhNhNubjZ)}(h**master_lookup_lock**h]hmaster_lookup_lock}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjxubhX need to be held, therefore holding either of them is safe and enough for the read side.}(hjxhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjxhKhj7xubh)}(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 refexplicitrefwarnjjj 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)}(hj4yh]hdrm_device.master_mutex}(hj6yhhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhj2yubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjjj drm_deviceuh1hhj-yhMhjyubhL is not currently held and there is no other need to hold it. This prevents }(hjyhhhNhNubjZ)}(h **master**h]hmaster}(hjUyhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjyubh from being freed during use.}(hjyhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj-yhMhj7xubh)}(h|See also **authentication** and **is_master** and the :ref:`section on primary nodes and authentication `.h](h See also }(hjmyhhhNhNubjZ)}(h**authentication**h]hauthentication}(hjuyhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjmyubh and }(hjmyhhhNhNubjZ)}(h **is_master**h]h is_master}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjmyubh and the }(hjmyhhhNhNubh)}(hE:ref:`section on primary nodes and authentication `h]j)}(hjyh]h+section on primary nodes and authentication}(hjyhhhNhNubah}(h]h ](j stdstd-refeh"]h$]h&]uh1jhjyubah}(h]h ]h"]h$]h&]refdocj refdomainjyreftyperef refexplicitrefwarnjdrm_primary_nodeuh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhMhjmyubh.}(hjmyhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjyhMhj7xubeh}(h]h ]h"]h$]h&]uh1jhjxubeh}(h]h ]h"]h$]h&]uh1jhj6xhMhj#uubj)}(h.``master_lookup_lock`` Serializes **master**. h](j)}(h``master_lookup_lock``h]j)}(hjyh]hmaster_lookup_lock}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjyubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhM hjyubj)}(hhh]h)}(hSerializes **master**.h](h Serializes }(hjyhhhNhNubjZ)}(h **master**h]hmaster}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjyubh.}(hjyhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjyhM hjyubah}(h]h ]h"]h$]h&]uh1jhjyubeh}(h]h ]h"]h$]h&]uh1jhjyhM hj#uubj)}(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)}(hj!zh]hpid}(hj#zhhhNhNubah}(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:zhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhMhj7zubh)}(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.}(hjIzhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhMhj7zubh)}(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.}(hjXzhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhMhj7zubeh}(h]h ]h"]h$]h&]uh1jhjzubeh}(h]h ]h"]h$]h&]uh1jhj6zhMhj#uubj)}(h%``client_id`` A unique id for fdinfo h](j)}(h ``client_id``h]j)}(hjyzh]h client_id}(hj{zhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjwzubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhMhjszubj)}(hhh]h)}(hA unique id for fdinfoh]hA unique id for fdinfo}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjzhMhjzubah}(h]h ]h"]h$]h&]uh1jhjszubeh}(h]h ]h"]h$]h&]uh1jhjzhMhj#uubj)}(h7``magic`` Authentication magic, see **authenticated**. h](j)}(h ``magic``h]j)}(hjzh]hmagic}(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,Authentication magic, see **authenticated**.h](hAuthentication magic, see }(hjzhhhNhNubjZ)}(h**authenticated**h]h authenticated}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjzubh.}(hjzhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjzhMhjzubah}(h]h ]h"]h$]h&]uh1jhjzubeh}(h]h ]h"]h$]h&]uh1jhjzhMhj#uubj)}(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)}(hjzh]hlhead}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjzubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhM"hjzubj)}(hhh]h)}(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 refexplicitrefwarnjjj 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)}(hjD{h]hdrm_device.filelist_mutex}(hjF{hhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjB{ubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjjj drm_deviceuh1hhj={hM!hj{ubh.}(hj{hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj={hM!hj{ubah}(h]h ]h"]h$]h&]uh1jhjzubeh}(h]h ]h"]h$]h&]uh1jhj{hM"hj#uubj)}(h@``minor`` :c:type:`struct drm_minor ` for this file. h](j)}(h ``minor``h]j)}(hj}{h]hminor}(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(hjw{ubj)}(hhh]h)}(h5:c:type:`struct drm_minor ` for this file.h](h)}(h&:c:type:`struct drm_minor `h]j)}(hj{h]hstruct drm_minor}(hj{hhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhj{ubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjjj drm_minoruh1hhj{hM(hj{ubh for this file.}(hj{hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj{hM(hj{ubah}(h]h ]h"]h$]h&]uh1jhjw{ubeh}(h]h ]h"]h$]h&]uh1jhj{hM(hj#uubj)}(h``object_idr`` Mapping of mm object handles to object pointers. Used by the GEM subsystem. Protected by **table_lock**. Note that allocated entries might be NULL as a transient state when creating or deleting a handle. h](j)}(h``object_idr``h]j)}(hj{h]h object_idr}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj{ubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhM0hj{ubj)}(hhh](h)}(hhMapping of mm object handles to object pointers. Used by the GEM subsystem. Protected by **table_lock**.h](hYMapping of mm object handles to object pointers. Used by the GEM subsystem. Protected by }(hj{hhhNhNubjZ)}(h**table_lock**h]h table_lock}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj{ubh.}(hj{hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhM,hj{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.hhM/hj{ubeh}(h]h ]h"]h$]h&]uh1jhj{ubeh}(h]h ]h"]h$]h&]uh1jhj{hM0hj#uubj)}(h(``table_lock`` Protects **object_idr**. h](j)}(h``table_lock``h]j)}(hj0|h]h table_lock}(hj2|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.hhM6hj*|ubj)}(hhh]h)}(hProtects **object_idr**.h](h Protects }(hjI|hhhNhNubjZ)}(h**object_idr**h]h object_idr}(hjQ|hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjI|ubh.}(hjI|hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjE|hM6hjF|ubah}(h]h ]h"]h$]h&]uh1jhj*|ubeh}(h]h ]h"]h$]h&]uh1jhjE|hM6hj#uubj)}(hC``syncobj_idr`` Mapping of sync object handles to object pointers. h](j)}(h``syncobj_idr``h]j)}(hj{|h]h syncobj_idr}(hj}|hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjy|ubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhM9hju|ubj)}(hhh]h)}(h2Mapping of sync object handles to object pointers.h]h2Mapping of sync object handles to object pointers.}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj|hM9hj|ubah}(h]h ]h"]h$]h&]uh1jhju|ubeh}(h]h ]h"]h$]h&]uh1jhj|hM9hj#uubj)}(h1``syncobj_table_lock`` Protects **syncobj_idr**. h](j)}(h``syncobj_table_lock``h]j)}(hj|h]hsyncobj_table_lock}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj|ubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhM;hj|ubj)}(hhh]h)}(hProtects **syncobj_idr**.h](h Protects }(hj|hhhNhNubjZ)}(h**syncobj_idr**h]h syncobj_idr}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj|ubh.}(hj|hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj|hM;hj|ubah}(h]h ]h"]h$]h&]uh1jhj|ubeh}(h]h ]h"]h$]h&]uh1jhj|hM;hj#uubj)}(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.hhM>hj|ubj)}(hhh]h)}(h#Pointer to the core file structure.h]h#Pointer to the core file structure.}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj}hM>hj}ubah}(h]h ]h"]h$]h&]uh1jhj|ubeh}(h]h ]h"]h$]h&]uh1jhj}hM>hj#uubj)}(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)}(hj8}h]h driver_priv}(hj:}hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6}ubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhMChj2}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 }(hjQ}hhhNhNubh)}(h&:c:type:`drm_driver.open `h]j)}(hj[}h]hdrm_driver.open}(hj]}hhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjY}ubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjjj drm_driveruh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhMBhjQ}ubh and should be freed in }(hjQ}hhhNhNubh)}(h+:c:type:`drm_driver.postclose `h]j)}(hj}h]hdrm_driver.postclose}(hj}hhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhj}}ubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjjj drm_driveruh1hhjx}hMBhjQ}ubh.}(hjQ}hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjx}hMBhjN}ubah}(h]h ]h"]h$]h&]uh1jhj2}ubeh}(h]h ]h"]h$]h&]uh1jhjM}hMChj#uubj)}(hX2``fbs`` List of :c:type:`struct drm_framebuffer ` associated with this file, using the :c:type:`drm_framebuffer.filp_head ` entry. Protected by **fbs_lock**. Note that the **fbs** list holds a reference on the framebuffer object to prevent it from untimely disappearing. h](j)}(h``fbs``h]j)}(hj}h]hfbs}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj}ubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhMNhj}ubj)}(hhh](h)}(hList of :c:type:`struct drm_framebuffer ` associated with this file, using the :c:type:`drm_framebuffer.filp_head ` entry.h](hList of }(hj}hhhNhNubh)}(h2:c:type:`struct drm_framebuffer `h]j)}(hj}h]hstruct drm_framebuffer}(hj}hhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhj}ubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjjjdrm_framebufferuh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhMJhj}ubh& associated with this file, using the }(hj}hhhNhNubh)}(h5:c:type:`drm_framebuffer.filp_head `h]j)}(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 refexplicitrefwarnjjjdrm_framebufferuh1hhj}hMJhj}ubh entry.}(hj}hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj}hMJhj}ubh)}(hProtected by **fbs_lock**. Note that the **fbs** list holds a reference on the framebuffer object to prevent it from untimely disappearing.h](h Protected by }(hj&~hhhNhNubjZ)}(h **fbs_lock**h]hfbs_lock}(hj.~hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj&~ubh. Note that the }(hj&~hhhNhNubjZ)}(h**fbs**h]hfbs}(hj@~hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj&~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.hhMMhj}ubeh}(h]h ]h"]h$]h&]uh1jhj}ubeh}(h]h ]h"]h$]h&]uh1jhj}hMNhj#uubj)}(h``fbs_lock`` Protects **fbs**. h](j)}(h ``fbs_lock``h]j)}(hjk~h]hfbs_lock}(hjm~hhhNhNubah}(h]h ]h"]h$]h&]uh1jhji~ubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhMThje~ubj)}(hhh]h)}(hProtects **fbs**.h](h Protects }(hj~hhhNhNubjZ)}(h**fbs**h]hfbs}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj~ubh.}(hj~hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj~hMThj~ubah}(h]h ]h"]h$]h&]uh1jhje~ubeh}(h]h ]h"]h$]h&]uh1jhj~hMThj#uubj)}(h``blobs`` User-created blob properties; this retains a reference on the property. Protected by **drm_mode_config.blob_lock**; h](j)}(h ``blobs``h]j)}(hj~h]hblobs}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj~ubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhM[hj~ubj)}(hhh](h)}(hGUser-created blob properties; this retains a reference on the property.h]hGUser-created blob properties; this retains a reference on the property.}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhMXhj~ubh)}(h+Protected by **drm_mode_config.blob_lock**;h](h Protected by }(hj~hhhNhNubjZ)}(h**drm_mode_config.blob_lock**h]hdrm_mode_config.blob_lock}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj~ubh;}(hj~hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj~hM[hj~ubeh}(h]h ]h"]h$]h&]uh1jhj~ubeh}(h]h ]h"]h$]h&]uh1jhj~hM[hj#uubj)}(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.hhMahj ubj)}(hhh]h)}(h1Waitqueue for new events added to **event_list**.h](h"Waitqueue for new events added to }(hj)hhhNhNubjZ)}(h**event_list**h]h event_list}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj)ubh.}(hj)hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj%hMahj&ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj%hMahj#uubj)}(hXC``pending_event_list`` List of pending :c:type:`struct drm_pending_event `, used to clean up pending events in case this file gets closed before the event is signalled. Uses the :c:type:`drm_pending_event.pending_link ` entry. Protect by :c:type:`drm_device.event_lock `. h](j)}(h``pending_event_list``h]j)}(hj[h]hpending_event_list}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjYubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhMihjUubj)}(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 }(hjthhhNhNubh)}(h6:c:type:`struct drm_pending_event `h]j)}(hj~h]hstruct drm_pending_event}(hjhhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhj|ubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjjjdrm_pending_eventuh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhMehjtubhh, used to clean up pending events in case this file gets closed before the event is signalled. Uses the }(hjthhhNhNubh)}(h<:c:type:`drm_pending_event.pending_link `h]j)}(hjh]hdrm_pending_event.pending_link}(hjhhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjjjdrm_pending_eventuh1hhjhMehjtubh entry.}(hjthhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMehjqubh)}(h8Protect by :c:type:`drm_device.event_lock `.h](h Protect by }(hjhhhNhNubh)}(h,:c:type:`drm_device.event_lock `h]j)}(hjh]hdrm_device.event_lock}(hjhhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjjj drm_deviceuh1hhjphMihjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjphMihjqubeh}(h]h ]h"]h$]h&]uh1jhjUubeh}(h]h ]h"]h$]h&]uh1jhjphMihj#uubj)}(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)}(hj h]h event_list}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhMshjubj)}(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 }(hj%hhhNhNubh)}(h6:c:type:`struct drm_pending_event `h]j)}(hj/h]hstruct drm_pending_event}(hj1hhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhj-ubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjjjdrm_pending_eventuh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhMphj%ubh?, ready for delivery to userspace through drm_read(). Uses the }(hj%hhhNhNubh)}(h4:c:type:`drm_pending_event.link `h]j)}(hjSh]hdrm_pending_event.link}(hjUhhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjQubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjjjdrm_pending_eventuh1hhjLhMphj%ubh entry.}(hj%hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjLhMphj"ubh)}(h8Protect by :c:type:`drm_device.event_lock `.h](h Protect by }(hjzhhhNhNubh)}(h,:c:type:`drm_device.event_lock `h]j)}(hjh]hdrm_device.event_lock}(hjhhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjjj drm_deviceuh1hhj!hMshjzubh.}(hjzhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj!hMshj"ubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj!hMshj#uubj)}(h``event_space`` Available event space to prevent userspace from exhausting kernel memory. Currently limited to the fairly arbitrary value of 4KB. h](j)}(h``event_space``h]j)}(hjh]h event_space}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhM|hjubj)}(hhh]h)}(hAvailable event space to prevent userspace from exhausting kernel memory. Currently limited to the fairly arbitrary value of 4KB.h]hAvailable event space to prevent userspace from exhausting kernel memory. Currently limited to the fairly arbitrary value of 4KB.}(hjրhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhMzhjӀubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjҀhM|hj#uubj)}(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.hhMhjubj)}(hhh]h)}(hSerializes drm_read().h]hSerializes drm_read().}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hMhj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj hMhj#uubj)}(hH``prime`` Per-file buffer caches used by the PRIME buffer sharing code. h](j)}(h ``prime``h]j)}(hj0h]hprime}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj.ubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhMhj*ubj)}(hhh]h)}(h=Per-file buffer caches used by the PRIME buffer sharing code.h]h=Per-file buffer caches used by the PRIME buffer sharing code.}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjEhMhjFubah}(h]h ]h"]h$]h&]uh1jhj*ubeh}(h]h ]h"]h$]h&]uh1jhjEhMhj#uubj)}(hN``client_name`` Userspace-provided name; useful for accounting and debugging. h](j)}(h``client_name``h]j)}(hjih]h client_name}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjgubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhMhjcubj)}(hhh]h)}(h=Userspace-provided name; useful for accounting and debugging.h]h=Userspace-provided name; useful for accounting and debugging.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj~hMhjubah}(h]h ]h"]h$]h&]uh1jhjcubeh}(h]h ]h"]h$]h&]uh1jhj~hMhj#uubj)}(h/``client_name_lock`` Protects **client_name**. h](j)}(h``client_name_lock``h]j)}(hjh]hclient_name_lock}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhMhjubj)}(hhh]h)}(hProtects **client_name**.h](h Protects }(hjhhhNhNubjZ)}(h**client_name**h]h client_name}(hjÁhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhj#uubj)}(hF``debugfs_client`` debugfs directory for each client under a drm node.h](j)}(h``debugfs_client``h]j)}(hjh]hdebugfs_client}(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)}(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&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhj#uubeh}(h]h ]h"]h$]h&]uh1jhjtubeh}(h]h ] kernelindentah"]h$]h&]uh1jOhjmhhhjohNubh)}(h**Description**h]jZ)}(hj0h]h Description}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj.ubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhMhjmhhubh)}(h9This structure tracks DRM state per open file descriptor.h]h9This structure tracks DRM state per open file descriptor.}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhKhjmhhubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j"drm_is_primary_client (C function)c.drm_is_primary_clienthNtauh1jhjmhhhjohNubj)}(hhh](j)}(h=bool drm_is_primary_client (const struct drm_file *file_priv)h]j)}(h` of **file_priv** is a primary minor. See also the :ref:`section on primary nodes and authentication `.h](h)}(h**Parameters**h]jZ)}(hjjh]h Parameters}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjhubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhMhjdubj)}(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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjdubh)}(h**Description**h]jZ)}(hjăh]h Description}(hjƃhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjƒubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhMhjdubh)}(hReturns true if this is an open file of the primary node, i.e. :c:type:`drm_file.minor ` of **file_priv** is a primary minor.h](h?Returns true if this is an open file of the primary node, i.e. }(hjڃhhhNhNubh)}(h#:c:type:`drm_file.minor `h]j)}(hjh]hdrm_file.minor}(hjhhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjjjdrm_fileuh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhMhjڃubh of }(hjڃhhhNhNubjZ)}(h **file_priv**h]h file_priv}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjڃubh is a primary minor.}(hjڃhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMhjdubh)}(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]j)}(hj(h]h+section on primary nodes and authentication}(hj*hhhNhNubah}(h]h ](j stdstd-refeh"]h$]h&]uh1jhj&ubah}(h]h ]h"]h$]h&]refdocj refdomainj4reftyperef refexplicitrefwarnjdrm_primary_nodeuh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhMhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjFhMhjdubeh}(h]h ] kernelindentah"]h$]h&]uh1jOhjmhhhjohNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j!drm_is_render_client (C function)c.drm_is_render_clienthNtauh1jhjmhhhjohNubj)}(hhh](j)}(h` of **file_priv** is a render minor. See also the :ref:`section on render nodes `.h](h)}(h**Parameters**h]jZ)}(hjmh]h Parameters}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjkubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhMhjgubj)}(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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjgubh)}(h**Description**h]jZ)}(hjDžh]h Description}(hjɅhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjŅubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhMhjgubh)}(hReturns true if this is an open file of the render node, i.e. :c:type:`drm_file.minor ` of **file_priv** is a render minor.h](h>Returns true if this is an open file of the render node, i.e. }(hj݅hhhNhNubh)}(h#:c:type:`drm_file.minor `h]j)}(hjh]hdrm_file.minor}(hjhhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjjjdrm_fileuh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhMhj݅ubh of }(hj݅hhhNhNubjZ)}(h **file_priv**h]h file_priv}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj݅ubh is a render minor.}(hj݅hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMhjgubh)}(h>See also the :ref:`section on render nodes `.h](h See also the }(hj!hhhNhNubh)}(h0:ref:`section on render nodes `h]j)}(hj+h]hsection on render nodes}(hj-hhhNhNubah}(h]h ](j stdstd-refeh"]h$]h&]uh1jhj)ubah}(h]h ]h"]h$]h&]refdocj refdomainj7reftyperef refexplicitrefwarnjdrm_render_nodeuh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhMhj!ubh.}(hj!hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjIhMhjgubeh}(h]h ] kernelindentah"]h$]h&]uh1jOhjmhhhjohNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j drm_is_accel_client (C function)c.drm_is_accel_clienthNtauh1jhjmhhhjohNubj)}(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}(hjthhhNhNubah}(h]h ]j%)ah"]h$]h&]uh1j)hjphhhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjphhhjhMubj)}(hdrm_is_accel_clienth]j)}(hdrm_is_accel_clienth]hdrm_is_accel_client}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jAjBuh1jhjphhhjhMubj,)}(h"(const struct drm_file *file_priv)h]j2)}(h const struct drm_file *file_privh](j)}(hj*h]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]hstruct}(hjˆhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hj؆hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hdrm_fileh]hdrm_file}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj reftypej reftargetjmodnameN classnameNjj)}j]j)}jjsbc.drm_is_accel_clientasbuh1hhjubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(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&]noemphjAjBuh1j1hjubah}(h]h ]h"]h$]h&]jAjBuh1j+hjphhhjhMubeh}(h]h ]h"]h$]h&]jAjBjuh1jjjhjlhhhjhMubah}(h]jgah ](j j!eh"]h$]h&]j%j&)j'huh1jhjhMhjihhubj))}(hhh]h)}(h5is this an open file of the compute acceleration nodeh]h5is this an open file of the compute acceleration node}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhMhjKhhubah}(h]h ]h"]h$]h&]uh1j(hjihhhjhMubeh}(h]h ](j functioneh"]h$]h&]jIj jJjfjKjfjLjMjNuh1jhhhjmhjohNubjP)}(hX;**Parameters** ``const struct drm_file *file_priv`` DRM file **Description** Returns true if this is an open file of the compute acceleration node, i.e. :c:type:`drm_file.minor ` of **file_priv** is a accel minor. See also :doc:`Introduction to compute accelerators subsystem `.h](h)}(h**Parameters**h]jZ)}(hjph]h Parameters}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjnubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhMhjjubj)}(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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjjubh)}(h**Description**h]jZ)}(hjʇh]h Description}(hj̇hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjȇubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhMhjjubh)}(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. }(hjhhhNhNubh)}(h#:c:type:`drm_file.minor `h]j)}(hjh]hdrm_file.minor}(hjhhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjjjdrm_fileuh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhMhjubh of }(hjhhhNhNubjZ)}(h **file_priv**h]h file_priv}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubh is a accel minor.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMhjjubh)}(hUSee also :doc:`Introduction to compute accelerators subsystem `.h](h See also }(hj$hhhNhNubh)}(hK:doc:`Introduction to compute accelerators subsystem `h]j)}(hj.h]h.Introduction to compute accelerators subsystem}(hj0hhhNhNubah}(h]h ](j stdstd-doceh"]h$]h&]uh1jhj,ubah}(h]h ]h"]h$]h&]refdocj refdomainj:reftypedoc refexplicitrefwarnj/accel/introductionuh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhMhj$ubh.}(hj$hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjLhMhjjubeh}(h]h ] kernelindentah"]h$]h&]uh1jOhjmhhhjohNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jdrm_memory_stats (C struct)c.drm_memory_statshNtauh1jhjmhhhjohNubj)}(hhh](j)}(hdrm_memory_statsh]j)}(hstruct drm_memory_statsh](j)}(hjh]hstruct}(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjshhhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjshhhjhMubj)}(hdrm_memory_statsh]j)}(hjqh]hdrm_memory_stats}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jAjBuh1jhjshhhjhMubeh}(h]h ]h"]h$]h&]jAjBjuh1jjjhjohhhjhMubah}(h]jjah ](j j!eh"]h$]h&]j%j&)j'huh1jhjhMhjlhhubj))}(hhh]h)}(hGEM object stats associatedh]hGEM object stats associated}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhMhjhhubah}(h]h ]h"]h$]h&]uh1j(hjlhhhjhMubeh}(h]h ](j structeh"]h$]h&]jIj jJjшjKjшjLjMjNuh1jhhhjmhjohNubjP)}(hX**Definition**:: struct drm_memory_stats { u64 shared; u64 private; u64 resident; u64 purgeable; u64 active; }; **Members** ``shared`` Total size of GEM objects shared between processes ``private`` Total size of GEM objects ``resident`` Total size of GEM objects backing pages ``purgeable`` Total size of GEM objects that can be purged (resident and not active) ``active`` Total size of GEM objects active on one or more enginesh](h)}(h**Definition**::h](jZ)}(h**Definition**h]h Definition}(hj݈hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjوubh:}(hjوhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhMhjՈubj2)}(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&]jAjBuh1j1hY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhMhjՈubh)}(h **Members**h]jZ)}(hjh]hMembers}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhMhjՈubj)}(hhh](j)}(h>``shared`` Total size of GEM objects shared between processes h](j)}(h ``shared``h]j)}(hj&h]hshared}(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)}(h2Total size of GEM objects shared between processesh]h2Total size of GEM objects shared between processes}(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&``private`` Total size of GEM objects h](j)}(h ``private``h]j)}(hj_h]hprivate}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jhj]ubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhMhjYubj)}(hhh]h)}(hTotal size of GEM objectsh]hTotal size of GEM objects}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjthMhjuubah}(h]h ]h"]h$]h&]uh1jhjYubeh}(h]h ]h"]h$]h&]uh1jhjthMhjubj)}(h5``resident`` Total size of GEM objects backing pages h](j)}(h ``resident``h]j)}(hjh]hresident}(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'Total size of GEM objects backing pagesh]h'Total size of GEM objects backing pages}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(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&]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)}(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)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjˉubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(hB``active`` Total size of GEM objects active on one or more enginesh](j)}(h ``active``h]j)}(hj h]hactive}(hj hhhNhNubah}(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}(hj#hhhNhNubah}(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&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(h]h ]h"]h$]h&]uh1jhjՈubeh}(h]h ] kernelindentah"]h$]h&]uh1jOhjmhhhjohNubh)}(h**Description**h]jZ)}(hjMh]h Description}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjKubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhMhjmhhubh)}(h Used by drm_print_memory_stats()h]h Used by drm_print_memory_stats()}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhMhjmhhubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jdrm_open (C function) c.drm_openhNtauh1jhjmhhhNhNubj)}(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 }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMfubj)}(hdrm_openh]j)}(hdrm_openh]hdrm_open}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jAjBuh1jhjhhhjhMfubj,)}(h((struct inode *inode, struct file *filp)h](j2)}(hstruct inode *inodeh](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)}(hinodeh]hinode}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj reftypej reftargetjmodnameN classnameNjj)}j]j)}jjsb c.drm_openasbuh1hhjĊubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjĊubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjĊubj)}(hinodeh]hinode}(hj!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjĊubeh}(h]h ]h"]h$]h&]noemphjAjBuh1j1hjubj2)}(hstruct file *filph](j)}(hjh]hstruct}(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6ubj)}(h h]h }(hjGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6ubh)}(hhh]j)}(hfileh]hfile}(hjXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUubah}(h]h ]h"]h$]h&] refdomainj reftypej reftargetjZmodnameN classnameNjj)}j]j c.drm_openasbuh1hhj6ubj)}(h h]h }(hjvhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6ubj)}(hfilph]hfilp}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6ubeh}(h]h ]h"]h$]h&]noemphjAjBuh1j1hjubeh}(h]h ]h"]h$]h&]jAjBuh1j+hjhhhjhMfubeh}(h]h ]h"]h$]h&]jAjBjuh1jjjhjhhhjhMfubah}(h]j~ah ](j j!eh"]h$]h&]j%j&)j'huh1jhjhMfhjhhubj))}(hhh]h)}(hopen method for DRM fileh]hopen method for DRM file}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chMfhjhhubah}(h]h ]h"]h$]h&]uh1j(hjhhhjhMfubeh}(h]h ](j functioneh"]h$]h&]jIj jJjӋjKjӋjLjMjNuh1jhhhjmhNhNubjP)}(hX**Parameters** ``struct inode *inode`` device inode ``struct file *filp`` file pointer. **Description** This function must be used by drivers as their :c:type:`file_operations.open ` method. It looks up the correct DRM device and instantiates all the per-file resources for it. It also calls the :c:type:`drm_driver.open ` driver callback. **Return** 0 on success or negative errno value on failure.h](h)}(h**Parameters**h]jZ)}(hj݋h]h Parameters}(hjߋhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjۋubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chMjhj׋ubj)}(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&]uh1jhjhMghjubj)}(h$``struct file *filp`` file pointer. h](j)}(h``struct file *filp``h]j)}(hj5h]hstruct file *filp}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chMhhj/ubj)}(hhh]h)}(h file pointer.h]h file pointer.}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjJhMhhjKubah}(h]h ]h"]h$]h&]uh1jhj/ubeh}(h]h ]h"]h$]h&]uh1jhjJhMhhjubeh}(h]h ]h"]h$]h&]uh1jhj׋ubh)}(h**Description**h]jZ)}(hjph]h Description}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjnubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chMjhj׋ubh)}(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 refexplicitrefwarnjjjfile_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)}(hjh]hdrm_driver.open}(hjhhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjjj drm_driveruh1hhjhMihjubh driver callback.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMihj׋ubh)}(h **Return**h]jZ)}(hj݌h]hReturn}(hjߌhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjیubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chMmhj׋ubh)}(h00 on success or negative errno value on failure.h]h00 on success or negative errno value on failure.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chMnhj׋ubeh}(h]h ] kernelindentah"]h$]h&]uh1jOhjmhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jdrm_release (C function) c.drm_releasehNtauh1jhjmhhhNhNubj)}(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}(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 }(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhj0hMubj)}(h drm_releaseh]j)}(h drm_releaseh]h drm_release}(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?ubah}(h]h ](jjeh"]h$]h&]jAjBuh1jhjhhhj0hMubj,)}(h((struct inode *inode, struct file *filp)h](j2)}(hstruct inode *inodeh](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)}(hinodeh]hinode}(hj}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzubah}(h]h ]h"]h$]h&] refdomainj reftypej reftargetjmodnameN classnameNjj)}j]j)}jjEsb c.drm_releaseasbuh1hhj[ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj[ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj[ubj)}(hinodeh]hinode}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj[ubeh}(h]h ]h"]h$]h&]noemphjAjBuh1j1hjWubj2)}(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 classnameNjj)}j]j c.drm_releaseasbuh1hhj͍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&]noemphjAjBuh1j1hjWubeh}(h]h ]h"]h$]h&]jAjBuh1j+hjhhhj0hMubeh}(h]h ]h"]h$]h&]jAjBjuh1jjjhjhhhj0hMubah}(h]jah ](j j!eh"]h$]h&]j%j&)j'huh1jhj0hMhjhhubj))}(hhh]h)}(hrelease method for DRM fileh]hrelease method for DRM file}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chMhjOhhubah}(h]h ]h"]h$]h&]uh1j(hjhhhj0hMubeh}(h]h ](j functioneh"]h$]h&]jIj jJjjjKjjjLjMjNuh1jhhhjmhNhNubjP)}(hX**Parameters** ``struct inode *inode`` device inode ``struct file *filp`` file pointer. **Description** This function must be used by drivers as their :c:type:`file_operations.release ` method. It frees any resources associated with the open file. If this is the last open file for the DRM device, it also restores the active in-kernel DRM client. **Return** Always succeeds and returns 0.h](h)}(h**Parameters**h]jZ)}(hjth]h Parameters}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjrubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chMhjnubj)}(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&]uh1jhjnubh)}(h**Description**h]jZ)}(hjh]h Description}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chMhjnubh)}(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)}(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 refexplicitrefwarnjjjfile_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&]uh1hhjDhMhjnubh)}(h **Return**h]jZ)}(hjQh]hReturn}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjOubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chMhjnubh)}(hAlways succeeds and returns 0.h]hAlways succeeds and returns 0.}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chMhjnubeh}(h]h ] kernelindentah"]h$]h&]uh1jOhjmhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j!drm_release_noglobal (C function)c.drm_release_noglobalhNtauh1jhjmhhhNhNubj)}(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}(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)}(hdrm_release_noglobalh]j)}(hdrm_release_noglobalh]hdrm_release_noglobal}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jAjBuh1jhjhhhjhMubj,)}(h((struct inode *inode, struct file *filp)h](j2)}(hstruct inode *inodeh](j)}(hjh]hstruct}(hjӏhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjϏubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjϏubh)}(hhh]j)}(hinodeh]hinode}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj reftypej reftargetjmodnameN classnameNjj)}j]j)}jjsbc.drm_release_noglobalasbuh1hhjϏubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjϏubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjϏubj)}(hinodeh]hinode}(hj,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjϏubeh}(h]h ]h"]h$]h&]noemphjAjBuh1j1hjˏubj2)}(hstruct file *filph](j)}(hjh]hstruct}(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjAubj)}(h h]h }(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjAubh)}(hhh]j)}(hfileh]hfile}(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`ubah}(h]h ]h"]h$]h&] refdomainj reftypej reftargetjemodnameN classnameNjj)}j]j c.drm_release_noglobalasbuh1hhjAubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjAubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjAubj)}(hfilph]hfilp}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjAubeh}(h]h ]h"]h$]h&]noemphjAjBuh1j1hjˏubeh}(h]h ]h"]h$]h&]jAjBuh1j+hjhhhjhMubeh}(h]h ]h"]h$]h&]jAjBjuh1jjjhjhhhjhMubah}(h]jah ](j j!eh"]h$]h&]j%j&)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&]jIj jJjސjKjސjLjMjNuh1jhhhjmhNhNubjP)}(hX**Parameters** ``struct inode *inode`` device inode ``struct file *filp`` file pointer. **Description** This function may be used by drivers as their :c:type:`file_operations.release ` method. It frees any resources associated with the open file prior to taking the drm_global_mutex. If this is the last open file for the DRM device, it then restores the active in-kernel DRM client. **Return** Always succeeds and returns 0.h](h)}(h**Parameters**h]jZ)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chMhjubj)}(hhh](j)}(h%``struct inode *inode`` device inode h](j)}(h``struct inode *inode``h]j)}(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}(hj hhhNhNubah}(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}(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.chMhj:ubj)}(hhh]h)}(h file pointer.h]h file pointer.}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjUhMhjVubah}(h]h ]h"]h$]h&]uh1jhj:ubeh}(h]h ]h"]h$]h&]uh1jhjUhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]jZ)}(hj{h]h Description}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjyubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chMhjubh)}(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)}(hjh]hfile_operations.release}(hjhhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjjjfile_operationsuh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.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&]uh1hhjhMhjubh)}(h **Return**h]jZ)}(hjőh]hReturn}(hjǑhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjÑubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chMhjubh)}(hAlways succeeds and returns 0.h]hAlways succeeds and returns 0.}(hjۑhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jOhjmhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jdrm_read (C function) c.drm_readhNtauh1jhjmhhhNhNubj)}(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}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&] refdomainj reftypej reftargetjmodnameN classnameNjj)}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 }(hj/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhj.hMubj)}(hdrm_readh]j)}(hj+h]hdrm_read}(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=ubah}(h]h ](jjeh"]h$]h&]jAjBuh1jhjhhhj.hMubj,)}(hF(struct file *filp, char __user *buffer, size_t count, loff_t *offset)h](j2)}(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 classnameNjj)}j]j) c.drm_readasbuh1hhjXubj)}(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&]noemphjAjBuh1j1hjTubj2)}(hchar __user *bufferh](j))}(hcharh]hchar}(hj̒hhhNhNubah}(h]h ]j%)ah"]h$]h&]uh1j)hjȒubj)}(h h]h }(hjڒhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjȒubh__user}(hjȒhhhNhNubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjȒubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjȒubj)}(hbufferh]hbuffer}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjȒubeh}(h]h ]h"]h$]h&]noemphjAjBuh1j1hjTubj2)}(h size_t counth](h)}(hhh]j)}(hsize_th]hsize_t}(hj#hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&] refdomainj reftypej reftargetj%modnameN classnameNjj)}j]j) c.drm_readasbuh1hhjubj)}(h h]h }(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hcounth]hcount}(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjAjBuh1j1hjTubj2)}(hloff_t *offseth](h)}(hhh]j)}(hloff_th]hloff_t}(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhubah}(h]h ]h"]h$]h&] refdomainj reftypej reftargetjmmodnameN classnameNjj)}j]j) c.drm_readasbuh1hhjdubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdubj)}(hoffseth]hoffset}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdubeh}(h]h ]h"]h$]h&]noemphjAjBuh1j1hjTubeh}(h]h ]h"]h$]h&]jAjBuh1j+hjhhhj.hMubeh}(h]h ]h"]h$]h&]jAjBjuh1jjjhjhhhj.hMubah}(h]jah ](j j!eh"]h$]h&]j%j&)j'huh1jhj.hMhjhhubj))}(hhh]h)}(hread method for DRM fileh]hread 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(hjhhhj.hMubeh}(h]h ](j functioneh"]h$]h&]jIj jJjjKjjLjMjNuh1jhhhjmhNhNubjP)}(hX**Parameters** ``struct file *filp`` file pointer ``char __user *buffer`` userspace destination pointer for the read ``size_t count`` count in bytes to read ``loff_t *offset`` offset to read **Description** This function must be used by drivers as their :c:type:`file_operations.read ` method if they use DRM events for asynchronous signalling to userspace. Since events are used by the KMS API for vblank and page flip completion this means all modern display drivers must use it. **offset** is ignored, DRM events are read like a pipe. Polling support is provided by drm_poll(). This function will only ever read a full event. Therefore userspace must supply a big enough buffer to fit any event to ensure forward progress. Since the maximum event space is currently 4K it's recommended to just use that for safety. **Return** Number of bytes read (always aligned to full events, and can be 0) or a negative error code on failure.h](h)}(h**Parameters**h]jZ)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chM hjubj)}(hhh](j)}(h#``struct file *filp`` file pointer h](j)}(h``struct file *filp``h]j)}(hjh]hstruct file *filp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chMhj ubj)}(hhh]h)}(h file pointerh]h file pointer}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj$hMhj%ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj$hMhjubj)}(hC``char __user *buffer`` userspace destination pointer for the read h](j)}(h``char __user *buffer``h]j)}(hjHh]hchar __user *buffer}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjFubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chMhjBubj)}(hhh]h)}(h*userspace destination pointer for the readh]h*userspace destination pointer for the read}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1hhj]hMhj^ubah}(h]h ]h"]h$]h&]uh1jhjBubeh}(h]h ]h"]h$]h&]uh1jhj]hMhjubj)}(h(``size_t count`` count in bytes to read h](j)}(h``size_t count``h]j)}(hjh]h size_t count}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chMhj{ubj)}(hhh]h)}(hcount in bytes to readh]hcount in bytes to read}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhj{ubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h"``loff_t *offset`` offset to read h](j)}(h``loff_t *offset``h]j)}(hjh]hloff_t *offset}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chM hjubj)}(hhh]h)}(hoffset to readh]hoffset to read}(hjӔhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjϔhM hjДubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjϔhM hjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]jZ)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chM hjubh)}(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 }(hj hhhNhNubh)}(h0:c:type:`file_operations.read `h]j)}(hjh]hfile_operations.read}(hjhhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjjjfile_operationsuh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chM hj ubh 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.}(hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj2hM hjubh)}(hb**offset** is ignored, DRM events are read like a pipe. Polling support is provided by drm_poll().h](jZ)}(h **offset**h]hoffset}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj=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.chMhjubh)}(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.}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chMhjubh)}(h **Return**h]jZ)}(hjkh]hReturn}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjiubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chMhjubh)}(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.}(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&]uh1jOhjmhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jdrm_poll (C function) c.drm_pollhNtauh1jhjmhhhNhNubj)}(hhh](j)}(hE__poll_t drm_poll (struct file *filp, struct poll_table_struct *wait)h]j)}(hD__poll_t drm_poll(struct file *filp, struct poll_table_struct *wait)h](h)}(hhh]j)}(h__poll_th]h__poll_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj reftypej reftargetjmodnameN classnameNjj)}j]j)}jdrm_pollsb c.drm_pollasbuh1hhjhhh]/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&]uh1jhjhhhjԕhMbubj)}(hdrm_pollh]j)}(hjѕh]hdrm_poll}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jAjBuh1jhjhhhjԕhMbubj,)}(h3(struct file *filp, struct poll_table_struct *wait)h](j2)}(hstruct file *filph](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hfileh]hfile}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj reftypej reftargetj"modnameN classnameNjj)}j]jϕ c.drm_pollasbuh1hhjubj)}(h h]h }(hj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hfilph]hfilp}(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjAjBuh1j1hjubj2)}(hstruct poll_table_struct *waith](j)}(hjh]hstruct}(hjrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnubh)}(hhh]j)}(hpoll_table_structh]hpoll_table_struct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj reftypej reftargetjmodnameN classnameNjj)}j]jϕ c.drm_pollasbuh1hhjnubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnubj)}(hwaith]hwait}(hjɖhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnubeh}(h]h ]h"]h$]h&]noemphjAjBuh1j1hjubeh}(h]h ]h"]h$]h&]jAjBuh1j+hjhhhjԕhMbubeh}(h]h ]h"]h$]h&]jAjBjuh1jjjhjhhhjԕhMbubah}(h]jah ](j j!eh"]h$]h&]j%j&)j'huh1jhjԕhMbhjhhubj))}(hhh]h)}(hpoll method for DRM fileh]hpoll method for DRM file}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chMbhjhhubah}(h]h ]h"]h$]h&]uh1j(hjhhhjԕhMbubeh}(h]h ](j functioneh"]h$]h&]jIj jJj jKj jLjMjNuh1jhhhjmhNhNubjP)}(hX**Parameters** ``struct file *filp`` file pointer ``struct poll_table_struct *wait`` poll waiter table **Description** This function must be used by drivers as their :c:type:`file_operations.read ` method if they use DRM events for asynchronous signalling to userspace. Since events are used by the KMS API for vblank and page flip completion this means all modern display drivers must use it. See also drm_read(). **Return** Mask of POLL flags indicating the current status of the file.h](h)}(h**Parameters**h]jZ)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chMfhjubj)}(hhh](j)}(h#``struct file *filp`` file pointer h](j)}(h``struct file *filp``h]j)}(hj4h]hstruct file *filp}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chMchj.ubj)}(hhh]h)}(h file pointerh]h file pointer}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjIhMchjJubah}(h]h ]h"]h$]h&]uh1jhj.ubeh}(h]h ]h"]h$]h&]uh1jhjIhMchj+ubj)}(h5``struct poll_table_struct *wait`` poll waiter table h](j)}(h"``struct poll_table_struct *wait``h]j)}(hjmh]hstruct poll_table_struct *wait}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jhjkubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chMdhjgubj)}(hhh]h)}(hpoll waiter tableh]hpoll waiter table}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMdhjubah}(h]h ]h"]h$]h&]uh1jhjgubeh}(h]h ]h"]h$]h&]uh1jhjhMdhj+ubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]jZ)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.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 }(hjhhhNhNubh)}(h0:c:type:`file_operations.read `h]j)}(hjȗh]hfile_operations.read}(hjʗhhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjƗubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjjjfile_operationsuh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chMehjubh method if they use DRM events for asynchronous signalling to userspace. Since events are used by the KMS API for vblank and page flip completion this means all modern display drivers must use it.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMehjubh)}(hSee also drm_read().h]hSee also drm_read().}(hjhhhNhNubah}(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]jZ)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.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&]uh1jOhjmhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j*drm_event_reserve_init_locked (C function)c.drm_event_reserve_init_lockedhNtauh1jhjmhhhNhNubj)}(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}(hjFhhhNhNubah}(h]h ]j%)ah"]h$]h&]uh1j)hjBhhh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chMubj)}(h h]h }(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBhhhjThMubj)}(hdrm_event_reserve_init_lockedh]j)}(hdrm_event_reserve_init_lockedh]hdrm_event_reserve_init_locked}(hjghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjcubah}(h]h ](jjeh"]h$]h&]jAjBuh1jhjBhhhjThMubj,)}(hf(struct drm_device *dev, struct drm_file *file_priv, struct drm_pending_event *p, struct drm_event *e)h](j2)}(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 classnameNjj)}j]j)}jjisbc.drm_event_reserve_init_lockedasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjϘhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hdevh]hdev}(hjܘhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjAjBuh1j1hj{ubj2)}(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 classnameNjj)}j]jc.drm_event_reserve_init_lockedasbuh1hhjubj)}(h h]h }(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h file_privh]h file_priv}(hjLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjAjBuh1j1hj{ubj2)}(hstruct drm_pending_event *ph](j)}(hjh]hstruct}(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjaubj)}(h h]h }(hjrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjaubh)}(hhh]j)}(hdrm_pending_eventh]hdrm_pending_event}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj reftypej reftargetjmodnameN classnameNjj)}j]jc.drm_event_reserve_init_lockedasbuh1hhjaubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjaubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjaubj)}(hjh]hp}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjaubeh}(h]h ]h"]h$]h&]noemphjAjBuh1j1hj{ubj2)}(hstruct drm_event *eh](j)}(hjh]hstruct}(hjԙhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjЙubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjЙubh)}(hhh]j)}(h drm_eventh]h drm_event}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj reftypej reftargetjmodnameN classnameNjj)}j]jc.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}(hj+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjЙubeh}(h]h ]h"]h$]h&]noemphjAjBuh1j1hj{ubeh}(h]h ]h"]h$]h&]jAjBuh1j+hjBhhhjThMubeh}(h]h ]h"]h$]h&]jAjBjuh1jjjhj>hhhjThMubah}(h]j9ah ](j j!eh"]h$]h&]j%j&)j'huh1jhjThMhj;hhubj))}(hhh]h)}(h)init a DRM event and reserve space for ith]h)init a DRM event and reserve space for it}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chMhjRhhubah}(h]h ]h"]h$]h&]uh1j(hj;hhhjThMubeh}(h]h ](j functioneh"]h$]h&]jIj jJjmjKjmjLjMjNuh1jhhhjmhNhNubjP)}(hX**Parameters** ``struct drm_device *dev`` DRM device ``struct drm_file *file_priv`` DRM file private data ``struct drm_pending_event *p`` tracking structure for the pending event ``struct drm_event *e`` actual event data to deliver to userspace **Description** This function prepares the passed in event for eventual delivery. If the event doesn't get delivered (because the IOCTL fails later on, before queuing up anything) then the even must be cancelled and freed using drm_event_cancel_free(). Successfully initialized events should be sent out using drm_send_event() or drm_send_event_locked() to signal completion of the asynchronous event to userspace. If callers embedded **p** into a larger structure it must be allocated with kmalloc and **p** must be the first member element. This is the locked version of drm_event_reserve_init() for callers which already hold :c:type:`drm_device.event_lock `. **Return** 0 on success or a negative error code on failure.h](h)}(h**Parameters**h]jZ)}(hjwh]h Parameters}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjuubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chMhjqubj)}(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.chMhjubj)}(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&]uh1jhjhMhjubj)}(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}(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)}(hDRM file private datah]hDRM file private data}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjɚubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(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}(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(tracking structure for the pending eventh]h(tracking structure for the pending event}(hj!hhhNhNubah}(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)}(hjAh]hstruct drm_event *e}(hjChhhNhNubah}(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}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjVhMhjWubah}(h]h ]h"]h$]h&]uh1jhj;ubeh}(h]h ]h"]h$]h&]uh1jhjVhMhjubeh}(h]h ]h"]h$]h&]uh1jhjqubh)}(h**Description**h]jZ)}(hj|h]h Description}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjzubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chMhjqubh)}(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.chMhjqubh)}(hIf callers embedded **p** into a larger structure it must be allocated with kmalloc and **p** must be the first member element.h](hIf callers embedded }(hjhhhNhNubjZ)}(h**p**h]hp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubh? into a larger structure it must be allocated with kmalloc and }(hjhhhNhNubjZ)}(h**p**h]hp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubh" must be the first member element.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chMhjqubh)}(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)}(hjޛh]hdrm_device.event_lock}(hjhhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjܛubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjjj drm_deviceuh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chMhjԛubh.}(hjԛhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMhjqubh)}(h **Return**h]jZ)}(hjh]hReturn}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chMhjqubh)}(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.chMhjqubeh}(h]h ] kernelindentah"]h$]h&]uh1jOhjmhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j#drm_event_reserve_init (C function)c.drm_event_reserve_inithNtauh1jhjmhhhNhNubj)}(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}(hjMhhhNhNubah}(h]h ]j%)ah"]h$]h&]uh1j)hjIhhh]/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&]uh1jhjIhhhj[hMubj)}(hdrm_event_reserve_inith]j)}(hdrm_event_reserve_inith]hdrm_event_reserve_init}(hjnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjubah}(h]h ](jjeh"]h$]h&]jAjBuh1jhjIhhhj[hMubj,)}(hf(struct drm_device *dev, struct drm_file *file_priv, struct drm_pending_event *p, struct drm_event *e)h](j2)}(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 classnameNjj)}j]j)}jjpsbc.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)}(hdevh]hdev}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjAjBuh1j1hjubj2)}(hstruct drm_file *file_privh](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hdrm_fileh]hdrm_file}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj reftypej reftargetjmodnameN classnameNjj)}j]jĜc.drm_event_reserve_initasbuh1hhjubj)}(h h]h }(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h file_privh]h file_priv}(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjAjBuh1j1hjubj2)}(hstruct drm_pending_event *ph](j)}(hjh]hstruct}(hjlhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhubj)}(h h]h }(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhubh)}(hhh]j)}(hdrm_pending_eventh]hdrm_pending_event}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj reftypej reftargetjmodnameN classnameNjj)}j]jĜc.drm_event_reserve_initasbuh1hhjhubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhubj)}(hjh]hp}(hjÝhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhubeh}(h]h ]h"]h$]h&]noemphjAjBuh1j1hjubj2)}(hstruct drm_event *eh](j)}(hjh]hstruct}(hj۝hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjםubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjםubh)}(hhh]j)}(h drm_eventh]h drm_event}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj reftypej reftargetjmodnameN classnameNjj)}j]jĜc.drm_event_reserve_initasbuh1hhjםubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjםubj)}(hjh]h*}(hj%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjםubj)}(hj-h]he}(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjםubeh}(h]h ]h"]h$]h&]noemphjAjBuh1j1hjubeh}(h]h ]h"]h$]h&]jAjBuh1j+hjIhhhj[hMubeh}(h]h ]h"]h$]h&]jAjBjuh1jjjhjEhhhj[hMubah}(h]j@ah ](j j!eh"]h$]h&]j%j&)j'huh1jhj[hMhjBhhubj))}(hhh]h)}(h)init a DRM event and reserve space for ith]h)init a DRM event and reserve space for it}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chMhjXhhubah}(h]h ]h"]h$]h&]uh1j(hjBhhhj[hMubeh}(h]h ](j functioneh"]h$]h&]jIj jJjsjKjsjLjMjNuh1jhhhjmhNhNubjP)}(hX**Parameters** ``struct drm_device *dev`` DRM device ``struct drm_file *file_priv`` DRM file private data ``struct drm_pending_event *p`` tracking structure for the pending event ``struct drm_event *e`` actual event data to deliver to userspace **Description** This function prepares the passed in event for eventual delivery. If the event doesn't get delivered (because the IOCTL fails later on, before queuing up anything) then the even must be cancelled and freed using drm_event_cancel_free(). Successfully initialized events should be sent out using drm_send_event() or drm_send_event_locked() to signal completion of the asynchronous event to userspace. If callers embedded **p** into a larger structure it must be allocated with kmalloc and **p** must be the first member element. Callers which already hold :c:type:`drm_device.event_lock ` should use drm_event_reserve_init_locked() instead. **Return** 0 on success or a negative error code on failure.h](h)}(h**Parameters**h]jZ)}(hj}h]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj{ubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chMhjwubj)}(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.chMhjubj)}(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&]uh1jhjhMhjubj)}(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}(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)}(hDRM file private datah]hDRM file private data}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjϞubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(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&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chMhjubj)}(hhh]h)}(h(tracking structure for the pending eventh]h(tracking structure for the pending event}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj#hMhj$ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj#hMhjubj)}(hB``struct drm_event *e`` actual event data to deliver to userspace h](j)}(h``struct drm_event *e``h]j)}(hjGh]hstruct drm_event *e}(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)}(h)actual event data to deliver to userspaceh]h)actual event data to deliver to userspace}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj\hMhj]ubah}(h]h ]h"]h$]h&]uh1jhjAubeh}(h]h ]h"]h$]h&]uh1jhj\hMhjubeh}(h]h ]h"]h$]h&]uh1jhjwubh)}(h**Description**h]jZ)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chMhjwubh)}(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.chMhjwubh)}(hIf callers embedded **p** into a larger structure it must be allocated with kmalloc and **p** must be the first member element.h](hIf callers embedded }(hjhhhNhNubjZ)}(h**p**h]hp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubh? into a larger structure it must be allocated with kmalloc and }(hjhhhNhNubjZ)}(h**p**h]hp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubh" must be the first member element.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chMhjwubh)}(h{Callers which already hold :c:type:`drm_device.event_lock ` should use drm_event_reserve_init_locked() instead.h](hCallers which already hold }(hjڟhhhNhNubh)}(h,:c:type:`drm_device.event_lock `h]j)}(hjh]hdrm_device.event_lock}(hjhhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjjj drm_deviceuh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chMhjڟubh4 should use drm_event_reserve_init_locked() instead.}(hjڟhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMhjwubh)}(h **Return**h]jZ)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj ubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chMhjwubh)}(h10 on success or a negative error code on failure.h]h10 on success 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.chMhjwubeh}(h]h ] kernelindentah"]h$]h&]uh1jOhjmhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j"drm_event_cancel_free (C function)c.drm_event_cancel_freehNtauh1jhjmhhhNhNubj)}(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}(hjShhhNhNubah}(h]h ]j%)ah"]h$]h&]uh1j)hjOhhh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chMubj)}(h h]h }(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOhhhjahMubj)}(hdrm_event_cancel_freeh]j)}(hdrm_event_cancel_freeh]hdrm_event_cancel_free}(hjthhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjpubah}(h]h ](jjeh"]h$]h&]jAjBuh1jhjOhhhjahMubj,)}(h5(struct drm_device *dev, struct drm_pending_event *p)h](j2)}(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 classnameNjj)}j]j)}jjvsbc.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)}(hdevh]hdev}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjAjBuh1j1hjubj2)}(hstruct drm_pending_event *ph](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hdrm_pending_eventh]hdrm_pending_event}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj reftypej reftargetj"modnameN classnameNjj)}j]jʠc.drm_event_cancel_freeasbuh1hhjubj)}(h h]h }(hj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]hp}(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjAjBuh1j1hjubeh}(h]h ]h"]h$]h&]jAjBuh1j+hjOhhhjahMubeh}(h]h ]h"]h$]h&]jAjBjuh1jjjhjKhhhjahMubah}(h]jFah ](j j!eh"]h$]h&]j%j&)j'huh1jhjahMhjHhhubj))}(hhh]h)}(h&free a DRM event and release its spaceh]h&free a DRM event and release its space}(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(hjHhhhjahMubeh}(h]h ](j functioneh"]h$]h&]jIj jJjjKjjLjMjNuh1jhhhjmhNhNubjP)}(hXs**Parameters** ``struct drm_device *dev`` DRM device ``struct drm_pending_event *p`` tracking structure for the pending event **Description** This function frees the event **p** initialized with drm_event_reserve_init() and releases any allocated space. It is used to cancel an event when the nonblocking operation could not be submitted and needed to be aborted.h](h)}(h**Parameters**h]jZ)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chMhjubj)}(hhh](j)}(h&``struct drm_device *dev`` DRM device h](j)}(h``struct drm_device *dev``h]j)}(hjáh]hstruct drm_device *dev}(hjšhhhNhNubah}(h]h ]h"]h$]h&]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&]uh1hhjءhMhj١ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjءhMhjubj)}(hI``struct drm_pending_event *p`` tracking structure for the pending event h](j)}(h``struct drm_pending_event *p``h]j)}(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&]uh1jhjhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]jZ)}(hj7h]h Description}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj5ubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chMhjubh)}(hThis function frees the event **p** initialized with drm_event_reserve_init() and releases any allocated space. It is used to cancel an event when the nonblocking operation could not be submitted and needed to be aborted.h](hThis function frees the event }(hjMhhhNhNubjZ)}(h**p**h]hp}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjMubh 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.}(hjMhhhNhNubeh}(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&]uh1jOhjmhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j,drm_send_event_timestamp_locked (C function)!c.drm_send_event_timestamp_lockedhNtauh1jhjmhhhNhNubj)}(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 }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhM ubj)}(hdrm_send_event_timestamp_lockedh]j)}(hdrm_send_event_timestamp_lockedh]hdrm_send_event_timestamp_locked}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jAjBuh1jhjhhhjhM ubj,)}(hH(struct drm_device *dev, struct drm_pending_event *e, ktime_t timestamp)h](j2)}(hstruct drm_device *devh](j)}(hjh]hstruct}(hjˢhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjǢubj)}(h h]h }(hjآhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjǢubh)}(hhh]j)}(h drm_deviceh]h drm_device}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj reftypej reftargetjmodnameN classnameNjj)}j]j)}jjsb!c.drm_send_event_timestamp_lockedasbuh1hhjǢubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjǢubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjǢubj)}(hdevh]hdev}(hj$hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjǢubeh}(h]h ]h"]h$]h&]noemphjAjBuh1j1hjâubj2)}(hstruct drm_pending_event *eh](j)}(hjh]hstruct}(hj=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9ubj)}(h h]h }(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9ubh)}(hhh]j)}(hdrm_pending_eventh]hdrm_pending_event}(hj[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjXubah}(h]h ]h"]h$]h&] refdomainj reftypej reftargetj]modnameN classnameNjj)}j]j!c.drm_send_event_timestamp_lockedasbuh1hhj9ubj)}(h h]h }(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9ubj)}(hj-h]he}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9ubeh}(h]h ]h"]h$]h&]noemphjAjBuh1j1hjâubj2)}(hktime_t timestamph](h)}(hhh]j)}(hktime_th]hktime_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj reftypej reftargetjmodnameN classnameNjj)}j]j!c.drm_send_event_timestamp_lockedasbuh1hhjubj)}(h h]h }(hjͣhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h timestamph]h timestamp}(hjۣhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjAjBuh1j1hjâubeh}(h]h ]h"]h$]h&]jAjBuh1j+hjhhhjhM ubeh}(h]h ]h"]h$]h&]jAjBjuh1jjjhjhhhjhM ubah}(h]jah ](j j!eh"]h$]h&]j%j&)j'huh1jhjhM 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(hjhhhjhM ubeh}(h]h ](j functioneh"]h$]h&]jIj jJjjKjjLjMjNuh1jhhhjmhNhNubjP)}(hX**Parameters** ``struct drm_device *dev`` DRM device ``struct drm_pending_event *e`` DRM event to deliver ``ktime_t timestamp`` timestamp to set for the fence event in kernel's CLOCK_MONOTONIC time domain **Description** This function sends the event **e**, initialized with drm_event_reserve_init(), to its associated userspace DRM file. Callers must already hold :c:type:`drm_device.event_lock `. Note that the core will take care of unlinking and disarming events when the corresponding DRM file is closed. Drivers need not worry about whether the DRM file for this event still exists and can call this function upon completion of the asynchronous work unconditionally.h](h)}(h**Parameters**h]jZ)}(hj'h]h Parameters}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj%ubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chMhj!ubj)}(hhh](j)}(h&``struct drm_device *dev`` DRM device h](j)}(h``struct drm_device *dev``h]j)}(hjFh]hstruct drm_device *dev}(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.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)}(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&]uh1jhj}ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chM hjyubj)}(hhh]h)}(hDRM event to deliverh]hDRM event to deliver}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM hjubah}(h]h ]h"]h$]h&]uh1jhjyubeh}(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)}(hjh]hktime_t timestamp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chMhjubj)}(hhh]h)}(hLtimestamp to set for the fence event in kernel's CLOCK_MONOTONIC time domainh]hNtimestamp to set for the fence event in kernel’s CLOCK_MONOTONIC time domain}(hjѤhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chM hjΤubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjͤhMhj=ubeh}(h]h ]h"]h$]h&]uh1jhj!ubh)}(h**Description**h]jZ)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chMhj!ubh)}(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 }(hj hhhNhNubjZ)}(h**e**h]he}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj ubhm, initialized with drm_event_reserve_init(), to its associated userspace DRM file. Callers must already hold }(hj hhhNhNubh)}(h,:c:type:`drm_device.event_lock `h]j)}(hj&h]hdrm_device.event_lock}(hj(hhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhj$ubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjjj drm_deviceuh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chMhj ubh.}(hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjChMhj!ubh)}(hXNote that the core will take care of unlinking and disarming events when the corresponding DRM file is closed. Drivers need not worry about whether the DRM file for this event still exists and can call this function upon completion of the asynchronous work unconditionally.h]hXNote that the core will take care of unlinking and disarming events when the corresponding DRM file is closed. Drivers need not worry about whether the DRM file for this event still exists and can call this function upon completion of the asynchronous work unconditionally.}(hjNhhhNhNubah}(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&]uh1jOhjmhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j"drm_send_event_locked (C function)c.drm_send_event_lockedhNtauh1jhjmhhhNhNubj)}(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}(hj}hhhNhNubah}(h]h ]j%)ah"]h$]h&]uh1j)hjyhhh]/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&]uh1jhjyhhhjhM!ubj)}(hdrm_send_event_lockedh]j)}(hdrm_send_event_lockedh]hdrm_send_event_locked}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jAjBuh1jhjyhhhjhM!ubj,)}(h5(struct drm_device *dev, struct drm_pending_event *e)h](j2)}(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}(hjإhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjեubah}(h]h ]h"]h$]h&] refdomainj reftypej reftargetjڥmodnameN classnameNjj)}j]j)}jjsbc.drm_send_event_lockedasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hdevh]hdev}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjAjBuh1j1hjubj2)}(hstruct drm_pending_event *eh](j)}(hjh]hstruct}(hj,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj(ubj)}(h h]h }(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj(ubh)}(hhh]j)}(hdrm_pending_eventh]hdrm_pending_event}(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGubah}(h]h ]h"]h$]h&] refdomainj reftypej reftargetjLmodnameN classnameNjj)}j]jc.drm_send_event_lockedasbuh1hhj(ubj)}(h h]h }(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj(ubj)}(hjh]h*}(hjvhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj(ubj)}(hj-h]he}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj(ubeh}(h]h ]h"]h$]h&]noemphjAjBuh1j1hjubeh}(h]h ]h"]h$]h&]jAjBuh1j+hjyhhhjhM!ubeh}(h]h ]h"]h$]h&]jAjBjuh1jjjhjuhhhjhM!ubah}(h]jpah ](j j!eh"]h$]h&]j%j&)j'huh1jhjhM!hjrhhubj))}(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(hjrhhhjhM!ubeh}(h]h ](j functioneh"]h$]h&]jIj jJjĦjKjĦjLjMjNuh1jhhhjmhNhNubjP)}(hX**Parameters** ``struct drm_device *dev`` DRM device ``struct drm_pending_event *e`` DRM event to deliver **Description** This function sends the event **e**, initialized with drm_event_reserve_init(), to its associated userspace DRM file. Callers must already hold :c:type:`drm_device.event_lock `, see drm_send_event() for the unlocked version. Note that the core will take care of unlinking and disarming events when the corresponding DRM file is closed. Drivers need not worry about whether the DRM file for this event still exists and can call this function upon completion of the asynchronous work unconditionally.h](h)}(h**Parameters**h]jZ)}(hjΦh]h Parameters}(hjЦhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj̦ubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chM%hjȦubj)}(hhh](j)}(h&``struct drm_device *dev`` DRM device h](j)}(h``struct drm_device *dev``h]j)}(hjh]hstruct drm_device *dev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chM"hjubj)}(hhh]h)}(h DRM deviceh]h DRM device}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM"hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM"hjubj)}(h5``struct drm_pending_event *e`` DRM event to deliver h](j)}(h``struct drm_pending_event *e``h]j)}(hj&h]hstruct drm_pending_event *e}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj$ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chM#hj ubj)}(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&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj;hM#hjubeh}(h]h ]h"]h$]h&]uh1jhjȦubh)}(h**Description**h]jZ)}(hjah]h Description}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj_ubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chM%hjȦubh)}(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 }(hjwhhhNhNubjZ)}(h**e**h]he}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjwubhm, initialized with drm_event_reserve_init(), to its associated userspace DRM file. Callers must already hold }(hjwhhhNhNubh)}(h,:c:type:`drm_device.event_lock `h]j)}(hjh]hdrm_device.event_lock}(hjhhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjjj drm_deviceuh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chM$hjwubh0, see drm_send_event() for the unlocked version.}(hjwhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhM$hjȦubh)}(hXNote that the core will take care of unlinking and disarming events when the corresponding DRM file is closed. Drivers need not worry about whether the DRM file for this event still exists and can call this function upon completion of the asynchronous work unconditionally.h]hXNote that the core will take care of unlinking and disarming events when the corresponding DRM file is closed. Drivers need not worry about whether the DRM file for this event still exists and can call this function upon completion of the asynchronous work unconditionally.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chM(hjȦubeh}(h]h ] kernelindentah"]h$]h&]uh1jOhjmhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jdrm_send_event (C function)c.drm_send_eventhNtauh1jhjmhhhNhNubj)}(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}(hjhhhNhNubah}(h]h ]j%)ah"]h$]h&]uh1j)hjhhh]/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&]uh1jhjhhhjhM5ubj)}(hdrm_send_eventh]j)}(hdrm_send_eventh]hdrm_send_event}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jAjBuh1jhjhhhjhM5ubj,)}(h5(struct drm_device *dev, struct drm_pending_event *e)h](j2)}(hstruct drm_device *devh](j)}(hjh]hstruct}(hj'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj#ubj)}(h h]h }(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj#ubh)}(hhh]j)}(h drm_deviceh]h drm_device}(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBubah}(h]h ]h"]h$]h&] refdomainj reftypej reftargetjGmodnameN classnameNjj)}j]j)}jj sbc.drm_send_eventasbuh1hhj#ubj)}(h h]h }(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj#ubj)}(hjh]h*}(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj#ubj)}(hdevh]hdev}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj#ubeh}(h]h ]h"]h$]h&]noemphjAjBuh1j1hjubj2)}(hstruct drm_pending_event *eh](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hdrm_pending_eventh]hdrm_pending_event}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj reftypej reftargetjmodnameN classnameNjj)}j]jac.drm_send_eventasbuh1hhjubj)}(h h]h }(hjըhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hj-h]he}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjAjBuh1j1hjubeh}(h]h ]h"]h$]h&]jAjBuh1j+hjhhhjhM5ubeh}(h]h ]h"]h$]h&]jAjBjuh1jjjhjhhhjhM5ubah}(h]jݧah ](j j!eh"]h$]h&]j%j&)j'huh1jhjhM5hjߧhhubj))}(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(hjߧhhhjhM5ubeh}(h]h ](j functioneh"]h$]h&]jIj jJj1jKj1jLjMjNuh1jhhhjmhNhNubjP)}(hX**Parameters** ``struct drm_device *dev`` DRM device ``struct drm_pending_event *e`` DRM event to deliver **Description** This function sends the event **e**, initialized with drm_event_reserve_init(), to its associated userspace DRM file. This function acquires :c:type:`drm_device.event_lock `, see drm_send_event_locked() for callers which already hold this lock. Note that the core will take care of unlinking and disarming events when the corresponding DRM file is closed. Drivers need not worry about whether the DRM file for this event still exists and can call this function upon completion of the asynchronous work unconditionally.h](h)}(h**Parameters**h]jZ)}(hj;h]h Parameters}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj9ubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chM9hj5ubj)}(hhh](j)}(h&``struct drm_device *dev`` DRM device h](j)}(h``struct drm_device *dev``h]j)}(hjZh]hstruct drm_device *dev}(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.chM6hjTubj)}(hhh]h)}(h DRM deviceh]h DRM device}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1hhjohM6hjpubah}(h]h ]h"]h$]h&]uh1jhjTubeh}(h]h ]h"]h$]h&]uh1jhjohM6hjQubj)}(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.chM7hjubj)}(hhh]h)}(hDRM event to deliverh]hDRM event to deliver}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM7hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM7hjQubeh}(h]h ]h"]h$]h&]uh1jhj5ubh)}(h**Description**h]jZ)}(hjΩh]h Description}(hjЩhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj̩ubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chM9hj5ubh)}(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 }(hjhhhNhNubjZ)}(h**e**h]he}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubhj, initialized with drm_event_reserve_init(), to its associated userspace DRM file. This function acquires }(hjhhhNhNubh)}(h,:c:type:`drm_device.event_lock `h]j)}(hjh]hdrm_device.event_lock}(hjhhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjjj drm_deviceuh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chM8hjubhG, see drm_send_event_locked() for callers which already hold this lock.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhM8hj5ubh)}(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.chM=hj5ubeh}(h]h ] kernelindentah"]h$]h&]uh1jOhjmhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j#drm_print_memory_stats (C function)c.drm_print_memory_statshNtauh1jhjmhhhNhNubj)}(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}(hjWhhhNhNubah}(h]h ]j%)ah"]h$]h&]uh1j)hjShhh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chMlubj)}(h h]h }(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjShhhjehMlubj)}(hdrm_print_memory_statsh]j)}(hdrm_print_memory_statsh]hdrm_print_memory_stats}(hjxhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjtubah}(h]h ](jjeh"]h$]h&]jAjBuh1jhjShhhjehMlubj,)}(h~(struct drm_printer *p, const struct drm_memory_stats *stats, enum drm_gem_object_status supported_status, const char *region)h](j2)}(hstruct drm_printer *ph](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(h drm_printerh]h drm_printer}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj reftypej reftargetjmodnameN classnameNjj)}j]j)}jjzsbc.drm_print_memory_statsasbuh1hhjubj)}(h h]h }(hjҪhhhNhNubah}(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&]noemphjAjBuh1j1hjubj2)}(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}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hj-hhhNhNubah}(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 classnameNjj)}j]jΪc.drm_print_memory_statsasbuh1hhjubj)}(h h]h }(hj\hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hstatsh]hstats}(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjAjBuh1j1hjubj2)}(h+enum drm_gem_object_status supported_statush](j)}(hjAh]henum}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hdrm_gem_object_statush]hdrm_gem_object_status}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj reftypej reftargetjmodnameN classnameNjj)}j]jΪc.drm_print_memory_statsasbuh1hhjubj)}(h h]h }(hj̫hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hsupported_statush]hsupported_status}(hjګhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjAjBuh1j1hjubj2)}(hconst char *regionh](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*}(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hregionh]hregion}(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjAjBuh1j1hjubeh}(h]h ]h"]h$]h&]jAjBuh1j+hjShhhjehMlubeh}(h]h ]h"]h$]h&]jAjBjuh1jjjhjOhhhjehMlubah}(h]jJah ](j j!eh"]h$]h&]j%j&)j'huh1jhjehMlhjLhhubj))}(hhh]h)}(hA helper to print memory statsh]hA helper to print memory stats}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chMlhj^hhubah}(h]h ]h"]h$]h&]uh1j(hjLhhhjehMlubeh}(h]h ](j functioneh"]h$]h&]jIj jJjyjKjyjLjMjNuh1jhhhjmhNhNubjP)}(hX**Parameters** ``struct drm_printer *p`` The printer to print output to ``const struct drm_memory_stats *stats`` The collected memory stats ``enum drm_gem_object_status supported_status`` Bitmask of optional stats which are available ``const char *region`` The memory regionh](h)}(h**Parameters**h]jZ)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chMphj}ubj)}(hhh](j)}(h9``struct drm_printer *p`` The printer to print output to h](j)}(h``struct drm_printer *p``h]j)}(hjh]hstruct drm_printer *p}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chMmhjubj)}(hhh]h)}(hThe printer to print output toh]hThe printer to print output to}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMmhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMmhjubj)}(hD``const struct drm_memory_stats *stats`` The collected memory stats h](j)}(h(``const struct drm_memory_stats *stats``h]j)}(hj۬h]h$const struct drm_memory_stats *stats}(hjݬhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj٬ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chMnhjլubj)}(hhh]h)}(hThe collected memory statsh]hThe collected memory stats}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMnhjubah}(h]h ]h"]h$]h&]uh1jhjլubeh}(h]h ]h"]h$]h&]uh1jhjhMnhjubj)}(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}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj)hMohj*ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj)hMohjubj)}(h(``const char *region`` The memory regionh](j)}(h``const char *region``h]j)}(hjMh]hconst char *region}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjKubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chMqhjGubj)}(hhh]h)}(hThe memory regionh]hThe memory region}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chMphjcubah}(h]h ]h"]h$]h&]uh1jhjGubeh}(h]h ]h"]h$]h&]uh1jhjbhMqhjubeh}(h]h ]h"]h$]h&]uh1jhj}ubeh}(h]h ] kernelindentah"]h$]h&]uh1jOhjmhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j"drm_show_memory_stats (C function)c.drm_show_memory_statshNtauh1jhjmhhhNhNubj)}(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}(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)}(hdrm_show_memory_statsh]j)}(hdrm_show_memory_statsh]hdrm_show_memory_stats}(hjȭhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjĭubah}(h]h ](jjeh"]h$]h&]jAjBuh1jhjhhhjhMubj,)}(h.(struct drm_printer *p, struct drm_file *file)h](j2)}(hstruct drm_printer *ph](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(h drm_printerh]h drm_printer}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj reftypej reftargetjmodnameN classnameNjj)}j]j)}jjʭsbc.drm_show_memory_statsasbuh1hhjubj)}(h h]h }(hj"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]hp}(hj=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjAjBuh1j1hjܭubj2)}(hstruct drm_file *fileh](j)}(hjh]hstruct}(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQubj)}(h h]h }(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQubh)}(hhh]j)}(hdrm_fileh]hdrm_file}(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjpubah}(h]h ]h"]h$]h&] refdomainj reftypej reftargetjumodnameN classnameNjj)}j]jc.drm_show_memory_statsasbuh1hhjQubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQubj)}(hfileh]hfile}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQubeh}(h]h ]h"]h$]h&]noemphjAjBuh1j1hjܭubeh}(h]h ]h"]h$]h&]jAjBuh1j+hjhhhjhMubeh}(h]h ]h"]h$]h&]jAjBjuh1jjjhjhhhjhMubah}(h]jah ](j j!eh"]h$]h&]j%j&)j'huh1jhjhMhjhhubj))}(hhh]h)}(h7Helper to collect and show standard fdinfo memory statsh]h7Helper to collect and show standard fdinfo memory stats}(hj֮hhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chMhjӮhhubah}(h]h ]h"]h$]h&]uh1j(hjhhhjhMubeh}(h]h ](j functioneh"]h$]h&]jIj jJjjKjjLjMjNuh1jhhhjmhNhNubjP)}(h**Parameters** ``struct drm_printer *p`` the printer to print output to ``struct drm_file *file`` the DRM file **Description** Helper to iterate over GEM objects with a handle allocated in the specified file.h](h)}(h**Parameters**h]jZ)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chMhjubj)}(hhh](j)}(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}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj,hMhj-ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj,hMhjubj)}(h'``struct drm_file *file`` the DRM file h](j)}(h``struct drm_file *file``h]j)}(hjPh]hstruct drm_file *file}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjNubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chMhjJubj)}(hhh]h)}(h the DRM fileh]h the DRM file}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1hhjehMhjfubah}(h]h ]h"]h$]h&]uh1jhjJubeh}(h]h ]h"]h$]h&]uh1jhjehMhjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]jZ)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chMhjubh)}(hQHelper to iterate over GEM objects with a handle allocated in the specified file.h]hQHelper to iterate over GEM objects with a handle allocated in the specified file.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jOhjmhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jdrm_show_fdinfo (C function)c.drm_show_fdinfohNtauh1jhjmhhhNhNubj)}(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)hj̯hhh]/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&]uh1jhj̯hhhjޯhMubj)}(hdrm_show_fdinfoh]j)}(hdrm_show_fdinfoh]hdrm_show_fdinfo}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jAjBuh1jhj̯hhhjޯhMubj,)}(h$(struct seq_file *m, struct file *f)h](j2)}(hstruct seq_file *mh](j)}(hjh]hstruct}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubh)}(hhh]j)}(hseq_fileh]hseq_file}(hj+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj(ubah}(h]h ]h"]h$]h&] refdomainj reftypej reftargetj-modnameN classnameNjj)}j]j)}jjsbc.drm_show_fdinfoasbuh1hhj ubj)}(h h]h }(hjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(hjh]h*}(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(hmh]hm}(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphjAjBuh1j1hjubj2)}(hstruct file *fh](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj{ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj{ubh)}(hhh]j)}(hfileh]hfile}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj reftypej reftargetjmodnameN classnameNjj)}j]jGc.drm_show_fdinfoasbuh1hhj{ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj{ubj)}(hjh]h*}(hjɰhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj{ubj)}(hfh]hf}(hjְhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj{ubeh}(h]h ]h"]h$]h&]noemphjAjBuh1j1hjubeh}(h]h ]h"]h$]h&]jAjBuh1j+hj̯hhhjޯhMubeh}(h]h ]h"]h$]h&]jAjBjuh1jjjhjȯhhhjޯhMubah}(h]jïah ](j j!eh"]h$]h&]j%j&)j'huh1jhjޯhMhjůhhubj))}(hhh]h)}(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(hjůhhhjޯhMubeh}(h]h ](j functioneh"]h$]h&]jIj jJjjKjjLjMjNuh1jhhhjmhNhNubjP)}(hXf**Parameters** ``struct seq_file *m`` output stream ``struct file *f`` the device file instance **Description** Helper to implement fdinfo, for userspace to query usage stats, etc, of a process using the GPU. See also :c:type:`drm_driver.show_fdinfo `. For text output format description please see Documentation/gpu/drm-usage-stats.rsth](h)}(h**Parameters**h]jZ)}(hj"h]h Parameters}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj ubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chMhjubj)}(hhh](j)}(h%``struct seq_file *m`` output stream h](j)}(h``struct seq_file *m``h]j)}(hjAh]hstruct seq_file *m}(hjChhhNhNubah}(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}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjVhMhjWubah}(h]h ]h"]h$]h&]uh1jhj;ubeh}(h]h ]h"]h$]h&]uh1jhjVhMhj8ubj)}(h,``struct file *f`` the device file instance h](j)}(h``struct file *f``h]j)}(hjzh]hstruct file *f}(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)}(hthe device file instanceh]hthe device file instance}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjtubeh}(h]h ]h"]h$]h&]uh1jhjhMhj8ubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]jZ)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.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 }(hj˱hhhNhNubh)}(h-:c:type:`drm_driver.show_fdinfo `h]j)}(hjձh]hdrm_driver.show_fdinfo}(hjױhhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjӱubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjjj drm_driveruh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chMhj˱ubh.}(hj˱hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMhjubh)}(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&]uh1jOhjmhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jdrm_file_err (C function)c.drm_file_errhNtauh1jhjmhhhNhNubj)}(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}(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 }(hj;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj(hhhj:hMubj)}(h drm_file_errh]j)}(h drm_file_errh]h drm_file_err}(hjMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjIubah}(h]h ](jjeh"]h$]h&]jAjBuh1jhj(hhhj:hMubj,)}(h2(struct drm_file *file_priv, const char *fmt, ...)h](j2)}(hstruct drm_file *file_privh](j)}(hjh]hstruct}(hjihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeubj)}(h h]h }(hjvhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeubh)}(hhh]j)}(hdrm_fileh]hdrm_file}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj reftypej reftargetjmodnameN classnameNjj)}j]j)}jjOsbc.drm_file_errasbuh1hhjeubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeubj)}(h file_privh]h file_priv}(hj²hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeubeh}(h]h ]h"]h$]h&]noemphjAjBuh1j1hjaubj2)}(hconst char *fmth](j)}(hj*h]hconst}(hj۲hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjײubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjײubj))}(hcharh]hchar}(hjhhhNhNubah}(h]h ]j%)ah"]h$]h&]uh1j)hjײubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjײubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjײubj)}(hfmth]hfmt}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjײubeh}(h]h ]h"]h$]h&]noemphjAjBuh1j1hjaubj2)}(h...h]j)}(h...h]h...}(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4ubah}(h]h ]h"]h$]h&]noemphjAjBuh1j1hjaubeh}(h]h ]h"]h$]h&]jAjBuh1j+hj(hhhj:hMubeh}(h]h ]h"]h$]h&]jAjBjuh1jjjhj$hhhj:hMubah}(h]jah ](j j!eh"]h$]h&]j%j&)j'huh1jhj:hMhj!hhubj))}(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}(hjbhhhNhNubah}(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&]jIj jJjzjKjzjLjMjNuh1jhhhjmhNhNubjP)}(hX.**Parameters** ``struct drm_file *file_priv`` context of interest for process name and pid ``const char *fmt`` printf() like format string ``...`` variable arguments **Description** Helper function for clients which needs to log process details such as name and pid etc along with user logs.h](h)}(h**Parameters**h]jZ)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chMhj~ubj)}(hhh](j)}(hL``struct drm_file *file_priv`` context of interest for process name and pid h](j)}(h``struct drm_file *file_priv``h]j)}(hjh]hstruct drm_file *file_priv}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chMhjubj)}(hhh]h)}(h,context of interest for process name and pidh]h,context of interest for process name and pid}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h0``const char *fmt`` printf() like format string h](j)}(h``const char *fmt``h]j)}(hjܳh]hconst char *fmt}(hj޳hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjڳubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chMhjֳubj)}(hhh]h)}(hprintf() like format stringh]hprintf() like format string}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjֳubeh}(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&]uh1jh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chKhjubj)}(hhh]h)}(hvariable argumentsh]hvariable arguments}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj*hKhj+ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj*hKhjubeh}(h]h ]h"]h$]h&]uh1jhj~ubh)}(h**Description**h]jZ)}(hjPh]h Description}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.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.}(hjfhhhNhNubah}(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&]uh1jOhjmhhhNhNubeh}(h](file-operationsjmeh ]h"](file operationsdrm_driver_fopseh$]h&]uh1hhjmhhhhhKexpect_referenced_by_name}jjmsexpect_referenced_by_id}jmjmsubeh}(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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhKubh)}(h}A simple wrapper for dev_printk(), seq_printf(), etc. Allows same debug code to be used for both debugfs and printk logging.h]h}A simple wrapper for dev_printk(), seq_printf(), etc. Allows same debug code to be used for both debugfs and printk logging.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:161: ./include/drm/drm_print.hhK-hjhhubh)}(h For example::h]h For example:}(hj´hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:161: ./include/drm/drm_print.hhK0hjhhubj2)}(hXvoid log_some_info(struct drm_printer *p) { drm_printf(p, "foo=%d\n", foo); drm_printf(p, "bar=%d\n", bar); } #ifdef CONFIG_DEBUG_FS void debugfs_show(struct seq_file *f) { struct drm_printer p = drm_seq_file_printer(f); log_some_info(&p); } #endif void some_other_function(...) { struct drm_printer p = drm_info_printer(drm->dev); log_some_info(&p); }h]hXvoid log_some_info(struct drm_printer *p) { drm_printf(p, "foo=%d\n", foo); drm_printf(p, "bar=%d\n", bar); } #ifdef CONFIG_DEBUG_FS void debugfs_show(struct seq_file *f) { struct drm_printer p = drm_seq_file_printer(f); log_some_info(&p); } #endif void some_other_function(...) { struct drm_printer p = drm_info_printer(drm->dev); log_some_info(&p); }}hjѴsbah}(h]h ]h"]h$]h&]jAjBuh1j1hZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:161: ./include/drm/drm_print.hhK2hjhhubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jdrm_debug_category (C enum)c.drm_debug_categoryhNtauh1jhjhhhNhNubj)}(hhh](j)}(hdrm_debug_categoryh]j)}(henum drm_debug_categoryh](j)}(hjAh]henum}(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)}(hjh]hdrm_debug_category}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jAjBuh1jhjhhhjhKubeh}(h]h ]h"]h$]h&]jAjBjuh1jjjhjhhhjhKubah}(h]jah ](j j!eh"]h$]h&]j%j&)j'huh1jhjhKhjhhubj))}(hhh]h)}(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.hhKJhj8hhubah}(h]h ]h"]h$]h&]uh1j(hjhhhjhKubeh}(h]h ](j enumeh"]h$]h&]jIj jJjSjKjSjLjMjNuh1jhhhjhNhNubjP)}(hXd**Constants** ``DRM_UT_CORE`` Used in the generic drm code: drm_ioctl.c, drm_mm.c, drm_memory.c, ... ``DRM_UT_DRIVER`` Used in the vendor specific part of the driver: i915, radeon, ... macro. ``DRM_UT_KMS`` Used in the modesetting code. ``DRM_UT_PRIME`` Used in the prime code. ``DRM_UT_ATOMIC`` Used in the atomic code. ``DRM_UT_VBL`` Used for verbose debug message in the vblank code. ``DRM_UT_STATE`` Used for verbose atomic state debugging. ``DRM_UT_LEASE`` Used in the lease code. ``DRM_UT_DP`` Used in the DP code. ``DRM_UT_DRMRES`` Used in the drm managed resources code.h](h)}(h **Constants**h]jZ)}(hj]h]h Constants}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj[ubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhKNhjWubj)}(hhh](j)}(hW``DRM_UT_CORE`` Used in the generic drm code: drm_ioctl.c, drm_mm.c, drm_memory.c, ... h](j)}(h``DRM_UT_CORE``h]j)}(hj|h]h DRM_UT_CORE}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjzubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhKRhjvubj)}(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, ...}(hjhhhNhNubah}(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&]uh1jhjvubeh}(h]h ]h"]h$]h&]uh1jhjhKRhjsubj)}(h[``DRM_UT_DRIVER`` Used in the vendor specific part of the driver: i915, radeon, ... macro. h](j)}(h``DRM_UT_DRIVER``h]j)}(hjh]h DRM_UT_DRIVER}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhKVhjubj)}(hhh]h)}(hHUsed in the vendor specific part of the driver: i915, radeon, ... macro.h]hHUsed in the vendor specific part of the driver: i915, radeon, ... macro.}(hjϵhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhKUhj̵ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj˵hKVhjsubj)}(h-``DRM_UT_KMS`` Used in the modesetting code. h](j)}(h``DRM_UT_KMS``h]j)}(hjh]h DRM_UT_KMS}(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.hhKYhjubj)}(hhh]h)}(hUsed in the modesetting code.h]hUsed in the modesetting code.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKYhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKYhjsubj)}(h)``DRM_UT_PRIME`` Used in the prime code. h](j)}(h``DRM_UT_PRIME``h]j)}(hj)h]h DRM_UT_PRIME}(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.hhK\hj#ubj)}(hhh]h)}(hUsed in the prime code.h]hUsed in the prime code.}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj>hK\hj?ubah}(h]h ]h"]h$]h&]uh1jhj#ubeh}(h]h ]h"]h$]h&]uh1jhj>hK\hjsubj)}(h+``DRM_UT_ATOMIC`` Used in the atomic code. h](j)}(h``DRM_UT_ATOMIC``h]j)}(hjbh]h DRM_UT_ATOMIC}(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.hhK_hj\ubj)}(hhh]h)}(hUsed in the atomic code.h]hUsed in the atomic code.}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjwhK_hjxubah}(h]h ]h"]h$]h&]uh1jhj\ubeh}(h]h ]h"]h$]h&]uh1jhjwhK_hjsubj)}(hB``DRM_UT_VBL`` Used for verbose debug message in the vblank code. h](j)}(h``DRM_UT_VBL``h]j)}(hjh]h DRM_UT_VBL}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhKbhjubj)}(hhh]h)}(h2Used for verbose debug message in the vblank code.h]h2Used for verbose debug message in the vblank code.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKbhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKbhjsubj)}(h:``DRM_UT_STATE`` Used for verbose atomic state debugging. h](j)}(h``DRM_UT_STATE``h]j)}(hjԶh]h DRM_UT_STATE}(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.hhKehjζubj)}(hhh]h)}(h(Used for verbose atomic state debugging.h]h(Used for verbose atomic state debugging.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKehjubah}(h]h ]h"]h$]h&]uh1jhjζubeh}(h]h ]h"]h$]h&]uh1jhjhKehjsubj)}(h)``DRM_UT_LEASE`` Used in the lease code. h](j)}(h``DRM_UT_LEASE``h]j)}(hj h]h DRM_UT_LEASE}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhKhhjubj)}(hhh]h)}(hUsed in the lease code.h]hUsed in the lease code.}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj"hKhhj#ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj"hKhhjsubj)}(h#``DRM_UT_DP`` Used in the DP code. h](j)}(h ``DRM_UT_DP``h]j)}(hjFh]h DRM_UT_DP}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjDubah}(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.}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj[hKkhj\ubah}(h]h ]h"]h$]h&]uh1jhj@ubeh}(h]h ]h"]h$]h&]uh1jhj[hKkhjsubj)}(h9``DRM_UT_DRMRES`` Used in the drm managed resources code.h](j)}(h``DRM_UT_DRMRES``h]j)}(hjh]h DRM_UT_DRMRES}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj}ubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhKmhjyubj)}(hhh]h)}(h'Used in the drm managed resources code.h]h'Used in the drm managed resources code.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhKnhjubah}(h]h ]h"]h$]h&]uh1jhjyubeh}(h]h ]h"]h$]h&]uh1jhjhKmhjsubeh}(h]h ]h"]h$]h&]uh1jhjWubeh}(h]h ] kernelindentah"]h$]h&]uh1jOhjhhhNhNubh)}(h**Description**h]jZ)}(hj·h]h Description}(hjķhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhKphjhhubh)}(hEach of the DRM debug logging macros use a specific category, and the logging is filtered by the drm.debug module parameter. This enum specifies the values for the interface.h]hEach of the DRM debug logging macros use a specific category, and the logging is filtered by the drm.debug module parameter. This enum specifies the values for the interface.}(hjطhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhKKhjhhubh)}(hkEach DRM_DEBUG_ macro logs to DRM_UT_ category, except DRM_DEBUG() logs to DRM_UT_CORE.h]hkEach DRM_DEBUG_ macro logs to DRM_UT_ category, except DRM_DEBUG() logs to DRM_UT_CORE.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhKOhjhhubh)}(hnEnabling verbose debug messages is done through the drm.debug parameter, each category being enabled by a bit:h]hnEnabling verbose debug messages is done through the drm.debug parameter, each category being enabled by a bit:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhKRhjhhubj&)}(h- drm.debug=0x1 will enable CORE messages - drm.debug=0x2 will enable DRIVER messages - drm.debug=0x3 will enable CORE and DRIVER messages - ... - drm.debug=0x1ff will enable all messages h]jO)}(hhh](jO)}(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.hhKUhj ubah}(h]h ]h"]h$]h&]uh1jOhj ubjO)}(h)drm.debug=0x2 will enable DRIVER messagesh]h)}(hj&h]h)drm.debug=0x2 will enable DRIVER messages}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhKVhj$ubah}(h]h ]h"]h$]h&]uh1jOhj ubjO)}(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&]uh1jOhj ubjO)}(h...h]h)}(hjVh]h...}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhKXhjTubah}(h]h ]h"]h$]h&]uh1jOhj ubjO)}(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}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhKYhjlubah}(h]h ]h"]h$]h&]uh1jOhj ubeh}(h]h ]h"]h$]h&]jPjPuh1jOhjhKUhjubah}(h]h ]h"]h$]h&]uh1j&hjhKUhjhhubh)}(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[hjhhubj2)}(h-# echo 0xf > /sys/module/drm/parameters/debugh]h-# echo 0xf > /sys/module/drm/parameters/debug}hjsbah}(h]h ]h"]h$]h&]jAjBuh1j1hZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhK^hjhhubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jdrm_printer (C struct) c.drm_printerhNtauh1jhjhhhNhNubj)}(hhh](j)}(h drm_printerh]j)}(hstruct drm_printerh](j)}(hjh]hstruct}(hjȸhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjĸhhhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhKcubj)}(h h]h }(hjָhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjĸhhhjոhKcubj)}(h drm_printerh]j)}(hj¸h]h drm_printer}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jAjBuh1jhjĸhhhjոhKcubeh}(h]h ]h"]h$]h&]jAjBjuh1jjjhjhhhjոhKcubah}(h]jah ](j j!eh"]h$]h&]j%j&)j'huh1jhjոhKchjhhubj))}(hhh]h)}(hdrm output "stream"h]hdrm output “stream”}(hj hhhNhNubah}(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ոhKcubeh}(h]h ](j structeh"]h$]h&]jIj jJj"jKj"jLjMjNuh1jhhhjhNhNubjP)}(h:**Definition**:: struct drm_printer { }; **Members**h](h)}(h**Definition**::h](jZ)}(h**Definition**h]h Definition}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj*ubh:}(hj*hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhKhj&ubj2)}(hstruct drm_printer { };h]hstruct drm_printer { };}hjGsbah}(h]h ]h"]h$]h&]jAjBuh1j1hZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhKhj&ubh)}(h **Members**h]jZ)}(hjXh]hMembers}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjVubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhKhj&ubeh}(h]h ] kernelindentah"]h$]h&]uh1jOhjhhhNhNubh)}(h**Description**h]jZ)}(hjwh]h Description}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjuubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhKhjhhubh)}(hDo not use struct members directly. Use drm_printer_seq_file(), drm_printer_info(), etc to initialize. And drm_printf() for output.h]hDo not use struct members directly. Use drm_printer_seq_file(), drm_printer_info(), etc to initialize. And drm_printf() for output.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhKhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jdrm_vprintf (C function) c.drm_vprintfhNtauh1jhjhhhNhNubj)}(hhh](j)}(hFvoid drm_vprintf (struct drm_printer *p, const char *fmt, va_list *va)h]j)}(hEvoid drm_vprintf(struct drm_printer *p, const char *fmt, va_list *va)h](j))}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j%)ah"]h$]h&]uh1j)hjhhhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhKubj)}(h h]h }(hjĹhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjùhKubj)}(h drm_vprintfh]j)}(h drm_vprintfh]h drm_vprintf}(hjֹhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjҹubah}(h]h ](jjeh"]h$]h&]jAjBuh1jhjhhhjùhKubj,)}(h5(struct drm_printer *p, const char *fmt, va_list *va)h](j2)}(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&]uh1jhj ubah}(h]h ]h"]h$]h&] refdomainj reftypej reftargetjmodnameN classnameNjj)}j]j)}jjعsb c.drm_vprintfasbuh1hhjubj)}(h h]h }(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]hp}(hjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjAjBuh1j1hjubj2)}(hconst char *fmth](j)}(hj*h]hconst}(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj_ubj)}(h h]h }(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj_ubj))}(hcharh]hchar}(hj~hhhNhNubah}(h]h ]j%)ah"]h$]h&]uh1j)hj_ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj_ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj_ubj)}(hfmth]hfmt}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj_ubeh}(h]h ]h"]h$]h&]noemphjAjBuh1j1hjubj2)}(h va_list *vah](h)}(hhh]j)}(hva_listh]hva_list}(hjúhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj reftypej reftargetjźmodnameN classnameNjj)}j]j, c.drm_vprintfasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hvah]hva}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjAjBuh1j1hjubeh}(h]h ]h"]h$]h&]jAjBuh1j+hjhhhjùhKubeh}(h]h ]h"]h$]h&]jAjBjuh1jjjhjhhhjùhKubah}(h]jah ](j j!eh"]h$]h&]j%j&)j'huh1jhjùhKhjhhubj))}(hhh]h)}(h'print to a :c:type:`drm_printer` streamh](h print to a }(hj&hhhNhNubh)}(h:c:type:`drm_printer`h]j)}(hj0h]h drm_printer}(hj2hhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhj.ubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjj)}j]j, c.drm_vprintfasbj drm_printeruh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhKhj&ubh stream}(hj&hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhKhj#hhubah}(h]h ]h"]h$]h&]uh1j(hjhhhjùhKubeh}(h]h ](j functioneh"]h$]h&]jIj jJjgjKjgjLjMjNuh1jhhhjhNhNubjP)}(h**Parameters** ``struct drm_printer *p`` the :c:type:`drm_printer` ``const char *fmt`` format string ``va_list *va`` the va_listh](h)}(h**Parameters**h]jZ)}(hjqh]h Parameters}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjoubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhKhjkubj)}(hhh](j)}(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 }(hjhhhNhNubh)}(h:c:type:`drm_printer`h]j)}(hjh]h drm_printer}(hjhhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjjj drm_printeruh1hhjhKhjubeh}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubj)}(h"``const char *fmt`` format string h](j)}(h``const char *fmt``h]j)}(hjh]hconst char *fmt}(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 format stringh]h format string}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubj)}(h``va_list *va`` the va_listh](j)}(h``va_list *va``h]j)}(hj!h]h va_list *va}(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.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.hhKhj7ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj6hKhjubeh}(h]h ]h"]h$]h&]uh1jhjkubeh}(h]h ] kernelindentah"]h$]h&]uh1jOhjhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jdrm_printf_indent (C macro)c.drm_printf_indenthNtauh1jhjhhhNhNubj)}(hhh](j)}(hdrm_printf_indenth]j)}(hdrm_printf_indenth]j)}(hdrm_printf_indenth]j)}(hjuh]hdrm_printf_indent}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj{ubah}(h]h ](jjeh"]h$]h&]jAjBuh1jhjwhhhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhKubah}(h]h ]h"]h$]h&]jAjBjuh1jjjhjshhhjhKubah}(h]jnah ](j j!eh"]h$]h&]j%j&)j'huh1jhjhKhjphhubj))}(hhh]h}(h]h ]h"]h$]h&]uh1j(hjphhhjhKubeh}(h]h ](j macroeh"]h$]h&]jIj jJjjKjjLjMjNuh1jhhhjhNhNubh)}(h1``drm_printf_indent (printer, indent, fmt, ...)``h]j)}(hjh]h-drm_printf_indent (printer, indent, fmt, ...)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhKhjhhubj&)}(h9Print to a :c:type:`drm_printer` stream with indentation h]h)}(h8Print to a :c:type:`drm_printer` stream with indentationh](h Print to a }(hj˼hhhNhNubh)}(h:c:type:`drm_printer`h]j)}(hjռh]h drm_printer}(hj׼hhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjӼubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjjj drm_printeruh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhKhj˼ubh stream with indentation}(hj˼hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhKhjǼubah}(h]h ]h"]h$]h&]uh1j&hjhKhjhhubjP)}(h**Parameters** ``printer`` DRM printer ``indent`` Tab indentation level (max 5) ``fmt`` Format string ``...`` variable argumentsh](h)}(h**Parameters**h]jZ)}(hj h]h Parameters}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhKhjubj)}(hhh](j)}(h``printer`` DRM printer h](j)}(h ``printer``h]j)}(hj(h]hprinter}(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 DRM printerh]h DRM printer}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj=hKhj>ubah}(h]h ]h"]h$]h&]uh1jhj"ubeh}(h]h ]h"]h$]h&]uh1jhj=hKhjubj)}(h)``indent`` Tab indentation level (max 5) h](j)}(h ``indent``h]j)}(hjah]hindent}(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.hhKhj[ubj)}(hhh]h)}(hTab indentation level (max 5)h]hTab indentation level (max 5)}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjvhKhjwubah}(h]h ]h"]h$]h&]uh1jhj[ubeh}(h]h ]h"]h$]h&]uh1jhjvhKhjubj)}(h``fmt`` Format string h](j)}(h``fmt``h]j)}(hjh]hfmt}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhKhjubj)}(hhh]h)}(h Format stringh]h Format string}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubj)}(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.hhKhjͽubj)}(hhh]h)}(hvariable argumentsh]hvariable arguments}(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&]uh1jhjhKhjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jOhjhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jdrm_print_iterator (C struct)c.drm_print_iteratorhNtauh1jhjhhhNhNubj)}(hhh](j)}(hdrm_print_iteratorh]j)}(hstruct drm_print_iteratorh](j)}(hjh]hstruct}(hj-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj)hhhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhKubj)}(h h]h }(hj;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj)hhhj:hKubj)}(hdrm_print_iteratorh]j)}(hj'h]hdrm_print_iterator}(hjMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjIubah}(h]h ](jjeh"]h$]h&]jAjBuh1jhj)hhhj:hKubeh}(h]h ]h"]h$]h&]jAjBjuh1jjjhj%hhhj:hKubah}(h]j ah ](j j!eh"]h$]h&]j%j&)j'huh1jhj:hKhj"hhubj))}(hhh]h)}(h+local struct used with drm_printer_coredumph]h+local struct used with drm_printer_coredump}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhKhjlhhubah}(h]h ]h"]h$]h&]uh1j(hj"hhhj:hKubeh}(h]h ](j structeh"]h$]h&]jIj jJjjKjjLjMjNuh1jhhhjhNhNubjP)}(hXz**Definition**:: struct drm_print_iterator { void *data; ssize_t start; ssize_t remain; }; **Members** ``data`` Pointer to the devcoredump output buffer, can be NULL if using drm_printer_coredump to determine size of devcoredump ``start`` The offset within the buffer to start writing ``remain`` The number of bytes to write for this iterationh](h)}(h**Definition**::h](jZ)}(h**Definition**h]h Definition}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubh:}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhKhjubj2)}(hUstruct drm_print_iterator { void *data; ssize_t start; ssize_t remain; };h]hUstruct drm_print_iterator { void *data; ssize_t start; ssize_t remain; };}hjsbah}(h]h ]h"]h$]h&]jAjBuh1j1hZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhKhjubh)}(h **Members**h]jZ)}(hjh]hMembers}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.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)}(hjܾh]hdata}(hj޾hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjھubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhKhj־ubj)}(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.hhKhjubah}(h]h ]h"]h$]h&]uh1jhj־ubeh}(h]h ]h"]h$]h&]uh1jhjhKhjӾ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}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj+hKhj,ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj+hKhjӾubj)}(h:``remain`` The number of bytes to write for this iterationh](j)}(h ``remain``h]j)}(hjOh]hremain}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjMubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhKhjIubj)}(hhh]h)}(h/The number of bytes to write for this iterationh]h/The number of bytes to write for this iteration}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhKhjeubah}(h]h ]h"]h$]h&]uh1jhjIubeh}(h]h ]h"]h$]h&]uh1jhjdhKhjӾubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jOhjhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j!drm_coredump_printer (C function)c.drm_coredump_printerhNtauh1jhjhhhNhNubj)}(hhh](j)}(hIstruct drm_printer drm_coredump_printer (struct drm_print_iterator *iter)h]j)}(hHstruct drm_printer drm_coredump_printer(struct drm_print_iterator *iter)h](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhKubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhKubh)}(hhh]j)}(h drm_printerh]h drm_printer}(hjȿhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjſubah}(h]h ]h"]h$]h&] refdomainj reftypej reftargetjʿmodnameN classnameNjj)}j]j)}jdrm_coredump_printersbc.drm_coredump_printerasbuh1hhjhhhjhKubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhKubj)}(hdrm_coredump_printerh]j)}(hjh]hdrm_coredump_printer}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jAjBuh1jhjhhhjhKubj,)}(h!(struct drm_print_iterator *iter)h]j2)}(hstruct drm_print_iterator *iterh](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hj#hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hdrm_print_iteratorh]hdrm_print_iterator}(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubah}(h]h ]h"]h$]h&] refdomainj reftypej reftargetj6modnameN classnameNjj)}j]jc.drm_coredump_printerasbuh1hhjubj)}(h h]h }(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hiterh]hiter}(hjmhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjAjBuh1j1hjubah}(h]h ]h"]h$]h&]jAjBuh1j+hjhhhjhKubeh}(h]h ]h"]h$]h&]jAjBjuh1jjjhjhhhjhKubah}(h]jah ](j j!eh"]h$]h&]j%j&)j'huh1jhjhKhjhhubj))}(hhh]h)}(hdconstruct a :c:type:`drm_printer` that can output to a buffer from the read function for devcoredumph](h construct a }(hjhhhNhNubh)}(h:c:type:`drm_printer`h]j)}(hjh]h drm_printer}(hjhhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjj)}j]jc.drm_coredump_printerasbj drm_printeruh1hhjRhKhjubhC that can output to a buffer from the read function for devcoredump}(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(hjhhhjhKubeh}(h]h ](j functioneh"]h$]h&]jIj jJjjKjjLjMjNuh1jhhhjhNhNubjP)}(hX **Parameters** ``struct drm_print_iterator *iter`` A pointer to a struct drm_print_iterator for the read instance **Description** This wrapper extends drm_printf() to work with a dev_coredumpm() callback function. The passed in drm_print_iterator struct contains the buffer pointer, size and offset as passed in from devcoredump. For example:: void coredump_read(char *buffer, loff_t offset, size_t count, void *data, size_t datalen) { struct drm_print_iterator iter; struct drm_printer p; iter.data = buffer; iter.start = offset; iter.remain = count; p = drm_coredump_printer(&iter); drm_printf(p, "foo=%d\n", foo); } void makecoredump(...) { ... dev_coredumpm(dev, THIS_MODULE, data, 0, GFP_KERNEL, coredump_read, ...) } The above example has a time complexity of O(N^2), where N is the size of the devcoredump. This is acceptable for small devcoredumps but scales poorly for larger ones. Another use case for drm_coredump_printer is to capture the devcoredump into a saved buffer before the dev_coredump() callback. This involves two passes: one to determine the size of the devcoredump and another to print it to a buffer. Then, in dev_coredump(), copy from the saved buffer into the devcoredump read buffer. For example:: char *devcoredump_saved_buffer; ssize_t __coredump_print(char *buffer, ssize_t count, ...) { struct drm_print_iterator iter; struct drm_printer p; iter.data = buffer; iter.start = 0; iter.remain = count; p = drm_coredump_printer(&iter); drm_printf(p, "foo=%d\n", foo); ... return count - iter.remain; } void coredump_print(...) { ssize_t count; count = __coredump_print(NULL, INT_MAX, ...); devcoredump_saved_buffer = kvmalloc(count, GFP_KERNEL); __coredump_print(devcoredump_saved_buffer, count, ...); } void coredump_read(char *buffer, loff_t offset, size_t count, void *data, size_t datalen) { ... memcpy(buffer, devcoredump_saved_buffer + offset, count); ... } The above example has a time complexity of O(N*2), where N is the size of the devcoredump. This scales better than the previous example for larger devcoredumps. **Return** The :c:type:`drm_printer` objecth](h)}(h**Parameters**h]jZ)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhKhjubj)}(hhh]j)}(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&]uh1jhjubh)}(h**Description**h]jZ)}(hj;h]h Description}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj9ubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhKhjubh)}(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.}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhKhjubh)}(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.hhKhjubj2)}(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, ...) }}hjosbah}(h]h ]h"]h$]h&]jAjBuh1j1hZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhKhjubh)}(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.hhMhjubh)}(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.hhMhjubh)}(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.hhMhjubj2)}(hX2char *devcoredump_saved_buffer; ssize_t __coredump_print(char *buffer, ssize_t count, ...) { struct drm_print_iterator iter; struct drm_printer p; iter.data = buffer; iter.start = 0; iter.remain = count; p = drm_coredump_printer(&iter); drm_printf(p, "foo=%d\n", foo); ... return count - iter.remain; } void coredump_print(...) { ssize_t count; count = __coredump_print(NULL, INT_MAX, ...); devcoredump_saved_buffer = kvmalloc(count, GFP_KERNEL); __coredump_print(devcoredump_saved_buffer, count, ...); } void coredump_read(char *buffer, loff_t offset, size_t count, void *data, size_t datalen) { ... memcpy(buffer, devcoredump_saved_buffer + offset, count); ... }h]hX2char *devcoredump_saved_buffer; ssize_t __coredump_print(char *buffer, ssize_t count, ...) { struct drm_print_iterator iter; struct drm_printer p; iter.data = buffer; iter.start = 0; iter.remain = count; p = drm_coredump_printer(&iter); drm_printf(p, "foo=%d\n", foo); ... return count - iter.remain; } void coredump_print(...) { ssize_t count; count = __coredump_print(NULL, INT_MAX, ...); devcoredump_saved_buffer = kvmalloc(count, GFP_KERNEL); __coredump_print(devcoredump_saved_buffer, count, ...); } void coredump_read(char *buffer, loff_t offset, size_t count, void *data, size_t datalen) { ... memcpy(buffer, devcoredump_saved_buffer + offset, count); ... }}hjsbah}(h]h ]h"]h$]h&]jAjBuh1j1hZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhM!hjubh)}(hThe above example has a time complexity of O(N*2), where N is the size of the devcoredump. This scales better than the previous example for larger devcoredumps.h]hThe above example has a time complexity of O(N*2), where N is the size of the devcoredump. This scales better than the previous example for larger devcoredumps.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhMDhjubh)}(h **Return**h]jZ)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhMHhjubh)}(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 refexplicitrefwarnjjj drm_printeruh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhMIhjubh object}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMIhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jOhjhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j)drm_coredump_printer_is_full (C function)c.drm_coredump_printer_is_fullhNtauh1jhjhhhNhNubj)}(hhh](j)}(h9bool drm_coredump_printer_is_full (struct drm_printer *p)h]j)}(h8bool drm_coredump_printer_is_full(struct drm_printer *p)h](j))}(hj)h]hbool}(hj3hhhNhNubah}(h]h ]j%)ah"]h$]h&]uh1j)hj/hhhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhM\ubj)}(h h]h }(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/hhhj@hM\ubj)}(hdrm_coredump_printer_is_fullh]j)}(hdrm_coredump_printer_is_fullh]hdrm_coredump_printer_is_full}(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOubah}(h]h ](jjeh"]h$]h&]jAjBuh1jhj/hhhj@hM\ubj,)}(h(struct drm_printer *p)h]j2)}(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 classnameNjj)}j]j)}jjUsbc.drm_coredump_printer_is_fullasbuh1hhjkubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkubj)}(hjh]hp}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkubeh}(h]h ]h"]h$]h&]noemphjAjBuh1j1hjgubah}(h]h ]h"]h$]h&]jAjBuh1j+hj/hhhj@hM\ubeh}(h]h ]h"]h$]h&]jAjBjuh1jjjhj+hhhj@hM\ubah}(h]j&ah ](j j!eh"]h$]h&]j%j&)j'huh1jhj@hM\hj(hhubj))}(hhh]h)}(h#DRM coredump printer output is fullh]h#DRM coredump printer output is full}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhM\hjhhubah}(h]h ]h"]h$]h&]uh1j(hj(hhhj@hM\ubeh}(h]h ](j functioneh"]h$]h&]jIj jJj jKj jLjMjNuh1jhhhjhNhNubjP)}(h**Parameters** ``struct drm_printer *p`` DRM coredump printer **Description** DRM printer output is full, useful to short circuit coredump printing once printer is full. **Return** True if DRM coredump printer output buffer is full, False otherwiseh](h)}(h**Parameters**h]jZ)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhM`hj ubj)}(hhh]j)}(h/``struct drm_printer *p`` DRM coredump printer h](j)}(h``struct drm_printer *p``h]j)}(hj2h]hstruct drm_printer *p}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj0ubah}(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)}(hDRM coredump printerh]hDRM coredump printer}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjGhM]hjHubah}(h]h ]h"]h$]h&]uh1jhj,ubeh}(h]h ]h"]h$]h&]uh1jhjGhM]hj)ubah}(h]h ]h"]h$]h&]uh1jhj ubh)}(h**Description**h]jZ)}(hjmh]h Description}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjkubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhM_hj ubh)}(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^hj ubh)}(h **Return**h]jZ)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhMahj ubh)}(hCTrue if DRM coredump printer output buffer is full, False otherwiseh]hCTrue if DRM coredump printer output buffer is full, False otherwise}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhMbhj ubeh}(h]h ] kernelindentah"]h$]h&]uh1jOhjhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j!drm_seq_file_printer (C function)c.drm_seq_file_printerhNtauh1jhjhhhNhNubj)}(hhh](j)}(hubah}(h]h ]h"]h$]h&]jAjBuh1j+hjhhhjhMpubeh}(h]h ]h"]h$]h&]jAjBjuh1jjjhjhhhjhMpubah}(h]jah ](j j!eh"]h$]h&]j%j&)j'huh1jhjhMphjhhubj))}(hhh]h)}(hDconstruct a :c:type:`drm_printer` that outputs to :c:type:`seq_file`h](h construct a }(hjhhhNhNubh)}(h:c:type:`drm_printer`h]j)}(hjh]h drm_printer}(hjhhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjj)}j]jc.drm_seq_file_printerasbj drm_printeruh1hhjRhKhjubh that outputs to }(hjhhhNhNubh)}(h:c:type:`seq_file`h]j)}(hjh]hseq_file}(hjhhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjjjseq_fileuh1hhjRhKhjubeh}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhMphjhhubah}(h]h ]h"]h$]h&]uh1j(hjhhhjhMpubeh}(h]h ](j functioneh"]h$]h&]jIj jJj%jKj%jLjMjNuh1jhhhjhNhNubjP)}(h**Parameters** ``struct seq_file *f`` the :c:type:`struct seq_file ` to output to **Return** The :c:type:`drm_printer` objecth](h)}(h**Parameters**h]jZ)}(hj/h]h Parameters}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj-ubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhMthj)ubj)}(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)}(hjNh]hstruct seq_file *f}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjLubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhMqhjHubj)}(hhh]h)}(h5the :c:type:`struct seq_file ` to output toh](hthe }(hjghhhNhNubh)}(h$:c:type:`struct seq_file `h]j)}(hjqh]hstruct seq_file}(hjshhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjoubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjjjseq_fileuh1hhjchMqhjgubh to output to}(hjghhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjchMqhjdubah}(h]h ]h"]h$]h&]uh1jhjHubeh}(h]h ]h"]h$]h&]uh1jhjchMqhjEubah}(h]h ]h"]h$]h&]uh1jhj)ubh)}(h **Return**h]jZ)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhMshj)ubh)}(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 refexplicitrefwarnjjj drm_printeruh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhMshjubh object}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMshj)ubeh}(h]h ] kernelindentah"]h$]h&]uh1jOhjhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jdrm_info_printer (C function)c.drm_info_printerhNtauh1jhjhhhNhNubj)}(hhh](j)}(h8struct drm_printer drm_info_printer (struct device *dev)h]j)}(h7struct drm_printer drm_info_printer(struct device *dev)h](j)}(hjh]hstruct}(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 }(hj"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhj!hMubh)}(hhh]j)}(h drm_printerh]h drm_printer}(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0ubah}(h]h ]h"]h$]h&] refdomainj reftypej reftargetj5modnameN classnameNjj)}j]j)}jdrm_info_printersbc.drm_info_printerasbuh1hhjhhhj!hMubj)}(h h]h }(hjThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhj!hMubj)}(hdrm_info_printerh]j)}(hjQh]hdrm_info_printer}(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbubah}(h]h ](jjeh"]h$]h&]jAjBuh1jhjhhhj!hMubj,)}(h(struct device *dev)h]j2)}(hstruct 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)}(hdeviceh]hdevice}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj reftypej reftargetjmodnameN classnameNjj)}j]jOc.drm_info_printerasbuh1hhj}ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj}ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj}ubj)}(hdevh]hdev}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj}ubeh}(h]h ]h"]h$]h&]noemphjAjBuh1j1hjyubah}(h]h ]h"]h$]h&]jAjBuh1j+hjhhhj!hMubeh}(h]h ]h"]h$]h&]jAjBjuh1jjjhj hhhj!hMubah}(h]jah ](j j!eh"]h$]h&]j%j&)j'huh1jhj!hMhj hhubj))}(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)}(hj h]h drm_printer}(hjhhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjj)}j]jOc.drm_info_printerasbj drm_printeruh1hhjRhKhjubh 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(hj hhhj!hMubeh}(h]h ](j functioneh"]h$]h&]jIj jJjBjKjBjLjMjNuh1jhhhjhNhNubjP)}(h**Parameters** ``struct device *dev`` the :c:type:`struct device ` pointer **Return** The :c:type:`drm_printer` objecth](h)}(h**Parameters**h]jZ)}(hjLh]h Parameters}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjJubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhMhjFubj)}(hhh]j)}(hD``struct device *dev`` the :c:type:`struct device ` pointer h](j)}(h``struct device *dev``h]j)}(hjkh]hstruct device *dev}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjiubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhMhjeubj)}(hhh]h)}(h,the :c:type:`struct device ` pointerh](hthe }(hjhhhNhNubh)}(h :c:type:`struct device `h]j)}(hjh]h struct device}(hjhhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjjjdeviceuh1hhjhMhjubh pointer}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjeubeh}(h]h ]h"]h$]h&]uh1jhjhMhjbubah}(h]h ]h"]h$]h&]uh1jhjFubh)}(h **Return**h]jZ)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhMhjFubh)}(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 refexplicitrefwarnjjj drm_printeruh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhMhjubh object}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMhjFubeh}(h]h ] kernelindentah"]h$]h&]uh1jOhjhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jdrm_dbg_printer (C function)c.drm_dbg_printerhNtauh1jhjhhhNhNubj)}(hhh](j)}(hqstruct drm_printer drm_dbg_printer (struct drm_device *drm, enum drm_debug_category category, const char *prefix)h]j)}(hpstruct drm_printer drm_dbg_printer(struct drm_device *drm, enum drm_debug_category category, const char *prefix)h](j)}(hjh]hstruct}(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-hhhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhMubj)}(h h]h }(hj?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-hhhj>hMubh)}(hhh]j)}(h drm_printerh]h drm_printer}(hjPhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMubah}(h]h ]h"]h$]h&] refdomainj reftypej reftargetjRmodnameN classnameNjj)}j]j)}jdrm_dbg_printersbc.drm_dbg_printerasbuh1hhj-hhhj>hMubj)}(h h]h }(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-hhhj>hMubj)}(hdrm_dbg_printerh]j)}(hjnh]hdrm_dbg_printer}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jAjBuh1jhj-hhhj>hMubj,)}(hN(struct drm_device *drm, enum drm_debug_category category, const char *prefix)h](j2)}(hstruct drm_device *drmh](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(h drm_deviceh]h drm_device}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj reftypej reftargetjmodnameN classnameNjj)}j]jlc.drm_dbg_printerasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hdrmh]hdrmY}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjAjBuh1j1hjubj2)}(h enum drm_debug_category categoryh](j)}(hjAh]henum}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubh)}(hhh]j)}(hdrm_debug_categoryh]hdrm_debug_category}(hj,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj)ubah}(h]h ]h"]h$]h&] refdomainj reftypej reftargetj.modnameN classnameNjj)}j]jlc.drm_dbg_printerasbuh1hhj ubj)}(h h]h }(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(hcategoryh]hcategory}(hjXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphjAjBuh1j1hjubj2)}(hconst char *prefixh](j)}(hj*h]hconst}(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmubj)}(h h]h }(hj~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmubj))}(hcharh]hchar}(hjhhhNhNubah}(h]h ]j%)ah"]h$]h&]uh1j)hjmubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmubj)}(hprefixh]hprefix}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmubeh}(h]h ]h"]h$]h&]noemphjAjBuh1j1hjubeh}(h]h ]h"]h$]h&]jAjBuh1j+hj-hhhj>hMubeh}(h]h ]h"]h$]h&]jAjBjuh1jjjhj)hhhj>hMubah}(h]j$ah ](j j!eh"]h$]h&]j%j&)j'huh1jhj>hMhj&hhubj))}(hhh]h)}(h@construct a :c:type:`drm_printer` for drm device specific outputh](h construct a }(hjhhhNhNubh)}(h:c:type:`drm_printer`h]j)}(hjh]h drm_printer}(hjhhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjj)}j]jlc.drm_dbg_printerasbj drm_printeruh1hhjRhKhjubh for drm device specific output}(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(hj&hhhj>hMubeh}(h]h ](j functioneh"]h$]h&]jIj jJjjKjjLjMjNuh1jhhhjhNhNubjP)}(hX**Parameters** ``struct drm_device *drm`` the :c:type:`struct drm_device ` pointer, or NULL ``enum drm_debug_category category`` the debug category to use ``const char *prefix`` debug output prefix, or NULL for no prefix **Return** The :c:type:`drm_printer` objecth](h)}(h**Parameters**h]jZ)}(hj)h]h Parameters}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj'ubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhMhj#ubj)}(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)}(hjHh]hstruct drm_device *drm}(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=the :c:type:`struct drm_device ` pointer, or NULLh](hthe }(hjahhhNhNubh)}(h(:c:type:`struct drm_device `h]j)}(hjkh]hstruct drm_device}(hjmhhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjiubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjjj drm_deviceuh1hhj]hMhjaubh pointer, or NULL}(hjahhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj]hMhj^ubah}(h]h ]h"]h$]h&]uh1jhjBubeh}(h]h ]h"]h$]h&]uh1jhj]hMhj?ubj)}(h?``enum drm_debug_category category`` the debug category to use h](j)}(h$``enum drm_debug_category category``h]j)}(hjh]h enum drm_debug_category category}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhMhjubj)}(hhh]h)}(hthe debug category to useh]hthe debug category to use}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhj?ubj)}(hB``const char *prefix`` debug output prefix, or NULL for no prefix h](j)}(h``const char *prefix``h]j)}(hjh]hconst char *prefix}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhMhjubj)}(hhh]h)}(h*debug output prefix, or NULL for no prefixh]h*debug output prefix, or NULL for no prefix}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhj?ubeh}(h]h ]h"]h$]h&]uh1jhj#ubh)}(h **Return**h]jZ)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhMhj#ubh)}(h The :c:type:`drm_printer` objecth](hThe }(hj.hhhNhNubh)}(h:c:type:`drm_printer`h]j)}(hj8h]h drm_printer}(hj:hhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhj6ubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjjj drm_printeruh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhMhj.ubh object}(hj.hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjUhMhj#ubeh}(h]h ] kernelindentah"]h$]h&]uh1jOhjhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jdrm_err_printer (C function)c.drm_err_printerhNtauh1jhjhhhNhNubj)}(hhh](j)}(hOstruct drm_printer drm_err_printer (struct drm_device *drm, const char *prefix)h]j)}(hNstruct drm_printer drm_err_printer(struct drm_device *drm, const char *prefix)h](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|hhhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|hhhjhMubh)}(hhh]j)}(h drm_printerh]h drm_printer}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj reftypej reftargetjmodnameN classnameNjj)}j]j)}jdrm_err_printersbc.drm_err_printerasbuh1hhj|hhhjhMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|hhhjhMubj)}(hdrm_err_printerh]j)}(hjh]hdrm_err_printer}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jAjBuh1jhj|hhhjhMubj,)}(h,(struct drm_device *drm, const char *prefix)h](j2)}(hstruct drm_device *drmh](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(h drm_deviceh]h drm_device}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj reftypej reftargetj modnameN classnameNjj)}j]jc.drm_err_printerasbuh1hhjubj)}(h h]h }(hj)hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hdrmh]hdrm}(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjAjBuh1j1hjubj2)}(hconst char *prefixh](j)}(hj*h]hconst}(hj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubj)}(h h]h }(hjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubj))}(hcharh]hchar}(hjxhhhNhNubah}(h]h ]j%)ah"]h$]h&]uh1j)hjYubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubj)}(hprefixh]hprefix}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubeh}(h]h ]h"]h$]h&]noemphjAjBuh1j1hjubeh}(h]h ]h"]h$]h&]jAjBuh1j+hj|hhhjhMubeh}(h]h ]h"]h$]h&]jAjBjuh1jjjhjxhhhjhMubah}(h]jsah ](j j!eh"]h$]h&]j%j&)j'huh1jhjhMhjuhhubj))}(hhh]h)}(h;construct a :c:type:`drm_printer` that outputs to drm_err()h](h construct a }(hjhhhNhNubh)}(h:c:type:`drm_printer`h]j)}(hjh]h drm_printer}(hjhhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjj)}j]jc.drm_err_printerasbj drm_printeruh1hhjRhKhjubh that outputs to drm_err()}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhMhjhhubah}(h]h ]h"]h$]h&]uh1j(hjuhhhjhMubeh}(h]h ](j functioneh"]h$]h&]jIj jJj jKj jLjMjNuh1jhhhjhNhNubjP)}(h**Parameters** ``struct drm_device *drm`` the :c:type:`struct drm_device ` pointer ``const char *prefix`` debug output prefix, or NULL for no prefix **Return** The :c:type:`drm_printer` objecth](h)}(h**Parameters**h]jZ)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhMhjubj)}(hhh](j)}(hP``struct drm_device *drm`` the :c:type:`struct drm_device ` pointer h](j)}(h``struct drm_device *drm``h]j)}(hj4h]hstruct drm_device *drm}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2ubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhMhj.ubj)}(hhh]h)}(h4the :c:type:`struct drm_device ` pointerh](hthe }(hjMhhhNhNubh)}(h(:c:type:`struct drm_device `h]j)}(hjWh]hstruct drm_device}(hjYhhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjUubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjjj drm_deviceuh1hhjIhMhjMubh pointer}(hjMhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjIhMhjJubah}(h]h ]h"]h$]h&]uh1jhj.ubeh}(h]h ]h"]h$]h&]uh1jhjIhMhj+ubj)}(hB``const char *prefix`` debug output prefix, or NULL for no prefix h](j)}(h``const char *prefix``h]j)}(hjh]hconst char *prefix}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhMhjubj)}(hhh]h)}(h*debug output prefix, or NULL for no prefixh]h*debug output prefix, or NULL for no prefix}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhj+ubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h **Return**h]jZ)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhMhjubh)}(h The :c:type:`drm_printer` objecth](hThe }(hjhhhNhNubh)}(h:c:type:`drm_printer`h]j)}(hjh]h drm_printer}(hjhhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjjj drm_printeruh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhMhjubh object}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jOhjhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jdrm_line_printer (C function)c.drm_line_printerhNtauh1jhjhhhNhNubj)}(hhh](j)}(hdstruct drm_printer drm_line_printer (struct drm_printer *p, const char *prefix, unsigned int series)h]j)}(hcstruct drm_printer drm_line_printer(struct drm_printer *p, const char *prefix, unsigned int series)h](j)}(hjh]hstruct}(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/hhhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhMubj)}(h h]h }(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/hhhj@hMubh)}(hhh]j)}(h drm_printerh]h drm_printer}(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOubah}(h]h ]h"]h$]h&] refdomainj reftypej reftargetjTmodnameN classnameNjj)}j]j)}jdrm_line_printersbc.drm_line_printerasbuh1hhj/hhhj@hMubj)}(h h]h }(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/hhhj@hMubj)}(hdrm_line_printerh]j)}(hjph]hdrm_line_printer}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jAjBuh1jhj/hhhj@hMubj,)}(h@(struct drm_printer *p, const char *prefix, unsigned int series)h](j2)}(hstruct drm_printer *ph](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(h drm_printerh]h drm_printer}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj reftypej reftargetjmodnameN classnameNjj)}j]jnc.drm_line_printerasbuh1hhjubj)}(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&]noemphjAjBuh1j1hjubj2)}(hconst char *prefixh](j)}(hj*h]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj))}(hcharh]hchar}(hj*hhhNhNubah}(h]h ]j%)ah"]h$]h&]uh1j)hj ubj)}(h h]h }(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(hjh]h*}(hjFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(hprefixh]hprefix}(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphjAjBuh1j1hjubj2)}(hunsigned int seriesh](j))}(hunsignedh]hunsigned}(hjlhhhNhNubah}(h]h ]j%)ah"]h$]h&]uh1j)hjhubj)}(h h]h }(hjzhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhubj))}(hinth]hint}(hjhhhNhNubah}(h]h ]j%)ah"]h$]h&]uh1j)hjhubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhubj)}(hseriesh]hseries}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhubeh}(h]h ]h"]h$]h&]noemphjAjBuh1j1hjubeh}(h]h ]h"]h$]h&]jAjBuh1j+hj/hhhj@hMubeh}(h]h ]h"]h$]h&]jAjBjuh1jjjhj+hhhj@hMubah}(h]j&ah ](j j!eh"]h$]h&]j%j&)j'huh1jhj@hMhj(hhubj))}(hhh]h)}(hIconstruct a :c:type:`drm_printer` that prefixes outputs with line numbersh](h construct a }(hjhhhNhNubh)}(h:c:type:`drm_printer`h]j)}(hjh]h drm_printer}(hjhhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjj)}j]jnc.drm_line_printerasbj drm_printeruh1hhjRhKhjubh( that prefixes outputs with line numbers}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhMhjhhubah}(h]h ]h"]h$]h&]uh1j(hj(hhhj@hMubeh}(h]h ](j functioneh"]h$]h&]jIj jJjjKjjLjMjNuh1jhhhjhNhNubjP)}(hX**Parameters** ``struct drm_printer *p`` the :c:type:`struct drm_printer ` which actually generates the output ``const char *prefix`` optional output prefix, or NULL for no prefix ``unsigned int series`` optional unique series identifier, or 0 to omit identifier in the output **Description** This printer can be used to increase the robustness of the captured output to make sure we didn't lost any intermediate lines of the output. Helpful while capturing some crash data. Example 1:: void crash_dump(struct drm_device *drm) { static unsigned int id; struct drm_printer p = drm_err_printer(drm, "crash"); struct drm_printer lp = drm_line_printer(&p, "dump", ++id); drm_printf(&lp, "foo"); drm_printf(&lp, "bar"); } Above code will print into the dmesg something like:: [ ] 0000:00:00.0: [drm] *ERROR* crash dump 1.1: foo [ ] 0000:00:00.0: [drm] *ERROR* crash dump 1.2: bar Example 2:: void line_dump(struct device *dev) { struct drm_printer p = drm_info_printer(dev); struct drm_printer lp = drm_line_printer(&p, NULL, 0); drm_printf(&lp, "foo"); drm_printf(&lp, "bar"); } Above code will print:: [ ] 0000:00:00.0: [drm] 1: foo [ ] 0000:00:00.0: [drm] 2: bar **Return** The :c:type:`drm_printer` objecth](h)}(h**Parameters**h]jZ)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhMhjubj)}(hhh](j)}(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)}(hj7h]hstruct drm_printer *p}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5ubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhMhj1ubj)}(hhh]h)}(hRthe :c:type:`struct drm_printer ` which actually generates the outputh](hthe }(hjPhhhNhNubh)}(h*:c:type:`struct drm_printer `h]j)}(hjZh]hstruct drm_printer}(hj\hhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjXubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjjj drm_printeruh1hhjLhMhjPubh$ which actually generates the output}(hjPhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjLhMhjMubah}(h]h ]h"]h$]h&]uh1jhj1ubeh}(h]h ]h"]h$]h&]uh1jhjLhMhj.ubj)}(hE``const char *prefix`` optional output prefix, or NULL for no prefix h](j)}(h``const char *prefix``h]j)}(hjh]hconst char *prefix}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhMhjubj)}(hhh]h)}(h-optional output prefix, or NULL for no prefixh]h-optional output prefix, or NULL for no prefix}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhj.ubj)}(ha``unsigned int series`` optional unique series identifier, or 0 to omit identifier in the output h](j)}(h``unsigned int series``h]j)}(hjh]hunsigned int series}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhMhjubj)}(hhh]h)}(hHoptional unique series identifier, or 0 to omit identifier in the outputh]hHoptional unique series identifier, or 0 to omit identifier in the output}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhj.ubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]jZ)}(hjh]h Description}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.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:}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhMhjubj2)}(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"); }}hj;sbah}(h]h ]h"]h$]h&]jAjBuh1j1hZ/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:}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhMhjubj2)}(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}hjYsbah}(h]h ]h"]h$]h&]jAjBuh1j1hZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhMhjubh)}(h Example 2::h]h Example 2:}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhMhjubj2)}(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"); }}hjwsbah}(h]h ]h"]h$]h&]jAjBuh1j1hZ/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.hhMhjubj2)}(h=[ ] 0000:00:00.0: [drm] 1: foo [ ] 0000:00:00.0: [drm] 2: barh]h=[ ] 0000:00:00.0: [drm] 1: foo [ ] 0000:00:00.0: [drm] 2: bar}hjsbah}(h]h ]h"]h$]h&]jAjBuh1j1hZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhMhjubh)}(h **Return**h]jZ)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhMhjubh)}(h The :c:type:`drm_printer` objecth](hThe }(hjhhhNhNubh)}(h:c:type:`drm_printer`h]j)}(hjh]h drm_printer}(hjhhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjjj drm_printeruh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhMhjubh object}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jOhjhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jDRM_DEV_ERROR (C macro)c.DRM_DEV_ERRORhNtauh1jhjhhhNhNubj)}(hhh](j)}(h DRM_DEV_ERRORh]j)}(h DRM_DEV_ERRORh]j)}(h DRM_DEV_ERRORh]j)}(hjh]h DRM_DEV_ERROR}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jAjBuh1jhj hhhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhMubah}(h]h ]h"]h$]h&]jAjBjuh1jjjhjhhhj%hMubah}(h]jah ](j j!eh"]h$]h&]j%j&)j'huh1jhj%hMhjhhubj))}(hhh]h}(h]h ]h"]h$]h&]uh1j(hjhhhj%hMubeh}(h]h ](j macroeh"]h$]h&]jIj jJj>jKj>jLjMjNuh1jhhhjhNhNubh)}(h!``DRM_DEV_ERROR (dev, fmt, ...)``h]j)}(hjDh]hDRM_DEV_ERROR (dev, fmt, ...)}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjBubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhMhjhhubj&)}(hError output. h]h)}(h Error output.h]h Error output.}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhMhjZubah}(h]h ]h"]h$]h&]uh1j&hjlhMhjhhubjP)}(h**Parameters** ``dev`` device pointer ``fmt`` printf() like format string. ``...`` variable arguments **NOTE** this is deprecated in favor of drm_err() or dev_err().h](h)}(h**Parameters**h]jZ)}(hjyh]h Parameters}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjwubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhMhjsubj)}(hhh](j)}(h``dev`` device pointer h](j)}(h``dev``h]j)}(hjh]hdev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhMhjubj)}(hhh]h)}(hdevice pointerh]hdevice pointer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h%``fmt`` printf() like format string. h](j)}(h``fmt``h]j)}(hjh]hfmt}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhM hjubj)}(hhh]h)}(hprintf() like format string.h]hprintf() like format string.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM hjubj)}(h``...`` variable arguments h](j)}(h``...``h]j)}(hj h]h...}(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.hhKhjubj)}(hhh]h)}(hvariable argumentsh]hvariable arguments}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubeh}(h]h ]h"]h$]h&]uh1jhjsubh)}(h**NOTE**h]jZ)}(hjEh]hNOTE}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjCubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhKhjsubh)}(h6this is deprecated in favor of drm_err() or dev_err().h]h6this is deprecated in favor of drm_err() or dev_err().}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhMhjsubeh}(h]h ] kernelindentah"]h$]h&]uh1jOhjhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j#DRM_DEV_ERROR_RATELIMITED (C macro)c.DRM_DEV_ERROR_RATELIMITEDhNtauh1jhjhhhNhNubj)}(hhh](j)}(hDRM_DEV_ERROR_RATELIMITEDh]j)}(hDRM_DEV_ERROR_RATELIMITEDh]j)}(hDRM_DEV_ERROR_RATELIMITEDh]j)}(hjh]hDRM_DEV_ERROR_RATELIMITED}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jAjBuh1jhjhhhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhMubah}(h]h ]h"]h$]h&]jAjBjuh1jjjhjhhhjhMubah}(h]j}ah ](j j!eh"]h$]h&]j%j&)j'huh1jhjhMhjhhubj))}(hhh]h}(h]h ]h"]h$]h&]uh1j(hjhhhjhMubeh}(h]h ](j macroeh"]h$]h&]jIj jJjjKjjLjMjNuh1jhhhjhNhNubh)}(h-``DRM_DEV_ERROR_RATELIMITED (dev, fmt, ...)``h]j)}(hjh]h)DRM_DEV_ERROR_RATELIMITED (dev, fmt, ...)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhMhjhhubj&)}(hRate limited error output. h]h)}(hRate limited error output.h]hRate limited error output.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhMhjubah}(h]h ]h"]h$]h&]uh1j&hjhMhjhhubjP)}(hX**Parameters** ``dev`` device pointer ``fmt`` printf() like format string. ``...`` variable arguments **NOTE** this is deprecated in favor of drm_err_ratelimited() or dev_err_ratelimited(). **Description** Like DRM_ERROR() but won't flood the log.h](h)}(h**Parameters**h]jZ)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhMhjubj)}(hhh](j)}(h``dev`` device pointer h](j)}(h``dev``h]j)}(hjh]hdev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhMhjubj)}(hhh]h)}(hdevice pointerh]hdevice pointer}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj)hMhj*ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj)hMhj ubj)}(h%``fmt`` printf() like format string. h](j)}(h``fmt``h]j)}(hjMh]hfmt}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjKubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhMhjGubj)}(hhh]h)}(hprintf() like format string.h]hprintf() like format string.}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjbhMhjcubah}(h]h ]h"]h$]h&]uh1jhjGubeh}(h]h ]h"]h$]h&]uh1jhjbhMhj ubj)}(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&]uh1jhjhKhj ubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**NOTE**h]jZ)}(hjh]hNOTE}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhKhjubh)}(hNthis is deprecated in favor of drm_err_ratelimited() or dev_err_ratelimited().h]hNthis is deprecated in favor of drm_err_ratelimited() or dev_err_ratelimited().}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhMhjubh)}(h**Description**h]jZ)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhMhjubh)}(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.hhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jOhjhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jDRM_DEV_DEBUG (C macro)c.DRM_DEV_DEBUGhNtauh1jhjhhhNhNubj)}(hhh](j)}(h DRM_DEV_DEBUGh]j)}(h DRM_DEV_DEBUGh]j)}(h DRM_DEV_DEBUGh]j)}(hj'h]h DRM_DEV_DEBUG}(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-ubah}(h]h ](jjeh"]h$]h&]jAjBuh1jhj)hhhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhM;ubah}(h]h ]h"]h$]h&]jAjBjuh1jjjhj%hhhjDhM;ubah}(h]j ah ](j j!eh"]h$]h&]j%j&)j'huh1jhjDhM;hj"hhubj))}(hhh]h}(h]h ]h"]h$]h&]uh1j(hj"hhhjDhM;ubeh}(h]h ](j macroeh"]h$]h&]jIj jJj]jKj]jLjMjNuh1jhhhjhNhNubh)}(h!``DRM_DEV_DEBUG (dev, fmt, ...)``h]j)}(hjch]hDRM_DEV_DEBUG (dev, fmt, ...)}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jhjaubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhM=hjhhubj&)}(h"Debug output for generic drm code h]h)}(h!Debug output for generic drm codeh]h!Debug output for generic drm code}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhM;hjyubah}(h]h ]h"]h$]h&]uh1j&hjhM;hjhhubjP)}(h**Parameters** ``dev`` device pointer ``fmt`` printf() like format string. ``...`` variable arguments **NOTE** this is deprecated in favor of drm_dbg_core().h](h)}(h**Parameters**h]jZ)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhM?hjubj)}(hhh](j)}(h``dev`` device pointer h](j)}(h``dev``h]j)}(hjh]hdev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhM?hjubj)}(hhh]h)}(hdevice pointerh]hdevice pointer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM?hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM?hjubj)}(h%``fmt`` printf() like format string. h](j)}(h``fmt``h]j)}(hjh]hfmt}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhM@hjubj)}(hhh]h)}(hprintf() like format string.h]hprintf() like format string.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM@hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM@hjubj)}(h``...`` variable arguments h](j)}(h``...``h]j)}(hj)h]h...}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj'ubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhKhj#ubj)}(hhh]h)}(hvariable argumentsh]hvariable arguments}(hjBhhhNhNubah}(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&]uh1jhjubh)}(h**NOTE**h]jZ)}(hjdh]hNOTE}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjbubah}(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().}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhM=hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jOhjhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jDRM_DEV_DEBUG_DRIVER (C macro)c.DRM_DEV_DEBUG_DRIVERhNtauh1jhjhhhNhNubj)}(hhh](j)}(hDRM_DEV_DEBUG_DRIVERh]j)}(hDRM_DEV_DEBUG_DRIVERh]j)}(hDRM_DEV_DEBUG_DRIVERh]j)}(hjh]hDRM_DEV_DEBUG_DRIVER}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jAjBuh1jhjhhhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhMEubah}(h]h ]h"]h$]h&]jAjBjuh1jjjhjhhhjhMEubah}(h]jah ](j j!eh"]h$]h&]j%j&)j'huh1jhjhMEhjhhubj))}(hhh]h}(h]h ]h"]h$]h&]uh1j(hjhhhjhMEubeh}(h]h ](j macroeh"]h$]h&]jIj jJjjKjjLjMjNuh1jhhhjhNhNubh)}(h(``DRM_DEV_DEBUG_DRIVER (dev, fmt, ...)``h]j)}(hjh]h$DRM_DEV_DEBUG_DRIVER (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.hhMGhjhhubj&)}(h4Debug output for vendor specific part of the driver h]h)}(h3Debug output for vendor specific part of the driverh]h3Debug output for vendor specific part of the driver}(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&]uh1j&hjhMEhjhhubjP)}(h**Parameters** ``dev`` device pointer ``fmt`` printf() like format string. ``...`` variable arguments **NOTE** this is deprecated in favor of drm_dbg() or dev_dbg().h](h)}(h**Parameters**h]jZ)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhMIhjubj)}(hhh](j)}(h``dev`` device pointer h](j)}(h``dev``h]j)}(hj3h]hdev}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1ubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhMIhj-ubj)}(hhh]h)}(hdevice pointerh]hdevice pointer}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjHhMIhjIubah}(h]h ]h"]h$]h&]uh1jhj-ubeh}(h]h ]h"]h$]h&]uh1jhjHhMIhj*ubj)}(h%``fmt`` printf() like format string. h](j)}(h``fmt``h]j)}(hjlh]hfmt}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhMJhjfubj)}(hhh]h)}(hprintf() like format string.h]hprintf() like format string.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMJhjubah}(h]h ]h"]h$]h&]uh1jhjfubeh}(h]h ]h"]h$]h&]uh1jhjhMJhj*ubj)}(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&]uh1jhjhKhj*ubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**NOTE**h]jZ)}(hjh]hNOTE}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhKhjubh)}(h6this is deprecated in favor of drm_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&]uh1jOhjhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jDRM_DEV_DEBUG_KMS (C macro)c.DRM_DEV_DEBUG_KMShNtauh1jhjhhhNhNubj)}(hhh](j)}(hDRM_DEV_DEBUG_KMSh]j)}(hDRM_DEV_DEBUG_KMSh]j)}(hDRM_DEV_DEBUG_KMSh]j)}(hjh]hDRM_DEV_DEBUG_KMS}(hj)hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%ubah}(h]h ](jjeh"]h$]h&]jAjBuh1jhj!hhhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhMOubah}(h]h ]h"]h$]h&]jAjBjuh1jjjhjhhhj<hMOubah}(h]jah ](j j!eh"]h$]h&]j%j&)j'huh1jhj<hMOhjhhubj))}(hhh]h}(h]h ]h"]h$]h&]uh1j(hjhhhj<hMOubeh}(h]h ](j macroeh"]h$]h&]jIj jJjUjKjUjLjMjNuh1jhhhjhNhNubh)}(h%``DRM_DEV_DEBUG_KMS (dev, fmt, ...)``h]j)}(hj[h]h!DRM_DEV_DEBUG_KMS (dev, fmt, ...)}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjYubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhMQhjhhubj&)}(h"Debug output for modesetting code h]h)}(h!Debug output for modesetting codeh]h!Debug output for modesetting code}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhMOhjqubah}(h]h ]h"]h$]h&]uh1j&hjhMOhjhhubjP)}(h**Parameters** ``dev`` device pointer ``fmt`` printf() like format string. ``...`` variable arguments **NOTE** this is deprecated in favor of drm_dbg_kms().h](h)}(h**Parameters**h]jZ)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhMShjubj)}(hhh](j)}(h``dev`` device pointer h](j)}(h``dev``h]j)}(hjh]hdev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhMShjubj)}(hhh]h)}(hdevice pointerh]hdevice pointer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMShjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMShjubj)}(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.hhMThjubj)}(hhh]h)}(hprintf() like format string.h]hprintf() like format string.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMThjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMThjubj)}(h``...`` variable arguments h](j)}(h``...``h]j)}(hj!h]h...}(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.hhKhjubj)}(hhh]h)}(hvariable argumentsh]hvariable arguments}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj6hKhj7ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj6hKhjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**NOTE**h]jZ)}(hj\h]hNOTE}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjZubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhKhjubh)}(h-this is deprecated in favor of drm_dbg_kms().h]h-this is deprecated in favor of drm_dbg_kms().}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhMQhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jOhjhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jdrm_puts (C function) c.drm_putshNtauh1jhjhhhNhNubj)}(hhh](j)}(h6void drm_puts (struct drm_printer *p, const char *str)h]j)}(h5void drm_puts(struct drm_printer *p, const char *str)h](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.chKubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhKubj)}(hdrm_putsh]j)}(hdrm_putsh]hdrm_puts}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jAjBuh1jhjhhhjhKubj,)}(h((struct drm_printer *p, const char *str)h](j2)}(hstruct drm_printer *ph](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(h drm_printerh]h drm_printer}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj reftypej reftargetjmodnameN classnameNjj)}j]j)}jjsb c.drm_putsasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]hp}(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjAjBuh1j1hjubj2)}(hconst char *strh](j)}(hj*h]hconst}(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKubj)}(h h]h }(hj\hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKubj))}(hcharh]hchar}(hjjhhhNhNubah}(h]h ]j%)ah"]h$]h&]uh1j)hjKubj)}(h h]h }(hjxhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKubj)}(hstrh]hstr}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKubeh}(h]h ]h"]h$]h&]noemphjAjBuh1j1hjubeh}(h]h ]h"]h$]h&]jAjBuh1j+hjhhhjhKubeh}(h]h ]h"]h$]h&]jAjBjuh1jjjhjhhhjhKubah}(h]jah ](j j!eh"]h$]h&]j%j&)j'huh1jhjhKhjhhubj))}(hhh]h)}(h6print a const string to a :c:type:`drm_printer` streamh](hprint a const string to a }(hjhhhNhNubh)}(h:c:type:`drm_printer`h]j)}(hjh]h drm_printer}(hjhhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjj)}j]j c.drm_putsasbj drm_printeruh1hhjhKhjubh stream}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh^/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:167: ./drivers/gpu/drm/drm_print.chKhjhhubah}(h]h ]h"]h$]h&]uh1j(hjhhhjhKubeh}(h]h ](j functioneh"]h$]h&]jIj jJjjKjjLjMjNuh1jhhhjhNhNubjP)}(h**Parameters** ``struct drm_printer *p`` the :c:type:`drm` printer ``const char *str`` const string **Description** Allow :c:type:`drm_printer` types that have a constant string option to use it.h](h)}(h**Parameters**h]jZ)}(hjh]h Parameters}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubah}(h]h ]h"]h$]h&]uh1hh^/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:167: ./drivers/gpu/drm/drm_print.chMhjubj)}(hhh](j)}(h4``struct drm_printer *p`` the :c:type:`drm` printer h](j)}(h``struct drm_printer *p``h]j)}(hj&h]hstruct drm_printer *p}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj$ubah}(h]h ]h"]h$]h&]uh1jh^/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:167: ./drivers/gpu/drm/drm_print.chKhj ubj)}(hhh]h)}(hthe :c:type:`drm` printerh](hthe }(hj?hhhNhNubh)}(h :c:type:`drm`h]j)}(hjIh]hdrm}(hjKhhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjGubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjjjdrmuh1hhj;hKhj?ubh printer}(hj?hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj;hKhj<ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj;hKhjubj)}(h!``const char *str`` const string h](j)}(h``const char *str``h]j)}(hjh]hconst char *str}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh^/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:167: ./drivers/gpu/drm/drm_print.chMhj|ubj)}(hhh]h)}(h const stringh]h const string}(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]jZ)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubah}(h]h ]h"]h$]h&]uh1hh^/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:167: ./drivers/gpu/drm/drm_print.chMhjubh)}(hOAllow :c:type:`drm_printer` types that have a constant string option to use it.h](hAllow }(hjhhhNhNubh)}(h:c:type:`drm_printer`h]j)}(hjh]h drm_printer}(hjhhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjjj drm_printeruh1hh^/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:167: ./drivers/gpu/drm/drm_print.chMhjubh4 types that have a constant string option to use it.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jOhjhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jdrm_printf (C function) c.drm_printfhNtauh1jhjhhhNhNubj)}(hhh](j)}(h;void drm_printf (struct drm_printer *p, const char *f, ...)h]j)}(h:void drm_printf(struct drm_printer *p, const char *f, ...)h](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.chMubj)}(h h]h }(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!hhhj3hMubj)}(h drm_printfh]j)}(h drm_printfh]h drm_printf}(hjFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBubah}(h]h ](jjeh"]h$]h&]jAjBuh1jhj!hhhj3hMubj,)}(h+(struct drm_printer *p, const char *f, ...)h](j2)}(hstruct drm_printer *ph](j)}(hjh]hstruct}(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^ubj)}(h h]h }(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^ubh)}(hhh]j)}(h drm_printerh]h drm_printer}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj}ubah}(h]h ]h"]h$]h&] refdomainj reftypej reftargetjmodnameN classnameNjj)}j]j)}jjHsb c.drm_printfasbuh1hhj^ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^ubj)}(hjh]hp}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^ubeh}(h]h ]h"]h$]h&]noemphjAjBuh1j1hjZubj2)}(h const char *fh](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*}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjذh]hf}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjAjBuh1j1hjZubj2)}(h...h]j)}(hj:h]h...}(hj/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj+ubah}(h]h ]h"]h$]h&]noemphjAjBuh1j1hjZubeh}(h]h ]h"]h$]h&]jAjBuh1j+hj!hhhj3hMubeh}(h]h ]h"]h$]h&]jAjBjuh1jjjhjhhhj3hMubah}(h]jah ](j j!eh"]h$]h&]j%j&)j'huh1jhj3hMhjhhubj))}(hhh]h)}(h'print to a :c:type:`drm_printer` streamh](h print to a }(hjXhhhNhNubh)}(h:c:type:`drm_printer`h]j)}(hjbh]h drm_printer}(hjdhhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhj`ubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjj)}j]j c.drm_printfasbj drm_printeruh1hhjhKhjXubh stream}(hjXhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh^/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:167: ./drivers/gpu/drm/drm_print.chMhjUhhubah}(h]h ]h"]h$]h&]uh1j(hjhhhj3hMubeh}(h]h ](j functioneh"]h$]h&]jIj jJjjKjjLjMjNuh1jhhhjhNhNubjP)}(h**Parameters** ``struct drm_printer *p`` the :c:type:`drm_printer` ``const char *f`` format string ``...`` variable argumentsh](h)}(h**Parameters**h]jZ)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubah}(h]h ]h"]h$]h&]uh1hh^/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:167: ./drivers/gpu/drm/drm_print.chMhjubj)}(hhh](j)}(h4``struct drm_printer *p`` the :c:type:`drm_printer` h](j)}(h``struct drm_printer *p``h]j)}(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 refexplicitrefwarnjjj drm_printeruh1hhjhMhjubeh}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h ``const char *f`` format string h](j)}(h``const char *f``h]j)}(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}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj.hMhj/ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj.hMhjubj)}(h``...`` variable argumentsh](j)}(h``...``h]j)}(hjRh]h...}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1jhjPubah}(h]h ]h"]h$]h&]uh1jh^/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:167: ./drivers/gpu/drm/drm_print.chMhjLubj)}(hhh]h)}(hvariable argumentsh]hvariable arguments}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1hh^/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:167: ./drivers/gpu/drm/drm_print.chKhjhubah}(h]h ]h"]h$]h&]uh1jhjLubeh}(h]h ]h"]h$]h&]uh1jhjghMhjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jOhjhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jdrm_print_bits (C function)c.drm_print_bitshNtauh1jhjhhhNhNubj)}(hhh](j)}(hovoid drm_print_bits (struct drm_printer *p, unsigned long value, const char * const bits[], unsigned int nbits)ıh]j)}(hmvoid drm_print_bits(struct drm_printer *p, unsigned long value, const char *const bits[], unsigned int nbits)h](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)}(hdrm_print_bitsh]j)}(hdrm_print_bitsh]hdrm_print_bits}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jAjBuh1jhjhhhjhMubj,)}(hZ(struct drm_printer *p, unsigned long value, const char *const bits[], unsigned int nbits)h](j2)}(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 reftargetj modnameN classnameNjj)}j]j)}jjsbc.drm_print_bitsasbuh1hhjubj)}(h h]h }(hj'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]hp}(hjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjAjBuh1j1hjubj2)}(hunsigned long valueh](j))}(hunsignedh]hunsigned}(hjZhhhNhNubah}(h]h ]j%)ah"]h$]h&]uh1j)hjVubj)}(h h]h }(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVubj))}(hlongh]hlong}(hjvhhhNhNubah}(h]h ]j%)ah"]h$]h&]uh1j)hjVubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVubj)}(hvalueh]hvalue}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVubeh}(h]h ]h"]h$]h&]noemphjAjBuh1j1hjubj2)}(hconst char *const bits[]h](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)}(hj*h]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hbitsh]hbits}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h[h]h[}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h]h]h]}(hj&hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjAjBuh1j1hjubj2)}(hunsigned int nbitsh](j))}(hunsignedh]hunsigned}(hj?hhhNhNubah}(h]h ]j%)ah"]h$]h&]uh1j)hj;ubj)}(h h]h }(hjMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;ubj))}(hinth]hint}(hj[hhhNhNubah}(h]h ]j%)ah"]h$]h&]uh1j)hj;ubj)}(h h]h }(hjihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;ubj)}(hnbitsh]hnbits}(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;ubeh}(h]h ]h"]h$]h&]noemphjAjBuh1j1hjubeh}(h]h ]h"]h$]h&]jAjBuh1j+hjhhhjhMubeh}(h]h ]h"]h$]h&]jAjBjuh1jjjhjhhhjhMubah}(h]jah ](j j!eh"]h$]h&]j%j&)j'huh1jhjhMhjhhubj))}(hhh]h)}(h,print bits to a :c:type:`drm_printer` streamh](hprint bits to a }(hjhhhNhNubh)}(h:c:type:`drm_printer`h]j)}(hjh]h drm_printer}(hjhhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjj)}j]j#c.drm_print_bitsasbj drm_printeruh1hhjhKhjubh stream}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh^/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:167: ./drivers/gpu/drm/drm_print.chMhjhhubah}(h]h ]h"]h$]h&]uh1j(hjhhhjhMubeh}(h]h ](j functioneh"]h$]h&]jIj jJjjKjjLjMjNuh1jhhhjhNhNubjP)}(hX)**Parameters** ``struct drm_printer *p`` the :c:type:`drm_printer` ``unsigned long value`` field value. ``const char * const bits[]`` Array with bit names. ``unsigned int nbits`` Size of bit names array. **Description** Print bits (in flag fields for example) in human readable form.h](h)}(h**Parameters**h]jZ)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubah}(h]h ]h"]h$]h&]uh1hh^/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:167: ./drivers/gpu/drm/drm_print.chM"hjubj)}(hhh](j)}(h4``struct drm_printer *p`` the :c:type:`drm_printer` h](j)}(h``struct drm_printer *p``h]j)}(hj h]hstruct drm_printer *p}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh^/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:167: ./drivers/gpu/drm/drm_print.chM"hjubj)}(hhh]h)}(hthe :c:type:`drm_printer`h](hthe }(hj#hhhNhNubh)}(h:c:type:`drm_printer`h]j)}(hj-h]h drm_printer}(hj/hhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhj+ubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjjj drm_printeruh1hhjhM"hj#ubeh}(h]h ]h"]h$]h&]uh1hhjhM"hj ubah}(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)}(hjbh]hunsigned long value}(hjdhhhNhNubah}(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)}(h field value.h]h field value.}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjwhM#hjxubah}(h]h ]h"]h$]h&]uh1jhj\ubeh}(h]h ]h"]h$]h&]uh1jhjwhM#hjubj)}(h4``const char * const bits[]`` Array with bit names. h](j)}(h``const char * const bits[]``h]j)}(hjh]hconst char * const bits[]}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh^/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:167: ./drivers/gpu/drm/drm_print.chM$hjubj)}(hhh]h)}(hArray with bit names.h]hArray with bit names.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM$hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM$hjubj)}(h0``unsigned int nbits`` Size of bit names array. h](j)}(h``unsigned int nbits``h]j)}(hjh]hunsigned int nbits}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh^/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:167: ./drivers/gpu/drm/drm_print.chM%hjubj)}(hhh]h)}(hSize of bit names array.h]hSize of bit names array.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM%hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM%hjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]jZ)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj ubah}(h]h ]h"]h$]h&]uh1hh^/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:167: ./drivers/gpu/drm/drm_print.chM'hjubh)}(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.}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1hh^/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:167: ./drivers/gpu/drm/drm_print.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jOhjhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jdrm_print_regset32 (C function)c.drm_print_regset32hNtauh1jhjhhhNhNubj)}(hhh](j)}(hPvoid drm_print_regset32 (struct drm_printer *p, struct debugfs_regset32 *regset)h]j)}(hOvoid drm_print_regset32(struct drm_printer *p, struct debugfs_regset32 *regset)h](j))}(hvoidh]hvoid}(hjThhhNhNubah}(h]h ]j%)ah"]h$]h&]uh1j)hjPhhh^/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:167: ./drivers/gpu/drm/drm_print.chMpubj)}(h h]h }(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPhhhjbhMpubj)}(hdrm_print_regset32h]j)}(hdrm_print_regset32h]hdrm_print_regset32}(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqubah}(h]h ](jjeh"]h$]h&]jAjBuh1jhjPhhhjbhMpubj,)}(h8(struct drm_printer *p, struct debugfs_regset32 *regset)h](j2)}(hstruct drm_printer *ph](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(h drm_printerh]h drm_printer}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj reftypej reftargetjmodnameN classnameNjj)}j]j)}jjwsbc.drm_print_regset32asbuh1hhjubj)}(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&]noemphjAjBuh1j1hjubj2)}(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}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj reftypej reftargetj"modnameN classnameNjj)}j]jc.drm_print_regset32asbuh1hhjubj)}(h h]h }(hj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hregseth]hregset}(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjAjBuh1j1hjubeh}(h]h ]h"]h$]h&]jAjBuh1j+hjPhhhjbhMpubeh}(h]h ]h"]h$]h&]jAjBjuh1jjjhjLhhhjbhMpubah}(h]jGah ](j j!eh"]h$]h&]j%j&)j'huh1jhjbhMphjIhhubj))}(hhh]h)}(hBprint the contents of registers to a :c:type:`drm_printer` stream.h](h%print the contents of registers to a }(hjhhhNhNubh)}(h:c:type:`drm_printer`h]j)}(hjh]h drm_printer}(hjhhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjj)}j]jc.drm_print_regset32asbj drm_printeruh1hhjhKhjubh stream.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh^/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:167: ./drivers/gpu/drm/drm_print.chMphjhhubah}(h]h ]h"]h$]h&]uh1j(hjIhhhjbhMpubeh}(h]h ](j functioneh"]h$]h&]jIj jJjjKjjLjMjNuh1jhhhjhNhNubjP)}(hX**Parameters** ``struct drm_printer *p`` the :c:type:`drm` printer ``struct debugfs_regset32 *regset`` the list of registers to print. **Description** Often in driver debug, it's useful to be able to either capture the contents of registers in the steady state using debugfs or at specific points during operation. This lets the driver have a single list of registers for both.h](h)}(h**Parameters**h]jZ)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubah}(h]h ]h"]h$]h&]uh1hh^/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:167: ./drivers/gpu/drm/drm_print.chMthjubj)}(hhh](j)}(h4``struct drm_printer *p`` the :c:type:`drm` printer h](j)}(h``struct drm_printer *p``h]j)}(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.chMshjubj)}(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&]uh1jhj ubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjjjdrmuh1hhjhMshjubh printer}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMshjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMshjubj)}(hD``struct debugfs_regset32 *regset`` the list of registers to print. h](j)}(h#``struct debugfs_regset32 *regset``h]j)}(hjHh]hstruct debugfs_regset32 *regset}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjFubah}(h]h ]h"]h$]h&]uh1jh^/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:167: ./drivers/gpu/drm/drm_print.chMthjBubj)}(hhh]h)}(hthe list of registers to print.h]hthe list of registers to print.}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1hhj]hMthj^ubah}(h]h ]h"]h$]h&]uh1jhjBubeh}(h]h ]h"]h$]h&]uh1jhj]hMthjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]jZ)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubah}(h]h ]h"]h$]h&]uh1hh^/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:167: ./drivers/gpu/drm/drm_print.chMvhjubh)}(hOften in driver debug, it's useful to be able to either capture the contents of registers in the steady state using debugfs or at specific points during operation. This lets the driver have a single list of registers for both.h]hOften in driver debug, it’s useful to be able to either capture the contents of registers in the steady state using debugfs or at specific points during operation. This lets the driver have a single list of registers for both.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh^/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:167: ./drivers/gpu/drm/drm_print.chMuhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jOhjhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jdrm_print_hex_dump (C function)c.drm_print_hex_dumphNtauh1jhjhhhNhNubj)}(hhh](j)}(h^void drm_print_hex_dump (struct drm_printer *p, const char *prefix, const u8 *buf, size_t len)h]j)}(h]void drm_print_hex_dump(struct drm_printer *p, const char *prefix, const u8 *buf, size_t len)h](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)}(hdrm_print_hex_dumph]j)}(hdrm_print_hex_dumph]hdrm_print_hex_dump}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jAjBuh1jhjhhhjhMubj,)}(hF(struct drm_printer *p, const char *prefix, const u8 *buf, size_t len)h](j2)}(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&]uh1jhj ubah}(h]h ]h"]h$]h&] refdomainj reftypej reftargetj%modnameN classnameNjj)}j]j)}jjsbc.drm_print_hex_dumpasbuh1hhjubj)}(h h]h }(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]hp}(hj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjAjBuh1j1hjubj2)}(hconst char *prefixh](j)}(hj*h]hconst}(hjvhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjrubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjrubj))}(hcharh]hchar}(hjhhhNhNubah}(h]h ]j%)ah"]h$]h&]uh1j)hjrubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjrubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjrubj)}(hprefixh]hprefix}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjrubeh}(h]h ]h"]h$]h&]noemphjAjBuh1j1hjubj2)}(h const u8 *bufh](j)}(hj*h]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hu8h]hu8}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj reftypej reftargetjmodnameN classnameNjj)}j]j?c.drm_print_hex_dumpasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hbufh]hbuf}(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjAjBuh1j1hjubj2)}(h size_t lenh](h)}(hhh]j)}(hsize_th]hsize_t}(hjFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjCubah}(h]h ]h"]h$]h&] refdomainj reftypej reftargetjHmodnameN classnameNjj)}j]j?c.drm_print_hex_dumpasbuh1hhj?ubj)}(h h]h }(hjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?ubj)}(hlenh]hlen}(hjrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?ubeh}(h]h ]h"]h$]h&]noemphjAjBuh1j1hjubeh}(h]h ]h"]h$]h&]jAjBuh1j+hjhhhjhMubeh}(h]h ]h"]h$]h&]jAjBjuh1jjjhjhhhjhMubah}(h]jah ](j j!eh"]h$]h&]j%j&)j'huh1jhjhMhjhhubj))}(hhh]h)}(h2print a hex dump to a :c:type:`drm_printer` streamh](hprint a hex dump to a }(hjhhhNhNubh)}(h:c:type:`drm_printer`h]j)}(hjh]h drm_printer}(hjhhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjj)}j]j?c.drm_print_hex_dumpasbj drm_printeruh1hhjhKhjubh stream}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh^/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:167: ./drivers/gpu/drm/drm_print.chMhjhhubah}(h]h ]h"]h$]h&]uh1j(hjhhhjhMubeh}(h]h ](j functioneh"]h$]h&]jIj jJjjKjjLjMjNuh1jhhhjhNhNubjP)}(hX**Parameters** ``struct drm_printer *p`` The :c:type:`drm_printer` ``const char *prefix`` Prefix for each line, may be NULL for no prefix ``const u8 *buf`` Buffer to dump ``size_t len`` Length of buffer **Description** Print hex dump to :c:type:`drm_printer`, with 16 space-separated hex bytes per line, optionally with a prefix on each line. No separator is added after prefix.h](h)}(h**Parameters**h]jZ)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubah}(h]h ]h"]h$]h&]uh1hh^/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:167: ./drivers/gpu/drm/drm_print.chMhjubj)}(hhh](j)}(h4``struct drm_printer *p`` The :c:type:`drm_printer` h](j)}(h``struct drm_printer *p``h]j)}(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)}(hj(h]h drm_printer}(hj*hhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhj&ubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjjj drm_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)}(hj]h]hconst char *prefix}(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.chMhjWubj)}(hhh]h)}(h/Prefix for each line, may be NULL for no prefixh]h/Prefix for each line, may be NULL for no prefix}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjrhMhjsubah}(h]h ]h"]h$]h&]uh1jhjWubeh}(h]h ]h"]h$]h&]uh1jhjrhMhjubj)}(h!``const u8 *buf`` Buffer to dump h](j)}(h``const u8 *buf``h]j)}(hjh]h const u8 *buf}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh^/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:167: ./drivers/gpu/drm/drm_print.chMhjubj)}(hhh]h)}(hBuffer to dumph]hBuffer to dump}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h ``size_t len`` Length of buffer h](j)}(h``size_t len``h]j)}(hjh]h size_t len}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh^/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:167: ./drivers/gpu/drm/drm_print.chMhjubj)}(hhh]h)}(hLength of bufferh]hLength of buffer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]jZ)}(hj h]h Description}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubah}(h]h ]h"]h$]h&]uh1hh^/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:167: ./drivers/gpu/drm/drm_print.chMhjubh)}(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 }(hj hhhNhNubh)}(h:c:type:`drm_printer`h]j)}(hj*h]h drm_printer}(hj,hhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhj(ubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjjj drm_printeruh1hh^/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:167: ./drivers/gpu/drm/drm_print.chMhj ubhx, with 16 space-separated hex bytes per line, optionally with a prefix on each line. No separator is added after prefix.}(hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjGhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jOhjhhhNhNubeh}(h]printerah ]h"]printerah$]h&]uh1hhjhhhhhKubh)}(hhh](h)}(h Utilitiesh]h Utilities}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjahhhhhKubh)}(hJMacros and inline functions that does not naturally belong in other placesh]hJMacros and inline functions that does not naturally belong in other places}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:173: ./include/drm/drm_util.hhKhjahhubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jdrm_can_sleep (C function)c.drm_can_sleephNtauh1jhjahhhNhNubj)}(hhh](j)}(hbool drm_can_sleep (void)h]j)}(hbool drm_can_sleep(void)h](j))}(hj)h]hbool}(hjhhhNhNubah}(h]h ]j%)ah"]h$]h&]uh1j)hjhhhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:176: ./include/drm/drm_util.hhK4ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhK4ubj)}(h drm_can_sleeph]j)}(h drm_can_sleeph]h drm_can_sleep}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jAjBuh1jhjhhhjhK4ubj,)}(h(void)h]j2)}(hvoidh]j))}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j%)ah"]h$]h&]uh1j)hjubah}(h]h ]h"]h$]h&]noemphjAjBuh1j1hjubah}(h]h ]h"]h$]h&]jAjBuh1j+hjhhhjhK4ubeh}(h]h ]h"]h$]h&]jAjBjuh1jjjhjhhhjhK4ubah}(h]jah ](j j!eh"]h$]h&]j%j&)j'huh1jhjhK4hjhhubj))}(hhh]h)}(h'returns true if currently okay to sleeph]h'returns true if currently okay to sleep}(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(hjhhhjhK4ubeh}(h]h ](j functioneh"]h$]h&]jIj jJjjKjjLjMjNuh1jhhhjahNhNubjP)}(hXK**Parameters** ``void`` no arguments **Description** This function shall not be used in new code. The check for running in atomic context may not work - see linux/preempt.h. FIXME: All users of drm_can_sleep should be removed (see todo.rst) **Return** False if kgdb is active, we are in atomic context or irqs are disabled.h](h)}(h**Parameters**h]jZ)}(hj"h]h Parameters}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj ubah}(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)}(hjAh]hvoid}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1jhj?ubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:176: ./include/drm/drm_util.hhKhj;ubj)}(hhh]h)}(h no argumentsh]h no arguments}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjVhKhjWubah}(h]h ]h"]h$]h&]uh1jhj;ubeh}(h]h ]h"]h$]h&]uh1jhjVhKhj8ubah}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]jZ)}(hj|h]h Description}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjzubah}(h]h ]h"]h$]h&]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)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:176: ./include/drm/drm_util.hhK8hjubh)}(h **Return**h]jZ)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:176: ./include/drm/drm_util.hhK: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.}(hjhhhNhNubah}(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&]uh1jOhjahhhNhNubeh}(h] utilitiesah ]h"] utilitiesah$]h&]uh1hhjhhhhhKubeh}(h]misc-utilitiesah ]h"]misc utilitiesah$]h&]uh1hhhhhhhhKubh)}(hhh](h)}(h Unit testingh]h Unit testing}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhKubh)}(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?}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj,hhhhhKubh)}(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 }(hj=hhhNhNubj)}(h&``drivers/gpu/drm/tests/.kunitconfig``h]h"drivers/gpu/drm/tests/.kunitconfig}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj=ubh. It can be used by }(hj=hhhNhNubj)}(h ``kunit.py``h]hkunit.py}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj=ubh as follows:}(hj=hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhKhj,hhubj2)}(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}hjosbah}(h]h ]h"]h$]h&]jAjBjCjDbashjE}uh1j1hhhKhj,hhubhnote)}(hThe configuration included in ``.kunitconfig`` should be as generic as possible. ``CONFIG_VIRTIO_UML`` and ``CONFIG_UML_PCI_OVER_VIRTIO`` are not included in it because they are only required for User Mode Linux.h]h)}(hThe configuration included in ``.kunitconfig`` should be as generic as possible. ``CONFIG_VIRTIO_UML`` and ``CONFIG_UML_PCI_OVER_VIRTIO`` are not included in it because they are only required for User Mode Linux.h](hThe configuration included in }(hjhhhNhNubj)}(h``.kunitconfig``h]h .kunitconfig}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh# should be as generic as possible. }(hjhhhNhNubj)}(h``CONFIG_VIRTIO_UML``h]hCONFIG_VIRTIO_UML}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh and }(hjhhhNhNubj)}(h``CONFIG_UML_PCI_OVER_VIRTIO``h]hCONFIG_UML_PCI_OVER_VIRTIO}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhK are not included in it because they are only required for User Mode Linux.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1jhj,hhhhhNubeh}(h]how-to-run-the-testsah ]h"]how to run the tests?ah$]h&]uh1hhjhhhhhKubh)}(hhh](h)}(hKUnit Coverage Rulesh]hKUnit Coverage Rules}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhKubh)}(hX*KUnit support is gradually added to the DRM framework and helpers. There's no general requirement for the framework and helpers to have KUnit tests at the moment. However, patches that are affecting a function or helper already covered by KUnit tests must provide tests if the change calls for one.h]hX,KUnit support is gradually added to the DRM framework and helpers. There’s no general requirement for the framework and helpers to have KUnit tests at the moment. However, patches that are affecting a function or helper already covered by KUnit tests must provide tests if the change calls for one.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjhhubeh}(h]kunit-coverage-rulesah ]h"]kunit coverage rulesah$]h&]uh1hhjhhhhhKubeh}(h]kunitah ]h"]kunitah$]h&]uh1hhjhhhhhKubeh}(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}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj-hhhhhKubh)}(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.}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj-hhubh)}(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 }(hjLhhhNhNubj`A)}(h*only*h]honly}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1j_AhjLubh 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 }(hjLhhhNhNubh)}(h.:c:type:`struct device_driver `h]j)}(hjhh]hstruct device_driver}(hjjhhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjfubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjjj device_driveruh1hhhhKhjLubh+ dev_pm_ops) and set these methods to NULL.}(hjLhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhKhj-hhubeh}(h]legacy-suspend-resumeah ]h"]legacy suspend/resumeah$]h&]uh1hhjhhhhhKubh)}(hhh](h)}(hLegacy DMA Servicesh]hLegacy DMA Services}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhKubh)}(hwThis should cover how DMA mapping etc. is supported by the core. These functions are deprecated and should not be used.h]hwThis should cover how DMA mapping etc. is supported by the core. These functions are deprecated and should not be used.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjhhubeh}(h]legacy-dma-servicesah ]h"]legacy dma servicesah$]h&]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_handlerjerror_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}jm]jmasnameids}(jjjmjmjjjjjjj\jYjGOjDOjjjPjPjPjPjPjPjPjPjmjmjjjjmjj~jjj^j[jjj jjjjjjjjjjjjju nametypes}(jjmjjjj\jGOjjPjPjPjPjmjjjjj^jj jjjjjjuh}(jhjmhjjjjjjjYjjDOj_jjjjjj2j7jjjjjjjsjxjC&jH&j )j)j*j*jW-j\-j*0j/0j1j1ja3jf3j5j5j6j6jZ8j_8j:j:j=j=jAjAjDjDjSFjXFjGjGjJjJjMjMjPjJOjPj[OjPjPjPjPjmjPjQjQjTjTjnWjsWjZZj_Zj\j\j^j^j`j`jVcj[cjfjfjjj jjkjkjjmjmjmj~jmjojojpjpjptjutjajfjdjijgjljjjoj~jjjjjjjjjj9j>j@jEjFjKjjjpjujݧjjJjOjjjïjȯjj$jjj[jjjjjjjjnjsj j%jjj&j+jjjj j$j)jsjxj&j+jjj}jj j%jjjjjjjjjjjGjLjjjjajjjjjjjj,jjjjjj-jju footnote_refs} citation_refs} autofootnotes]autofootnote_refs]symbol_footnotes]symbol_footnote_refs] footnotes] citations]autofootnote_startKsymbol_footnote_startK id_counter collectionsCounter}Rparse_messages]hsystem_message)}(hhh]h)}(heUnexpected possible title overline or transition. Treating it as ordinary text because it's so short.h]hgUnexpected possible title overline or transition. Treating it as ordinary text because it’s so short.}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjVubah}(h]h ]h"]h$]h&]levelKtypeINFOlineKXsourcejeuh1jThjTubatransform_messages]jU)}(hhh]h)}(hhh]h5Hyperlink target "drm-driver-fops" is not referenced.}hjwsbah}(h]h ]h"]h$]h&]uh1hhjtubah}(h]h ]h"]h$]h&]levelKtypejosourcehlineKuh1jTuba transformerN include_log] decorationNhhub.