sphinx.addnodesdocument)}( rawsourcechildren]( translations LanguagesNode)}(hhh](h pending_xref)}(hhh]docutils.nodesTextChinese (Simplified)}parenthsba attributes}(ids]classes]names]dupnames]backrefs] refdomainstdreftypedoc reftarget%/translations/zh_CN/gpu/drm-internalsmodnameN classnameN refexplicitutagnamehhh ubh)}(hhh]hChinese (Traditional)}hh2sbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget%/translations/zh_TW/gpu/drm-internalsmodnameN classnameN refexplicituh1hhh ubh)}(hhh]hItalian}hhFsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget%/translations/it_IT/gpu/drm-internalsmodnameN classnameN refexplicituh1hhh ubh)}(hhh]hJapanese}hhZsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget%/translations/ja_JP/gpu/drm-internalsmodnameN classnameN refexplicituh1hhh ubh)}(hhh]hKorean}hhnsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget%/translations/ko_KR/gpu/drm-internalsmodnameN classnameN refexplicituh1hhh ubh)}(hhh]hSpanish}hhsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget%/translations/sp_SP/gpu/drm-internalsmodnameN classnameN refexplicituh1hhh ubeh}(h]h ]h"]h$]h&]current_languageEnglishuh1h hh _documenthsourceNlineNubhsection)}(hhh](htitle)}(h DRM Internalsh]h DRM Internals}(hhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhhh?/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals.rsthKubh paragraph)}(hThis chapter documents DRM internals relevant to driver authors and developers working to add support for the latest features to existing drivers.h]hThis chapter documents DRM internals relevant to driver authors and developers working to add support for the latest features to existing drivers.}(hhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhhhhubh)}(hXFirst, we go over some typical driver initialization requirements, like setting up command buffers, creating an initial output configuration, and initializing core services. Subsequent sections cover core internals in more detail, providing implementation notes and examples.h]hXFirst, we go over some typical driver initialization requirements, like setting up command buffers, creating an initial output configuration, and initializing core services. Subsequent sections cover core internals in more detail, providing implementation notes and examples.}(hhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK hhhhubh)}(hXdThe DRM layer provides several services to graphics drivers, many of them driven by the application interfaces it provides through libdrm, the library that wraps most of the DRM ioctls. These include vblank event handling, memory management, output management, framebuffer management, command submission & fencing, suspend/resume support, and DMA services.h]hXdThe DRM layer provides several services to graphics drivers, many of them driven by the application interfaces it provides through libdrm, the library that wraps most of the DRM ioctls. These include vblank event handling, memory management, output management, framebuffer management, command submission & fencing, suspend/resume support, and DMA services.}(hhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhhhhubh)}(hhh](h)}(hDriver Initializationh]hDriver Initialization}(hhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhhhhhKubh)}(hXdAt the core of every DRM driver is a :c:type:`struct drm_driver ` structure. Drivers typically statically initialize a drm_driver structure, and then pass it to drm_dev_alloc() to allocate a device instance. After the device instance is fully initialized it can be registered (which makes it accessible from userspace) using drm_dev_register().h](h%At the core of every DRM driver is a }(hhhhhNhNubh)}(h(:c:type:`struct drm_driver `h]hliteral)}(hhh]hstruct drm_driver}(hjhhhNhNubah}(h]h ](xrefcc-typeeh"]h$]h&]uh1jhhubah}(h]h ]h"]h$]h&]refdocgpu/drm-internals refdomainj reftypetype refexplicitrefwarn reftarget drm_driveruh1hhhhKhhubhX structure. Drivers typically statically initialize a drm_driver structure, and then pass it to drm_dev_alloc() to allocate a device instance. After the device instance is fully initialized it can be registered (which makes it accessible from userspace) using drm_dev_register().}(hhhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhKhhhhubh)}(hXThe :c:type:`struct drm_driver ` structure contains static information that describes the driver and features it supports, and pointers to methods that the DRM core will call to implement the DRM API. We will first go through the :c:type:`struct drm_driver ` static information fields, and will then describe individual operations in details as they get used in later sections.h](hThe }(hj+hhhNhNubh)}(h(:c:type:`struct drm_driver `h]j)}(hj5h]hstruct drm_driver}(hj7hhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhj3ubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnj drm_driveruh1hhhhKhj+ubh structure contains static information that describes the driver and features it supports, and pointers to methods that the DRM core will call to implement the DRM API. We will first go through the }(hj+hhhNhNubh)}(h(:c:type:`struct drm_driver `h]j)}(hjXh]hstruct drm_driver}(hjZhhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjVubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnj drm_driveruh1hhhhKhj+ubhw static information fields, and will then describe individual operations in details as they get used in later sections.}(hj+hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhKhhhhubh)}(hhh](h)}(hDriver Informationh]hDriver Information}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhK(ubh)}(hhh](h)}(hMajor, Minor and Patchlevelh]hMajor, Minor and Patchlevel}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhK+ubh)}(hint major; int minor; int patchlevel; The DRM core identifies driver versions by a major, minor and patch level triplet. The information is printed to the kernel log at initialization time and passed to userspace through the DRM_IOCTL_VERSION ioctl.h]hint major; int minor; int patchlevel; The DRM core identifies driver versions by a major, minor and patch level triplet. The information is printed to the kernel log at initialization time and passed to userspace through the DRM_IOCTL_VERSION ioctl.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK-hjhhubh)}(hXThe major and minor numbers are also used to verify the requested driver API version passed to DRM_IOCTL_SET_VERSION. When the driver API changes between minor versions, applications can call DRM_IOCTL_SET_VERSION to select a specific version of the API. If the requested major isn't equal to the driver major, or the requested minor is larger than the driver minor, the DRM_IOCTL_SET_VERSION call will return an error. Otherwise the driver's set_version() method will be called with the requested version.h]hXThe major and minor numbers are also used to verify the requested driver API version passed to DRM_IOCTL_SET_VERSION. When the driver API changes between minor versions, applications can call DRM_IOCTL_SET_VERSION to select a specific version of the API. If the requested major isn’t equal to the driver major, or the requested minor is larger than the driver minor, the DRM_IOCTL_SET_VERSION call will return an error. Otherwise the driver’s set_version() method will be called with the requested version.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK3hjhhubeh}(h]major-minor-and-patchlevelah ]h"]major, minor and patchlevelah$]h&]uh1hhjhhhhhK+ubh)}(hhh](h)}(hName and Descriptionh]hName and Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhK=ubh)}(hchar \*name; char \*desc; char \*date; The driver name is printed to the kernel log at initialization time, used for IRQ registration and passed to userspace through DRM_IOCTL_VERSION.h]hchar *name; char *desc; char *date; The driver name is printed to the kernel log at initialization time, used for IRQ registration and passed to userspace through DRM_IOCTL_VERSION.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK?hjhhubh)}(hThe driver description is a purely informative string passed to userspace through the DRM_IOCTL_VERSION ioctl and otherwise unused by the kernel.h]hThe driver description is a purely informative string passed to userspace through the DRM_IOCTL_VERSION ioctl and otherwise unused by the kernel.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKDhjhhubeh}(h]name-and-descriptionah ]h"]name and descriptionah$]h&]uh1hhjhhhhhK=ubeh}(h]driver-informationah ]h"]driver informationah$]h&]uh1hhhhhhhhK(ubh)}(hhh](h)}(hModule Initializationh]hModule Initialization}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhKIubh)}(hXThis library provides helpers registering DRM drivers during module initialization and shutdown. The provided helpers act like bus-specific module helpers, such as module_pci_driver(), but respect additional parameters that control DRM driver registration.h]hXThis library provides helpers registering DRM drivers during module initialization and shutdown. The provided helpers act like bus-specific module helpers, such as module_pci_driver(), but respect additional parameters that control DRM driver registration.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:75: ./include/drm/drm_module.hhK hjhhubh)}(hMBelow is an example of initializing a DRM driver for a device on the PCI bus.h]hMBelow is an example of initializing a DRM driver for a device on the PCI bus.}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:75: ./include/drm/drm_module.hhKhjhhubh literal_block)}(hGstruct pci_driver my_pci_drv = { }; drm_module_pci_driver(my_pci_drv);h]hGstruct pci_driver my_pci_drv = { }; drm_module_pci_driver(my_pci_drv);}hj3sbah}(h]h ]h"]h$]h&] xml:spacepreserveforcelanguagej highlight_args}uh1j1hZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:75: ./include/drm/drm_module.hhKhjhhubh)}(hThe generated code will test if DRM drivers are enabled and register the PCI driver my_pci_drv. For more complex module initialization, you can still use module_init() and module_exit() in your driver.h]hThe generated code will test if DRM drivers are enabled and register the PCI driver my_pci_drv. For more complex module initialization, you can still use module_init() and module_exit() in your driver.}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:75: ./include/drm/drm_module.hhKhjhhubeh}(h]module-initializationah ]h"]module initializationah$]h&]uh1hhhhhhhhKIubh)}(hhh](h)}(h#Device Instance and Driver Handlingh]h#Device Instance and Driver Handling}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj_hhhhhKOubh)}(hXTA device instance for a drm driver is represented by :c:type:`struct drm_device `. This is allocated and initialized with devm_drm_dev_alloc(), usually from bus-specific ->probe() callbacks implemented by the driver. The driver then needs to initialize all the various subsystems for the drm device like memory management, vblank handling, modesetting support and initial output configuration plus obviously initialize all the corresponding hardware bits. Finally when everything is up and running and ready for userspace the device instance can be published using drm_dev_register().h](h5A device instance for a drm driver is represented by }(hjphhhNhNubh)}(h(:c:type:`struct drm_device `h]j)}(hjzh]hstruct drm_device}(hj|hhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjxubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnj drm_deviceuh1hh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:81: ./drivers/gpu/drm/drm_drv.chM hjpubhX. This is allocated and initialized with devm_drm_dev_alloc(), usually from bus-specific ->probe() callbacks implemented by the driver. The driver then needs to initialize all the various subsystems for the drm device like memory management, vblank handling, modesetting support and initial output configuration plus obviously initialize all the corresponding hardware bits. Finally when everything is up and running and ready for userspace the device instance can be published using drm_dev_register().}(hjphhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhM hj_hhubh)}(hXThere is also deprecated support for initializing device instances using bus-specific helpers and the :c:type:`drm_driver.load ` callback. But due to backwards-compatibility needs the device instance have to be published too early, which requires unpretty global locking to make safe and is therefore only support for existing drivers not yet converted to the new scheme.h](hfThere is also deprecated support for initializing device instances using bus-specific helpers and the }(hjhhhNhNubh)}(h&:c:type:`drm_driver.load `h]j)}(hjh]hdrm_driver.load}(hjhhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnj drm_driveruh1hh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:81: ./drivers/gpu/drm/drm_drv.chMhjubh callback. But due to backwards-compatibility needs the device instance have to be published too early, which requires unpretty global locking to make safe and is therefore only support for existing drivers not yet converted to the new scheme.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMhj_hhubh)}(hXWhen cleaning up a device instance everything needs to be done in reverse: First unpublish the device instance with drm_dev_unregister(). Then clean up any other resources allocated at device initialization and drop the driver's reference to :c:type:`drm_device` using drm_dev_put().h](hWhen cleaning up a device instance everything needs to be done in reverse: First unpublish the device instance with drm_dev_unregister(). Then clean up any other resources allocated at device initialization and drop the driver’s reference to }(hjhhhNhNubh)}(h:c:type:`drm_device`h]j)}(hjh]h drm_device}(hjhhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnj drm_deviceuh1hh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:81: ./drivers/gpu/drm/drm_drv.chMhjubh using drm_dev_put().}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMhj_hhubh)}(hXJNote that any allocation or resource which is visible to userspace must be released only when the final drm_dev_put() is called, and not when the driver is unbound from the underlying physical struct :c:type:`device`. Best to use :c:type:`drm_device` managed resources with drmm_add_action(), drmm_kmalloc() and related functions.h](hNote that any allocation or resource which is visible to userspace must be released only when the final drm_dev_put() is called, and not when the driver is unbound from the underlying physical struct }(hjhhhNhNubh)}(h:c:type:`device`h]j)}(hjh]hdevice}(hjhhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnjdeviceuh1hh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:81: ./drivers/gpu/drm/drm_drv.chMhjubh. Best to use }(hjhhhNhNubh)}(h:c:type:`drm_device`h]j)}(hj4h]h drm_device}(hj6hhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhj2ubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnj drm_deviceuh1hhj-hMhjubhP managed resources with drmm_add_action(), drmm_kmalloc() and related functions.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj-hMhj_hhubh)}(hdevres managed resources like devm_kmalloc() can only be used for resources directly related to the underlying hardware device, and only used in code paths fully protected by drm_dev_enter() and drm_dev_exit().h]hdevres managed resources like devm_kmalloc() can only be used for resources directly related to the underlying hardware device, and only used in code paths fully protected by drm_dev_enter() and drm_dev_exit().}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:81: ./drivers/gpu/drm/drm_drv.chM#hj_hhubh)}(hhh](h)}(hDisplay driver exampleh]hDisplay driver example}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjjhNhNubh)}(hThe following example shows a typical structure of a DRM display driver. The example focus on the probe() function and the other functions that is almost always present and serves as a demonstration of devm_drm_dev_alloc().h]hThe following example shows a typical structure of a DRM display driver. The example focus on the probe() function and the other functions that is almost always present and serves as a demonstration of devm_drm_dev_alloc().}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:81: ./drivers/gpu/drm/drm_drv.chM*hjjubj2)}(hX struct driver_device { struct drm_device drm; void *userspace_facing; struct clk *pclk; }; static const struct drm_driver driver_drm_driver = { [...] }; static int driver_probe(struct platform_device *pdev) { struct driver_device *priv; struct drm_device *drm; int ret; priv = devm_drm_dev_alloc(&pdev->dev, &driver_drm_driver, struct driver_device, drm); if (IS_ERR(priv)) return PTR_ERR(priv); drm = &priv->drm; ret = drmm_mode_config_init(drm); if (ret) return ret; priv->userspace_facing = drmm_kzalloc(..., GFP_KERNEL); if (!priv->userspace_facing) return -ENOMEM; priv->pclk = devm_clk_get(dev, "PCLK"); if (IS_ERR(priv->pclk)) return PTR_ERR(priv->pclk); // Further setup, display pipeline etc platform_set_drvdata(pdev, drm); drm_mode_config_reset(drm); ret = drm_dev_register(drm); if (ret) return ret; drm_fbdev_{...}_setup(drm, 32); return 0; } // This function is called before the devm_ resources are released static int driver_remove(struct platform_device *pdev) { struct drm_device *drm = platform_get_drvdata(pdev); drm_dev_unregister(drm); drm_atomic_helper_shutdown(drm) return 0; } // This function is called on kernel restart and shutdown static void driver_shutdown(struct platform_device *pdev) { drm_atomic_helper_shutdown(platform_get_drvdata(pdev)); } static int __maybe_unused driver_pm_suspend(struct device *dev) { return drm_mode_config_helper_suspend(dev_get_drvdata(dev)); } static int __maybe_unused driver_pm_resume(struct device *dev) { drm_mode_config_helper_resume(dev_get_drvdata(dev)); return 0; } static const struct dev_pm_ops driver_pm_ops = { SET_SYSTEM_SLEEP_PM_OPS(driver_pm_suspend, driver_pm_resume) }; static struct platform_driver driver_driver = { .driver = { [...] .pm = &driver_pm_ops, }, .probe = driver_probe, .remove = driver_remove, .shutdown = driver_shutdown, }; module_platform_driver(driver_driver);h]hX struct driver_device { struct drm_device drm; void *userspace_facing; struct clk *pclk; }; static const struct drm_driver driver_drm_driver = { [...] }; static int driver_probe(struct platform_device *pdev) { struct driver_device *priv; struct drm_device *drm; int ret; priv = devm_drm_dev_alloc(&pdev->dev, &driver_drm_driver, struct driver_device, drm); if (IS_ERR(priv)) return PTR_ERR(priv); drm = &priv->drm; ret = drmm_mode_config_init(drm); if (ret) return ret; priv->userspace_facing = drmm_kzalloc(..., GFP_KERNEL); if (!priv->userspace_facing) return -ENOMEM; priv->pclk = devm_clk_get(dev, "PCLK"); if (IS_ERR(priv->pclk)) return PTR_ERR(priv->pclk); // Further setup, display pipeline etc platform_set_drvdata(pdev, drm); drm_mode_config_reset(drm); ret = drm_dev_register(drm); if (ret) return ret; drm_fbdev_{...}_setup(drm, 32); return 0; } // This function is called before the devm_ resources are released static int driver_remove(struct platform_device *pdev) { struct drm_device *drm = platform_get_drvdata(pdev); drm_dev_unregister(drm); drm_atomic_helper_shutdown(drm) return 0; } // This function is called on kernel restart and shutdown static void driver_shutdown(struct platform_device *pdev) { drm_atomic_helper_shutdown(platform_get_drvdata(pdev)); } static int __maybe_unused driver_pm_suspend(struct device *dev) { return drm_mode_config_helper_suspend(dev_get_drvdata(dev)); } static int __maybe_unused driver_pm_resume(struct device *dev) { drm_mode_config_helper_resume(dev_get_drvdata(dev)); return 0; } static const struct dev_pm_ops driver_pm_ops = { SET_SYSTEM_SLEEP_PM_OPS(driver_pm_suspend, driver_pm_resume) }; static struct platform_driver driver_driver = { .driver = { [...] .pm = &driver_pm_ops, }, .probe = driver_probe, .remove = driver_remove, .shutdown = driver_shutdown, }; module_platform_driver(driver_driver);}hjsbah}(h]h ]h"]h$]h&]jAjBjCjDj jE}uh1j1h[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:81: ./drivers/gpu/drm/drm_drv.chM.hjjubh)}(hX<Drivers that want to support device unplugging (USB, DT overlay unload) should use drm_dev_unplug() instead of drm_dev_unregister(). The driver must protect regions that is accessing device resources to prevent use after they're released. This is done using drm_dev_enter() and drm_dev_exit(). There is one shortcoming however, drm_dev_unplug() marks the drm_device as unplugged before drm_atomic_helper_shutdown() is called. This means that if the disable code paths are protected, they will not run on regular driver module unload, possibly leaving the hardware enabled.h]hX>Drivers that want to support device unplugging (USB, DT overlay unload) should use drm_dev_unplug() instead of drm_dev_unregister(). The driver must protect regions that is accessing device resources to prevent use after they’re released. This is done using drm_dev_enter() and drm_dev_exit(). There is one shortcoming however, drm_dev_unplug() marks the drm_device as unplugged before drm_atomic_helper_shutdown() is called. This means that if the disable code paths are protected, they will not run on regular driver module unload, possibly leaving the hardware enabled.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:81: ./drivers/gpu/drm/drm_drv.chMhjjubeh}(h]display-driver-exampleah ]h"]display driver exampleah$]h&]uh1hhj_hhhNhNubhindex)}(hhh]h}(h]h ]h"]h$]h&]entries](singleswitch_power_state (C enum)c.switch_power_statehNtauh1jhj_hhhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:84: ./include/drm/drm_device.hhNubhdesc)}(hhh](hdesc_signature)}(hswitch_power_stateh]hdesc_signature_line)}(henum switch_power_stateh](hdesc_sig_keyword)}(henumh]henum}(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)}(hswitch_power_stateh]h desc_sig_name)}(hjh]hswitch_power_state}(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)}(hpower state of drm deviceh]hpower state of drm device}(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 enumeh"]h$]h&]domainj objtypejFdesctypejFnoindex noindexentrynocontentsentryuh1jhhhj_hjhNubh container)}(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]hstrong)}(hjXh]h Constants}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjVubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:84: ./include/drm/drm_device.hhK&hjRubhdefinition_list)}(hhh](hdefinition_list_item)}(h*``DRM_SWITCH_POWER_ON`` Power state is ON h](hterm)}(h``DRM_SWITCH_POWER_ON``h]j)}(hjh]hDRM_SWITCH_POWER_ON}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj}ubah}(h]h ]h"]h$]h&]uh1j{hZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:84: ./include/drm/drm_device.hhK)hjwubh definition)}(hhh]h)}(hPower state is ONh]hPower state is ON}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhK)hjubah}(h]h ]h"]h$]h&]uh1jhjwubeh}(h]h ]h"]h$]h&]uh1juhjhK)hjrubjv)}(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&]uh1j{hZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:84: ./include/drm/drm_device.hhK,hjubj)}(hhh]h)}(hPower state is OFFh]hPower state is OFF}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhK,hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1juhjhK,hjrubjv)}(h6``DRM_SWITCH_POWER_CHANGING`` Power state is changing h](j|)}(h``DRM_SWITCH_POWER_CHANGING``h]j)}(hjh]hDRM_SWITCH_POWER_CHANGING}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1j{hZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:84: ./include/drm/drm_device.hhK/hjubj)}(hhh]h)}(hPower state is changingh]hPower state is changing}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhK/hj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1juhjhK/hjrubjv)}(h*``DRM_SWITCH_POWER_DYNAMIC_OFF`` Suspendedh](j|)}(h ``DRM_SWITCH_POWER_DYNAMIC_OFF``h]j)}(hj,h]hDRM_SWITCH_POWER_DYNAMIC_OFF}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj*ubah}(h]h ]h"]h$]h&]uh1j{hZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:84: ./include/drm/drm_device.hhK1hj&ubj)}(hhh]h)}(h Suspendedh]h Suspended}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:84: ./include/drm/drm_device.hhK2hjBubah}(h]h ]h"]h$]h&]uh1jhj&ubeh}(h]h ]h"]h$]h&]uh1juhjAhK1hjrubeh}(h]h ]h"]h$]h&]uh1jphjRubeh}(h]h ] kernelindentah"]h$]h&]uh1jPhj_hhhjhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jdrm_device (C struct) c.drm_devicehNtauh1jhj_hhhjhNubj)}(hhh](j)}(h drm_deviceh]j)}(hstruct drm_deviceh](j)}(hstructh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:84: ./include/drm/drm_device.hhK8ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhK8ubj)}(h drm_deviceh]j)}(hjh]h drm_device}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jAjBuh1jhjhhhjhK8ubeh}(h]h ]h"]h$]h&]jAjBjuh1jjjhj~hhhjhK8ubah}(h]jyah ](j!j"eh"]h$]h&]j&j')j(huh1jhjhK8hj{hhubj*)}(hhh]h)}(hDRM device structureh]hDRM device structure}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:84: ./include/drm/drm_device.hhK4hjhhubah}(h]h ]h"]h$]h&]uh1j)hj{hhhjhK8ubeh}(h]h ](j structeh"]h$]h&]jJj jKjjLjjMjNjOuh1jhhhj_hjhNubjQ)}(hXg**Definition**:: struct drm_device { int if_version; struct kref ref; struct device *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; }; **Members** ``if_version`` Highest interface version set ``ref`` Object ref-count ``dev`` Device structure of bus-device ``managed`` Managed resources linked to the lifetime of this :c:type:`drm_device` as tracked by **ref**. ``driver`` DRM driver managing the device ``dev_private`` DRM driver private data. This is deprecated and should be left set to NULL. Instead of using this pointer it is recommended that drivers use devm_drm_dev_alloc() and embed struct :c:type:`drm_device` in their larger per-device structure. ``primary`` Primary node. Drivers should not interact with this directly. debugfs interfaces can be registered with drm_debugfs_add_file(), and sysfs should be directly added on the hardware (and not character device node) struct device **dev**. ``render`` Render node. Drivers should not interact with this directly ever. Drivers should not expose any additional interfaces in debugfs or sysfs on this node. ``accel`` Compute Acceleration node ``registered`` Internally used by drm_dev_register() and drm_connector_register(). ``master`` Currently active master for this device. Protected by :c:type:`master_mutex` ``driver_features`` per-device driver features Drivers can clear specific flags here to disallow certain features on a per-device basis while still sharing a single :c:type:`struct drm_driver ` instance across all devices. ``unplugged`` Flag to tell if the device has been unplugged. See drm_dev_enter() and drm_dev_is_unplugged(). ``anon_inode`` inode for private address-space ``unique`` Unique name of the device ``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](j[)}(h**Definition**h]h Definition}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjubh:}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:84: ./include/drm/drm_device.hhK8hjubj2)}(hX(struct drm_device { int if_version; struct kref ref; struct device *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]hX(struct drm_device { int if_version; struct kref ref; struct device *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; };}hjsbah}(h]h ]h"]h$]h&]jAjBuh1j1hZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:84: ./include/drm/drm_device.hhK:hjubh)}(h **Members**h]j[)}(hjh]hMembers}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:84: ./include/drm/drm_device.hhKhhjubjq)}(hhh](jv)}(h-``if_version`` Highest interface version set h](j|)}(h``if_version``h]j)}(hj6h]h if_version}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj4ubah}(h]h ]h"]h$]h&]uh1j{hZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:84: ./include/drm/drm_device.hhK:hj0ubj)}(hhh]h)}(hHighest interface version seth]hHighest interface version set}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjKhK:hjLubah}(h]h ]h"]h$]h&]uh1jhj0ubeh}(h]h ]h"]h$]h&]uh1juhjKhK:hj-ubjv)}(h``ref`` Object ref-count h](j|)}(h``ref``h]j)}(hjoh]href}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjmubah}(h]h ]h"]h$]h&]uh1j{hZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:84: ./include/drm/drm_device.hhKhjiubj)}(hhh]h)}(hObject ref-counth]hObject ref-count}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjiubeh}(h]h ]h"]h$]h&]uh1juhjhKhj-ubjv)}(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&]uh1j{hZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:84: ./include/drm/drm_device.hhKhjubj)}(hhh]h)}(hDevice structure of bus-deviceh]hDevice structure of bus-device}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1juhjhKhj-ubjv)}(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&]uh1j{hZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:84: ./include/drm/drm_device.hhKFhjubj)}(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.hhKEhjubh as tracked by }(hjhhhNhNubj[)}(h**ref**h]href}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj)hKEhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1juhjhKFhj-ubjv)}(h*``driver`` DRM driver managing the device h](j|)}(h ``driver``h]j)}(hjXh]hdriver}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjVubah}(h]h ]h"]h$]h&]uh1j{hZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:84: ./include/drm/drm_device.hhKhjRubj)}(hhh]h)}(hDRM driver managing the deviceh]hDRM driver managing the device}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjmhKhjnubah}(h]h ]h"]h$]h&]uh1jhjRubeh}(h]h ]h"]h$]h&]uh1juhjmhKhj-ubjv)}(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)}(hjh]h dev_private}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1j{hZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:84: ./include/drm/drm_device.hhK\hjubj)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:84: ./include/drm/drm_device.hhKWhjubh)}(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 }(hjhhhNhNubh)}(h:c:type:`drm_device`h]j)}(hjh]h drm_device}(hjhhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnj j$j drm_deviceuh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:84: ./include/drm/drm_device.hhKZhjubh& in their larger per-device structure.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhKZhjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1juhjhK\hj-ubjv)}(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)}(hjh]hprimary}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1j{hZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:84: ./include/drm/drm_device.hhKfhjubj)}(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 }(hjhhhNhNubj[)}(h**dev**h]hdev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:84: ./include/drm/drm_device.hhKchjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1juhjhKfhj-ubjv)}(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)}(hjIh]hrender}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjGubah}(h]h ]h"]h$]h&]uh1j{hZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:84: ./include/drm/drm_device.hhKohjCubj)}(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.}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:84: ./include/drm/drm_device.hhKmhj_ubah}(h]h ]h"]h$]h&]uh1jhjCubeh}(h]h ]h"]h$]h&]uh1juhj^hKohj-ubjv)}(h$``accel`` Compute Acceleration node h](j|)}(h ``accel``h]j)}(hjh]haccel}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1j{hZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:84: ./include/drm/drm_device.hhKhj}ubj)}(hhh]h)}(hCompute Acceleration nodeh]hCompute Acceleration node}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhj}ubeh}(h]h ]h"]h$]h&]uh1juhjhKhj-ubjv)}(hS``registered`` Internally used by drm_dev_register() and drm_connector_register(). h](j|)}(h``registered``h]j)}(hjh]h registered}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1j{hZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:84: ./include/drm/drm_device.hhKyhjubj)}(hhh]h)}(hCInternally used by drm_dev_register() and drm_connector_register().h]hCInternally used by drm_dev_register() and drm_connector_register().}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKyhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1juhjhKyhj-ubjv)}(hX``master`` Currently active master for this device. Protected by :c:type:`master_mutex` h](j|)}(h ``master``h]j)}(hjh]hmaster}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1j{hZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:84: ./include/drm/drm_device.hhKhjubj)}(hhh]h)}(hLCurrently active master for this device. Protected by :c:type:`master_mutex`h](h6Currently active master for this device. Protected by }(hj hhhNhNubh)}(h:c:type:`master_mutex`h]j)}(hj h]h master_mutex}(hj hhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnj j$j master_mutexuh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:84: ./include/drm/drm_device.hhKhj ubeh}(h]h ]h"]h$]h&]uh1hhj5 hKhj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1juhj hKhj-ubjv)}(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)}(hjN h]hdriver_features}(hjP hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjL ubah}(h]h ]h"]h$]h&]uh1j{hZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:84: ./include/drm/drm_device.hhKhjH ubj)}(hhh](h)}(hper-device driver featuresh]hper-device driver features}(hjg hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:84: ./include/drm/drm_device.hhKhjd 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 }(hjv hhhNhNubh)}(h(:c:type:`struct drm_driver `h]j)}(hj h]hstruct drm_driver}(hj hhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhj~ ubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnj j$j drm_driveruh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:84: ./include/drm/drm_device.hhKhjv ubh instance across all devices.}(hjv hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj hKhjd ubeh}(h]h ]h"]h$]h&]uh1jhjH ubeh}(h]h ]h"]h$]h&]uh1juhjc hKhj-ubjv)}(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&]uh1j{hZ/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&]uh1juhj hKhj-ubjv)}(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&]uh1j{hZ/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&]uh1juhj hKhj-ubjv)}(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&]uh1j{hZ/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}(hjF hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjB hKhjC ubah}(h]h ]h"]h$]h&]uh1jhj' ubeh}(h]h ]h"]h$]h&]uh1juhjB hKhj-ubjv)}(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)}(hjf h]h struct_mutex}(hjh hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjd ubah}(h]h ]h"]h$]h&]uh1j{hZ/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 }(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 refexplicitrefwarnj j$j drm_minoruh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:84: ./include/drm/drm_device.hhKhj ubh and }(hj hhhNhNubh)}(h':c:type:`drm_file.is_master `h]j)}(hj h]hdrm_file.is_master}(hj hhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnj j$jdrm_fileuh1hhj hKhj ubh)}(hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj hKhj| ubjq)}(hhh]jv)}(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&]uh1j{hj{ 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&]uh1hhj{ hKhj ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1juhj{ hKhj ubah}(h]h ]h"]h$]h&]uh1jphj| ubeh}(h]h ]h"]h$]h&]uh1jhj` ubeh}(h]h ]h"]h$]h&]uh1juhj{ hKhj-ubjv)}(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&]uh1j{hZ/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 }(hj7 hhhNhNubh)}(h&:c:type:`drm_minor.master `h]j)}(hjA h]hdrm_minor.master}(hjC hhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhj? ubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnj j$j drm_minoruh1hhj3 hKhj7 ubh and }(hj7 hhhNhNubh)}(h':c:type:`drm_file.is_master `h]j)}(hjd h]hdrm_file.is_master}(hjf hhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjb ubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnj j$jdrm_fileuh1hhj3 hKhj7 ubeh}(h]h ]h"]h$]h&]uh1hhj3 hKhj4 ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1juhj3 hKhj-ubjv)}(hW``open_count`` Usage counter for outstanding files open, protected by drm_global_mutex h](j|)}(h``open_count``h]j)}(hj h]h open_count}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1j{hZ/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&]uh1juhj hKhj-ubjv)}(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&]uh1j{hZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:84: ./include/drm/drm_device.hhKhj ubj)}(hhh]h)}(hProtects **filelist**.h](h Protects }(hj hhhNhNubj[)}(h **filelist**h]hfilelist}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj ubh.}(hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj hKhj ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1juhj hKhj-ubjv)}(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&]uh1j{hZ/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 }(hj7 hhhNhNubh)}(h#:c:type:`drm_file.lhead `h]j)}(hjA h]hdrm_file.lhead}(hjC hhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhj? ubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnj j$jdrm_fileuh1hhj3 hKhj7 ubh.}(hj7 hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj3 hKhj4 ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1juhj3 hKhj-ubjv)}(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)}(hjz h]hfilelist_internal}(hj| hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjx ubah}(h]h ]h"]h$]h&]uh1j{hZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:84: ./include/drm/drm_device.hhKhjt ubj)}(hhh]h)}(hTList of open DRM files for in-kernel clients. Protected by :c:type:`filelist_mutex`.h](h;List of open DRM files for in-kernel clients. Protected by }(hj hhhNhNubh)}(h:c:type:`filelist_mutex`h]j)}(hj h]hfilelist_mutex}(hj hhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnj j$jfilelist_mutexuh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:84: ./include/drm/drm_device.hhKhj ubh.}(hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj hKhj ubah}(h]h ]h"]h$]h&]uh1jhjt ubeh}(h]h ]h"]h$]h&]uh1juhj hKhj-ubjv)}(h;``clientlist_mutex`` Protects :c:type:`clientlist` access. h](j|)}(h``clientlist_mutex``h]j)}(hj h]hclientlist_mutex}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1j{hZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:84: ./include/drm/drm_device.hhKhj ubj)}(hhh]h)}(h%Protects :c:type:`clientlist` access.h](h Protects }(hj hhhNhNubh)}(h:c:type:`clientlist`h]j)}(hj h]h clientlist}(hj hhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnj j$j clientlistuh1hhj hKhj ubh access.}(hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj hKhj ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1juhj hKhj-ubjv)}(hS``clientlist`` List of in-kernel clients. Protected by :c:type:`clientlist_mutex`. h](j|)}(h``clientlist``h]j)}(hj3 h]h clientlist}(hj5 hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1 ubah}(h]h ]h"]h$]h&]uh1j{hZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:84: ./include/drm/drm_device.hhKhj- ubj)}(hhh]h)}(hCList of in-kernel clients. Protected by :c:type:`clientlist_mutex`.h](h(List of in-kernel clients. Protected by }(hjL hhhNhNubh)}(h:c:type:`clientlist_mutex`h]j)}(hjV h]hclientlist_mutex}(hjX hhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjT ubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnj j$jclientlist_mutexuh1hhjH hKhjL ubh.}(hjL hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjH hKhjI ubah}(h]h ]h"]h$]h&]uh1jhj- ubeh}(h]h ]h"]h$]h&]uh1juhjH hKhj-ubjv)}(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&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1j{hZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:84: ./include/drm/drm_device.hhKhj ubj)}(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.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:84: ./include/drm/drm_device.hhKhj ubh)}(hXThis can be set to true it the hardware has a working vblank counter with high-precision timestamping (otherwise there are races) and the driver uses drm_crtc_vblank_on() and drm_crtc_vblank_off() appropriately. Also, see **max_vblank_count**, :c:type:`drm_crtc_funcs.get_vblank_counter ` and :c:type:`drm_vblank_crtc_config.disable_immediate `.h](hThis can be set to true it the hardware has a working vblank counter with high-precision timestamping (otherwise there are races) and the driver uses drm_crtc_vblank_on() and drm_crtc_vblank_off() appropriately. Also, see }(hj hhhNhNubj[)}(h**max_vblank_count**h]hmax_vblank_count}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj ubh, }(hj hhhNhNubh)}(h<:c:type:`drm_crtc_funcs.get_vblank_counter `h]j)}(hj h]h!drm_crtc_funcs.get_vblank_counter}(hj hhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnj j$jdrm_crtc_funcsuh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:84: ./include/drm/drm_device.hhKhj ubh and }(hj hhhNhNubh)}(hK:c:type:`drm_vblank_crtc_config.disable_immediate `h]j)}(hj h]h(drm_vblank_crtc_config.disable_immediate}(hj hhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnj j$jdrm_vblank_crtc_configuh1hhj hKhj ubh.}(hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj hKhj ubeh}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1juhj hKhj-ubjv)}(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)}(hj0h]hvblank}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj.ubah}(h]h ]h"]h$]h&]uh1j{hZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:84: ./include/drm/drm_device.hhKhj*ubj)}(hhh]h)}(hX)Array of vblank tracking structures, one per :c:type:`struct drm_crtc `. For historical reasons (vblank support predates kernel modesetting) this is free-standing and not part of :c:type:`struct drm_crtc ` itself. It must be initialized explicitly by calling drm_vblank_init().h](h-Array of vblank tracking structures, one per }(hjIhhhNhNubh)}(h$:c:type:`struct drm_crtc `h]j)}(hjSh]hstruct drm_crtc}(hjUhhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjQubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnj j$jdrm_crtcuh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:84: ./include/drm/drm_device.hhKhjIubhl. For historical reasons (vblank support predates kernel modesetting) this is free-standing and not part of }(hjIhhhNhNubh)}(h$:c:type:`struct drm_crtc `h]j)}(hjwh]hstruct drm_crtc}(hjyhhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjuubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnj j$jdrm_crtcuh1hhjphKhjIubhH itself. It must be initialized explicitly by calling drm_vblank_init().}(hjIhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjphKhjFubah}(h]h ]h"]h$]h&]uh1jhj*ubeh}(h]h ]h"]h$]h&]uh1juhjEhKhj-ubjv)}(hY``vblank_time_lock`` Protects vblank count and time updates during vblank enable/disable h](j|)}(h``vblank_time_lock``h]j)}(hjh]hvblank_time_lock}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1j{hZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:84: ./include/drm/drm_device.hhKhjubj)}(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&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1juhjhKhj-ubjv)}(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&]uh1j{hZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:84: ./include/drm/drm_device.hhKhjubj)}(hhh]h)}(hKTop-level vblank references lock, wraps the low-level **vblank_time_lock**.h](h6Top-level vblank references lock, wraps the low-level }(hjhhhNhNubj[)}(h**vblank_time_lock**h]hvblank_time_lock}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:84: ./include/drm/drm_device.hhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1juhjhKhj-ubjv)}(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)}(hj5h]hmax_vblank_count}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3ubah}(h]h ]h"]h$]h&]uh1j{hZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:84: ./include/drm/drm_device.hhMhj/ubj)}(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.}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:84: ./include/drm/drm_device.hhKhjKubh)}(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.hhMhjKubh)}(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 }(hjlhhhNhNubh)}(h<:c:type:`drm_vblank_crtc.max_vblank_count `h]j)}(hjvh]h drm_vblank_crtc.max_vblank_count}(hjxhhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjtubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnj j$jdrm_vblank_crtcuh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:84: ./include/drm/drm_device.hhMhjlubh, in which case }(hjlhhhNhNubj[)}(h**max_vblank_count**h]hmax_vblank_count}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjlubh\ must be left at zero. See drm_crtc_set_max_vblank_count() on how to use the per-crtc value.}(hjlhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMhjKubh)}(hVIf non-zero, :c:type:`drm_crtc_funcs.get_vblank_counter ` must be set.h](h If non-zero, }(hjhhhNhNubh)}(h<:c:type:`drm_crtc_funcs.get_vblank_counter `h]j)}(hjh]h!drm_crtc_funcs.get_vblank_counter}(hjhhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnj j$jdrm_crtc_funcsuh1hhjJhMhjubh must be set.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjJhMhjKubeh}(h]h ]h"]h$]h&]uh1jhj/ubeh}(h]h ]h"]h$]h&]uh1juhjJhMhj-ubjv)}(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&]uh1j{hZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:84: ./include/drm/drm_device.hhKhjubj)}(hhh]h)}(hList of vblank eventsh]hList of vblank events}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1juhjhKhj-ubjv)}(h``event_lock`` Protects **vblank_event_list** and event delivery in general. See drm_send_event() and drm_send_event_locked(). h](j|)}(h``event_lock``h]j)}(hj,h]h event_lock}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj*ubah}(h]h ]h"]h$]h&]uh1j{hZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:84: ./include/drm/drm_device.hhMhj&ubj)}(hhh]h)}(hoProtects **vblank_event_list** and event delivery in general. See drm_send_event() and drm_send_event_locked().h](h Protects }(hjEhhhNhNubj[)}(h**vblank_event_list**h]hvblank_event_list}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjEubhQ and event delivery in general. See drm_send_event() and drm_send_event_locked().}(hjEhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:84: ./include/drm/drm_device.hhMhjBubah}(h]h ]h"]h$]h&]uh1jhj&ubeh}(h]h ]h"]h$]h&]uh1juhjAhMhj-ubjv)}(h-``num_crtcs`` Number of CRTCs on this device h](j|)}(h ``num_crtcs``h]j)}(hjxh]h num_crtcs}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjvubah}(h]h ]h"]h$]h&]uh1j{hZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:84: ./include/drm/drm_device.hhKhjrubj)}(hhh]h)}(hNumber of CRTCs on this deviceh]hNumber of CRTCs on this device}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjrubeh}(h]h ]h"]h$]h&]uh1juhjhKhj-ubjv)}(h$``mode_config`` Current mode config h](j|)}(h``mode_config``h]j)}(hjh]h mode_config}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1j{hZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:84: ./include/drm/drm_device.hhKhjubj)}(hhh]h)}(hCurrent mode configh]hCurrent mode config}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1juhjhKhj-ubjv)}(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&]uh1j{hZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:84: ./include/drm/drm_device.hhKhjubj)}(hhh]h)}(hGEM informationh]hGEM information}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1juhjhKhj-ubjv)}(h$``object_name_idr`` GEM information h](j|)}(h``object_name_idr``h]j)}(hj#h]hobject_name_idr}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj!ubah}(h]h ]h"]h$]h&]uh1j{hZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:84: ./include/drm/drm_device.hhKhjubj)}(hhh]h)}(hGEM informationh]hGEM information}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj8hKhj9ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1juhj8hKhj-ubjv)}(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&]uh1jhjZubah}(h]h ]h"]h$]h&]uh1j{hZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:84: ./include/drm/drm_device.hhKhjVubj)}(hhh]h)}(hGEM informationh]hGEM information}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjqhKhjrubah}(h]h ]h"]h$]h&]uh1jhjVubeh}(h]h ]h"]h$]h&]uh1juhjqhKhj-ubjv)}(h#``vram_mm`` VRAM MM memory manager h](j|)}(h ``vram_mm``h]j)}(hjh]hvram_mm}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1j{hZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:84: ./include/drm/drm_device.hhKhjubj)}(hhh]h)}(hVRAM MM memory managerh]hVRAM MM memory manager}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1juhjhKhj-ubjv)}(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&]uh1j{hZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:84: ./include/drm/drm_device.hhM5hjubj)}(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 refexplicitrefwarnj j$jvga_switcheroo_client_opsuh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:84: ./include/drm/drm_device.hhM2hjubh callback}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhM2hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1juhjhM5hj-ubjv)}(hy``fb_helper`` Pointer to the fbdev emulation structure. Set by drm_fb_helper_init() and cleared by drm_fb_helper_fini(). h](j|)}(h ``fb_helper``h]j)}(hj+h]h fb_helper}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj)ubah}(h]h ]h"]h$]h&]uh1j{hZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:84: ./include/drm/drm_device.hhM=hj%ubj)}(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().}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:84: ./include/drm/drm_device.hhM<hjAubah}(h]h ]h"]h$]h&]uh1jhj%ubeh}(h]h ]h"]h$]h&]uh1juhj@hM=hj-ubjv)}(h2``debugfs_root`` Root directory for debugfs files.h](j|)}(h``debugfs_root``h]j)}(hjeh]h debugfs_root}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1jhjcubah}(h]h ]h"]h$]h&]uh1j{hZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:84: ./include/drm/drm_device.hhMChj_ubj)}(hhh]h)}(h!Root directory for debugfs files.h]h!Root directory for debugfs files.}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:84: ./include/drm/drm_device.hhMDhj{ubah}(h]h ]h"]h$]h&]uh1jhj_ubeh}(h]h ]h"]h$]h&]uh1juhjzhMChj-ubeh}(h]h ]h"]h$]h&]uh1jphjubeh}(h]h ] kernelindentah"]h$]h&]uh1jPhj_hhhjhNubh)}(h**Description**h]j[)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:84: ./include/drm/drm_device.hhMGhj_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.hhK5hj_hhubj)}(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)}(hjh]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 ]j ah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jAjBuh1jhjhhhjhKubeh}(h]h ]h"]h$]h&]jAjBjuh1jjjhjhhhjhKubah}(h]jah ](j!j"eh"]h$]h&]j&j')j(huh1jhjhKhjhhubj*)}(hhh]h)}(h feature flagsh]h feature flags}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhK4hj%hhubah}(h]h ]h"]h$]h&]uh1j)hjhhhjhKubeh}(h]h ](j enumeh"]h$]h&]jJj jKj@jLj@jMjNjOuh1jhhhj_hNhNubjQ)}(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]j[)}(hjJh]h Constants}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjHubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhK8hjDubjq)}(hhh](jv)}(h]``DRIVER_GEM`` Driver use the GEM memory manager. This should be set for all modern drivers. h](j|)}(h``DRIVER_GEM``h]j)}(hjih]h DRIVER_GEM}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjgubah}(h]h ]h"]h$]h&]uh1j{hW/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&]uh1j{hW/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 refdomainj reftyperef 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&]uh1juhjhKChj`ubjv)}(hX$``DRIVER_ATOMIC`` Driver supports the full atomic modesetting userspace API. Drivers which only use atomic internally, but do not support the full userspace API (e.g. not all properties converted to atomic, or multi-plane updates are not guaranteed to be tear-free) should not set this flag. h](j|)}(h``DRIVER_ATOMIC``h]j)}(hj<h]h DRIVER_ATOMIC}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj:ubah}(h]h ]h"]h$]h&]uh1j{hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhKJhj6ubj)}(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.}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhKFhjRubah}(h]h ]h"]h$]h&]uh1jhj6ubeh}(h]h ]h"]h$]h&]uh1juhjQhKJhj`ubjv)}(hm``DRIVER_SYNCOBJ`` Driver supports :c:type:`drm_syncobj` for explicit synchronization of command submission. h](j|)}(h``DRIVER_SYNCOBJ``h]j)}(hjvh]hDRIVER_SYNCOBJ}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjtubah}(h]h ]h"]h$]h&]uh1j{hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhKNhjpubj)}(hhh]h)}(hYDriver supports :c:type:`drm_syncobj` for explicit synchronization of command submission.h](hDriver supports }(hjhhhNhNubh)}(h:c:type:`drm_syncobj`h]j)}(hjh]h drm_syncobj}(hjhhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnj j$j drm_syncobjuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhKMhjubh4 for explicit synchronization of command submission.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhKMhjubah}(h]h ]h"]h$]h&]uh1jhjpubeh}(h]h ]h"]h$]h&]uh1juhjhKNhj`ubjv)}(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&]uh1j{hW/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 refexplicitrefwarnj j$j 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&]uh1juhjhKRhj`ubjv)}(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)}(hj0h]hDRIVER_COMPUTE_ACCEL}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj.ubah}(h]h ]h"]h$]h&]uh1j{hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhKWhj*ubj)}(hhh]h)}(hXDriver supports compute acceleration devices. This flag is mutually exclusive with **DRIVER_RENDER** and **DRIVER_MODESET**. Devices that support both graphics and compute acceleration should be handled by two drivers that are connected using auxiliary bus.h](hSDriver supports compute acceleration devices. This flag is mutually exclusive with }(hjIhhhNhNubj[)}(h**DRIVER_RENDER**h]h DRIVER_RENDER}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjIubh and }(hjIhhhNhNubj[)}(h**DRIVER_MODESET**h]hDRIVER_MODESET}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjIubh. Devices that support both graphics and compute acceleration should be handled by two drivers that are connected using auxiliary bus.}(hjIhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhKUhjFubah}(h]h ]h"]h$]h&]uh1jhj*ubeh}(h]h ]h"]h$]h&]uh1juhjEhKWhj`ubjv)}(hS``DRIVER_GEM_GPUVA`` Driver supports user defined GPU VA bindings for GEM objects. h](j|)}(h``DRIVER_GEM_GPUVA``h]j)}(hjh]hDRIVER_GEM_GPUVA}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1j{hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhKZhjubj)}(hhh]h)}(h=Driver supports user defined GPU VA bindings for GEM objects.h]h=Driver supports user defined GPU VA bindings for GEM objects.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKZhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1juhjhKZhj`ubjv)}(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&]uh1j{hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhK`hjubj)}(hhh]h)}(hDriver supports and requires cursor hotspot information in the cursor plane (e.g. cursor plane has to actually track the mouse cursor and the clients are required to set hotspot in order for the cursor planes to work correctly).h]hDriver supports and requires cursor hotspot information in the cursor plane (e.g. cursor plane has to actually track the mouse cursor and the clients are required to set hotspot in order for the cursor planes to work correctly).}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhK]hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1juhjhK`hj`ubjv)}(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&]uh1j{hW/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&]uh1juhjhKdhj`ubjv)}(hJ``DRIVER_LEGACY`` Denote a legacy driver using shadow attach. Do not use. h](j|)}(h``DRIVER_LEGACY``h]j)}(hj;h]h DRIVER_LEGACY}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj9ubah}(h]h ]h"]h$]h&]uh1j{hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhKghj5ubj)}(hhh]h)}(h7Denote a legacy driver using shadow attach. Do not use.h]h7Denote a legacy driver using shadow attach. Do not use.}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1hhjPhKghjQubah}(h]h ]h"]h$]h&]uh1jhj5ubeh}(h]h ]h"]h$]h&]uh1juhjPhKghj`ubjv)}(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)}(hjth]hDRIVER_PCI_DMA}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjrubah}(h]h ]h"]h$]h&]uh1j{hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhKkhjnubj)}(hhh]h)}(h{Driver is capable of PCI DMA, mapping of PCI DMA buffers to userspace will be enabled. Only for legacy drivers. Do not use.h]h{Driver is capable of PCI DMA, mapping of PCI DMA buffers to userspace will be enabled. Only for legacy drivers. Do not use.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhKjhjubah}(h]h ]h"]h$]h&]uh1jhjnubeh}(h]h ]h"]h$]h&]uh1juhjhKkhj`ubjv)}(h``DRIVER_SG`` Driver can perform scatter/gather DMA, allocation and mapping of scatter/gather buffers will be enabled. Only for legacy drivers. Do not use. h](j|)}(h ``DRIVER_SG``h]j)}(hjh]h DRIVER_SG}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1j{hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhKphjubj)}(hhh]h)}(hDriver can perform scatter/gather DMA, allocation and mapping of scatter/gather buffers will be enabled. Only for legacy drivers. Do not use.h]hDriver can perform scatter/gather DMA, allocation and mapping of scatter/gather buffers will be enabled. Only for legacy drivers. Do not use.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhKnhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1juhjhKphj`ubjv)}(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&]uh1j{hW/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&]uh1juhjhKthj`ubjv)}(hL``DRIVER_HAVE_IRQ`` Legacy irq support. Only for legacy drivers. Do not use.h](j|)}(h``DRIVER_HAVE_IRQ``h]j)}(hj"h]hDRIVER_HAVE_IRQ}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1j{hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhKvhjubj)}(hhh]h)}(h8Legacy irq support. Only for legacy drivers. Do not use.h]h8Legacy irq support. Only for legacy drivers. Do not use.}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhKwhj8ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1juhj7hKvhj`ubeh}(h]h ]h"]h$]h&]uh1jphjDubeh}(h]h ] kernelindentah"]h$]h&]uh1jPhj_hhhNhNubh)}(h**Description**h]j[)}(hjeh]h Description}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjcubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhKzhj_hhubh)}(hoSee :c:type:`drm_driver.driver_features `, drm_device.driver_features and drm_core_check_feature().h](hSee }(hj{hhhNhNubh)}(h1:c:type:`drm_driver.driver_features `h]j)}(hjh]hdrm_driver.driver_features}(hjhhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnj j$j drm_driveruh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhK5hj{ubh:, drm_device.driver_features and drm_core_check_feature().}(hj{hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhK5hj_hhubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jdrm_driver (C struct) c.drm_driverhNtauh1jhj_hhhNhNubj)}(hhh](j)}(h drm_driverh]j)}(hstruct drm_driverh](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhK;ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhK;ubj)}(h drm_driverh]j)}(hjh]h drm_driver}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jAjBuh1jhjhhhjhK;ubeh}(h]h ]h"]h$]h&]jAjBjuh1jjjhjhhhjhK;ubah}(h]jah ](j!j"eh"]h$]h&]j&j')j(huh1jhjhK;hjhhubj*)}(hhh]h)}(hDRM driver structureh]hDRM driver structure}(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)hjhhhjhK;ubeh}(h]h ](j structeh"]h$]h&]jJj jKj jLj jMjNjOuh1jhhhj_hNhNubjQ)}(hX,**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](j[)}(h**Definition**h]h Definition}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj(ubh:}(hj(hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhKhj$ubj2)}(hXstruct drm_driver { int (*load) (struct drm_device *, unsigned long flags); int (*open) (struct drm_device *, struct drm_file *); void (*postclose) (struct drm_device *, struct drm_file *); void (*unload) (struct drm_device *); void (*release) (struct drm_device *); void (*master_set)(struct drm_device *dev, struct drm_file *file_priv, bool from_open); void (*master_drop)(struct drm_device *dev, struct drm_file *file_priv); void (*debugfs_init)(struct drm_minor *minor); struct drm_gem_object *(*gem_create_object)(struct drm_device *dev, size_t size); int (*prime_handle_to_fd)(struct drm_device *dev, struct drm_file *file_priv, uint32_t handle, uint32_t flags, int *prime_fd); int (*prime_fd_to_handle)(struct drm_device *dev, struct drm_file *file_priv, int prime_fd, uint32_t *handle); struct drm_gem_object * (*gem_prime_import)(struct drm_device *dev, struct dma_buf *dma_buf); struct drm_gem_object *(*gem_prime_import_sg_table)(struct drm_device *dev,struct dma_buf_attachment *attach, struct sg_table *sgt); int (*dumb_create)(struct drm_file *file_priv,struct drm_device *dev, struct drm_mode_create_dumb *args); int (*dumb_map_offset)(struct drm_file *file_priv,struct drm_device *dev, uint32_t handle, uint64_t *offset); int (*fbdev_probe)(struct drm_fb_helper *fbdev_helper, struct drm_fb_helper_surface_size *sizes); void (*show_fdinfo)(struct drm_printer *p, struct drm_file *f); int major; int minor; int patchlevel; char *name; char *desc; u32 driver_features; const struct drm_ioctl_desc *ioctls; int num_ioctls; const struct file_operations *fops; };h]hXstruct drm_driver { int (*load) (struct drm_device *, unsigned long flags); int (*open) (struct drm_device *, struct drm_file *); void (*postclose) (struct drm_device *, struct drm_file *); void (*unload) (struct drm_device *); void (*release) (struct drm_device *); void (*master_set)(struct drm_device *dev, struct drm_file *file_priv, bool from_open); void (*master_drop)(struct drm_device *dev, struct drm_file *file_priv); void (*debugfs_init)(struct drm_minor *minor); struct drm_gem_object *(*gem_create_object)(struct drm_device *dev, size_t size); int (*prime_handle_to_fd)(struct drm_device *dev, struct drm_file *file_priv, uint32_t handle, uint32_t flags, int *prime_fd); int (*prime_fd_to_handle)(struct drm_device *dev, struct drm_file *file_priv, int prime_fd, uint32_t *handle); struct drm_gem_object * (*gem_prime_import)(struct drm_device *dev, struct dma_buf *dma_buf); struct drm_gem_object *(*gem_prime_import_sg_table)(struct drm_device *dev,struct dma_buf_attachment *attach, struct sg_table *sgt); int (*dumb_create)(struct drm_file *file_priv,struct drm_device *dev, struct drm_mode_create_dumb *args); int (*dumb_map_offset)(struct drm_file *file_priv,struct drm_device *dev, uint32_t handle, uint64_t *offset); int (*fbdev_probe)(struct drm_fb_helper *fbdev_helper, struct drm_fb_helper_surface_size *sizes); void (*show_fdinfo)(struct drm_printer *p, struct drm_file *f); int major; int minor; int patchlevel; char *name; char *desc; u32 driver_features; const struct drm_ioctl_desc *ioctls; int num_ioctls; const struct file_operations *fops; };}hjEsbah}(h]h ]h"]h$]h&]jAjBuh1j1hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhKhj$ubh)}(h **Members**h]j[)}(hjVh]hMembers}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjTubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhKhj$ubjq)}(hhh](jv)}(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)}(hjuh]hload}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjsubah}(h]h ]h"]h$]h&]uh1j{hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhKhjoubj)}(hhh](h)}(hXBackward-compatible driver callback to complete initialization steps after the driver is registered. For this reason, may suffer from race conditions and its use is deprecated for new drivers. It is therefore only supported for existing drivers not yet converted to the new scheme. See devm_drm_dev_alloc() and drm_dev_register() for proper and race-free way to set up a :c:type:`struct drm_device `.h](hXvBackward-compatible driver callback to complete initialization steps after the driver is registered. For this reason, may suffer from race conditions and its use is deprecated for new drivers. It is therefore only supported for existing drivers not yet converted to the new scheme. See devm_drm_dev_alloc() and drm_dev_register() for proper and race-free way to set up a }(hjhhhNhNubh)}(h(:c:type:`struct drm_device `h]j)}(hjh]hstruct drm_device}(hjhhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnj j$j drm_deviceuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhKhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhKhjubh)}(hThis is deprecated, do not use!h]hThis is deprecated, do not use!}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhKhjubh)}(hReturns:h]hReturns:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhKhjubh)}(h+Zero on success, non-zero value on failure.h]h+Zero on success, non-zero value on failure.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubeh}(h]h ]h"]h$]h&]uh1jhjoubeh}(h]h ]h"]h$]h&]uh1juhjhKhjlubjv)}(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&]uh1j{hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhKhjubj)}(hhh](h)}(hXDriver callback when a new :c:type:`struct drm_file ` is opened. Useful for setting up driver-private data structures like buffer allocators, execution contexts or similar things. Such driver-private resources must be released again in **postclose**.h](hDriver callback when a new }(hjhhhNhNubh)}(h$:c:type:`struct drm_file `h]j)}(hj!h]hstruct drm_file}(hj#hhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnj j$jdrm_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 }(hjhhhNhNubj[)}(h **postclose**h]h postclose}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj>hKhjubh)}(hXDSince the display/modeset side of DRM can only be owned by exactly one :c:type:`struct drm_file ` (see :c:type:`drm_file.is_master ` and :c:type:`drm_device.master `) there should never be a need to set up any modeset related resources in this callback. Doing so would be a driver design bug.h](hGSince the display/modeset side of DRM can only be owned by exactly one }(hj[hhhNhNubh)}(h$:c:type:`struct drm_file `h]j)}(hjeh]hstruct drm_file}(hjghhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjcubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnj j$jdrm_fileuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhKhj[ubh (see }(hj[hhhNhNubh)}(h':c:type:`drm_file.is_master `h]j)}(hjh]hdrm_file.is_master}(hjhhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnj j$jdrm_fileuh1hhjhKhj[ubh and }(hj[hhhNhNubh)}(h(:c:type:`drm_device.master `h]j)}(hjh]hdrm_device.master}(hjhhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnj j$j drm_deviceuh1hhjhKhj[ubh) there should never be a need to set up any modeset related resources in this callback. Doing so would be a driver design bug.}(hj[hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhKhjubh)}(hReturns:h]hReturns:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhKhjubh)}(h|0 on success, a negative error code on failure, which will be promoted to userspace as the result of the open() system call.h]h|0 on success, a negative error code on failure, which will be promoted to userspace as the result of the open() system call.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhKhjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1juhjhKhjlubjv)}(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&]uh1j{hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhKhjubj)}(hhh](h)}(hOne of the driver callbacks when a new :c:type:`struct drm_file ` is closed. Useful for tearing down driver-private data structures allocated in **open** like buffer allocators, execution contexts or similar things.h](h'One of the driver callbacks when a new }(hjhhhNhNubh)}(h$:c:type:`struct drm_file `h]j)}(hj&h]hstruct drm_file}(hj(hhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhj$ubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnj j$jdrm_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 }(hjhhhNhNubj[)}(h**open**h]hopen}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjubh> like buffer allocators, execution contexts or similar things.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjChKhjubh)}(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 }(hj`hhhNhNubh)}(h$:c:type:`struct drm_file `h]j)}(hjjh]hstruct drm_file}(hjlhhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjhubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnj j$jdrm_fileuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhKhj`ubh (see }(hj`hhhNhNubh)}(h':c:type:`drm_file.is_master `h]j)}(hjh]hdrm_file.is_master}(hjhhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnj j$jdrm_fileuh1hhjhKhj`ubh and }(hj`hhhNhNubh)}(h(:c:type:`drm_device.master `h]j)}(hjh]hdrm_device.master}(hjhhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnj j$j drm_deviceuh1hhjhKhj`ubh) there should never be a need to tear down any modeset related resources in this callback. Doing so would be a driver design bug.}(hj`hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhKhjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1juhjhKhjlubjv)}(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&]uh1j{hW/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)}(hj h]hstruct drm_device}(hjhhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnj j$j drm_deviceuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhKhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj*hKhjubh)}(hAThe unload() hook is called right after unregistering the device.h]hAThe unload() hook is called right after unregistering the device.}(hj5hhhNhNubah}(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&]uh1juhjhKhjlubjv)}(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)}(hjVh]hrelease}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjTubah}(h]h ]h"]h$]h&]uh1j{hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhMhjPubj)}(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.}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhKhjlubh)}(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 }(hj~hhhNhNubh)}(h:c:type:`drm_device`h]j)}(hjh]h drm_device}(hjhhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnj j$j drm_deviceuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhMhj~ubhQ using drmm_add_action(), drmm_kmalloc() and related managed resources functions.}(hj~hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMhjlubeh}(h]h ]h"]h$]h&]uh1jhjPubeh}(h]h ]h"]h$]h&]uh1juhjkhMhjlubjv)}(hM``master_set`` Called whenever the minor master is set. Only used by vmwgfx. h](j|)}(h``master_set``h]j)}(hjh]h master_set}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1j{hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhM hjubj)}(hhh]h)}(h=Called whenever the minor master is set. Only used by vmwgfx.h]h=Called whenever the minor master is set. Only used by vmwgfx.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1juhjhM hjlubjv)}(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&]uh1j{hW/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&]uh1juhjhMhjlubjv)}(hI``debugfs_init`` Allows drivers to create driver-specific debugfs files. h](j|)}(h``debugfs_init``h]j)}(hj4h]h debugfs_init}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2ubah}(h]h ]h"]h$]h&]uh1j{hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhMhj.ubj)}(hhh]h)}(h7Allows drivers to create driver-specific debugfs files.h]h7Allows drivers to create driver-specific debugfs files.}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjIhMhjJubah}(h]h ]h"]h$]h&]uh1jhj.ubeh}(h]h ]h"]h$]h&]uh1juhjIhMhjlubjv)}(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)}(hjmh]hgem_create_object}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jhjkubah}(h]h ]h"]h$]h&]uh1j{hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhM"hjgubj)}(hhh](h)}(hconstructor for gem objectsh]hconstructor for gem objects}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhMhjubh)}(hHook for allocating the GEM object struct, for use by the CMA and SHMEM GEM helpers. Returns a GEM object on success, or an ERR_PTR()-encoded error code otherwise.h]hHook for allocating the GEM object struct, for use by the CMA and SHMEM GEM helpers. Returns a GEM object on success, or an ERR_PTR()-encoded error code otherwise.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhM hjubeh}(h]h ]h"]h$]h&]uh1jhjgubeh}(h]h ]h"]h$]h&]uh1juhjhM"hjlubjv)}(hC``prime_handle_to_fd`` PRIME export function. Only used by vmwgfx. h](j|)}(h``prime_handle_to_fd``h]j)}(hjh]hprime_handle_to_fd}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1j{hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhM(hjubj)}(hhh]h)}(h+PRIME export function. Only used by vmwgfx.h]h+PRIME export function. Only used by vmwgfx.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM(hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1juhjhM(hjlubjv)}(hC``prime_fd_to_handle`` PRIME import function. Only used by vmwgfx. h](j|)}(h``prime_fd_to_handle``h]j)}(hjh]hprime_fd_to_handle}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1j{hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhM/hjubj)}(hhh]h)}(h+PRIME import function. Only used by vmwgfx.h]h+PRIME import function. Only used by vmwgfx.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM/hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1juhjhM/hjlubjv)}(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&]uh1j{hW/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.}(hjAhhhNhNubah}(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.}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj=hM9hj>ubeh}(h]h ]h"]h$]h&]uh1jhj"ubeh}(h]h ]h"]h$]h&]uh1juhj=hM9hjlubjv)}(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)}(hjph]hgem_prime_import_sg_table}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjnubah}(h]h ]h"]h$]h&]uh1j{hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhMAhjjubj)}(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().}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhM@hjubah}(h]h ]h"]h$]h&]uh1jhjjubeh}(h]h ]h"]h$]h&]uh1juhjhMAhjlubjv)}(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)}(hjh]h dumb_create}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1j{hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhM[hjubj)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhMKhjubh)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhMOhjubh)}(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 }(hjhhhNhNubh)}(h:c:type:`drm_mode_create_dumb`h]j)}(hjh]hdrm_mode_create_dumb}(hjhhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnj j$jdrm_mode_create_dumbuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhMShjubhX argument. The callback needs to fill the handle, pitch and size for the created buffer.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMShjubh)}(hCalled by the user via ioctl.h]hCalled by the user via ioctl.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhMWhjubh)}(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.hhMYhjubh)}(h+Zero on success, negative errno on failure.h]h+Zero on success, negative errno on failure.}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM[hjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1juhjhM[hjlubjv)}(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)}(hjQh]hdumb_map_offset}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1jhjOubah}(h]h ]h"]h$]h&]uh1j{hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhMmhjKubj)}(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.}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhMchjgubh)}(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.}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhMfhjgubh)}(hCalled by the user via ioctl.h]hCalled by the user via ioctl.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhMihjgubh)}(hReturns:h]hReturns:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhMkhjgubh)}(h+Zero on success, negative errno on failure.h]h+Zero on success, negative errno on failure.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjfhMmhjgubeh}(h]h ]h"]h$]h&]uh1jhjKubeh}(h]h ]h"]h$]h&]uh1juhjfhMmhjlubjv)}(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)}(hjh]h fbdev_probe}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1j{hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhM~hjubj)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhMvhjubh)}(h-This callback is mandatory for fbdev support.h]h-This callback is mandatory for fbdev support.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhMzhjubh)}(hReturns:h]hReturns:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhM|hjubh)}(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&]uh1hhjhM~hjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1juhjhM~hjlubjv)}(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&]uh1j{hW/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.}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjAhMhjBubah}(h]h ]h"]h$]h&]uh1jhj&ubeh}(h]h ]h"]h$]h&]uh1juhjAhMhjlubjv)}(h``major`` driver major number h](j|)}(h ``major``h]j)}(hjeh]hmajor}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1jhjcubah}(h]h ]h"]h$]h&]uh1j{hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhKhj_ubj)}(hhh]h)}(hdriver major numberh]hdriver major number}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjzhKhj{ubah}(h]h ]h"]h$]h&]uh1jhj_ubeh}(h]h ]h"]h$]h&]uh1juhjzhKhjlubjv)}(h``minor`` driver minor number h](j|)}(h ``minor``h]j)}(hjh]hminor}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1j{hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhKhjubj)}(hhh]h)}(hdriver minor numberh]hdriver minor number}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1juhjhKhjlubjv)}(h"``patchlevel`` driver patch level h](j|)}(h``patchlevel``h]j)}(hjh]h patchlevel}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1j{hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhKhjubj)}(hhh]h)}(hdriver patch levelh]hdriver patch level}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1juhjhKhjlubjv)}(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&]uh1j{hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhKhj ubj)}(hhh]h)}(h driver nameh]h driver name}(hj) hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj% hKhj& ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1juhj% hKhjlubjv)}(h``desc`` driver description h](j|)}(h``desc``h]j)}(hjI h]hdesc}(hjK hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjG ubah}(h]h ]h"]h$]h&]uh1j{hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhKhjC ubj)}(hhh]h)}(hdriver descriptionh]hdriver description}(hjb hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj^ hKhj_ ubah}(h]h ]h"]h$]h&]uh1jhjC ubeh}(h]h ]h"]h$]h&]uh1juhj^ hKhjlubjv)}(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&]uh1j{hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhMhj| ubj)}(hhh]h)}(hDriver features, see :c:type:`enum drm_driver_feature `. Drivers can disable some features on a per-instance basis using :c:type:`drm_device.driver_features `.h](hDriver features, see }(hj hhhNhNubh)}(h6:c:type:`enum drm_driver_feature `h]j)}(hj h]henum drm_driver_feature}(hj hhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnj j$jdrm_driver_featureuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhMhj ubhB. Drivers can disable some features on a per-instance basis using }(hj hhhNhNubh)}(h1:c:type:`drm_device.driver_features `h]j)}(hj h]hdrm_device.driver_features}(hj hhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnj j$j drm_deviceuh1hhj hMhj ubh.}(hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj hMhj ubah}(h]h ]h"]h$]h&]uh1jhj| ubeh}(h]h ]h"]h$]h&]uh1juhj hMhjlubjv)}(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&]uh1j{hW/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 refdomainj1!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&]uh1hhjC!hMhj!ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1juhj!hMhjlubjv)}(h0``num_ioctls`` Number of entries in **ioctls**. h](j|)}(h``num_ioctls``h]j)}(hj`!h]h num_ioctls}(hjb!hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj^!ubah}(h]h ]h"]h$]h&]uh1j{hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhKhjZ!ubj)}(hhh]h)}(h Number of entries in **ioctls**.h](hNumber of entries in }(hjy!hhhNhNubj[)}(h **ioctls**h]hioctls}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjy!ubh.}(hjy!hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhju!hKhjv!ubah}(h]h ]h"]h$]h&]uh1jhjZ!ubeh}(h]h ]h"]h$]h&]uh1juhju!hKhjlubjv)}(h``fops`` File operations for the DRM device node. See the discussion in :ref:`file operations` for in-depth coverage and some examples.h](j|)}(h``fops``h]j)}(hj!h]hfops}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj!ubah}(h]h ]h"]h$]h&]uh1j{hW/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&]uh1juhj!hMhjlubeh}(h]h ]h"]h$]h&]uh1jphj$ubeh}(h]h ] kernelindentah"]h$]h&]uh1jPhj_hhhNhNubh)}(h**Description**h]j[)}(hj"h]h Description}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj"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)}(hj2"h]hstruct drm_device}(hj4"hhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhj0"ubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnj j$j 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)}(hjV"h]hdrm_mode_config_funcs}(hjX"hhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjT"ubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnj j$jdrm_mode_config_funcsuh1hhjO"hKhj("ubh4 or into a new operations structure for GEM drivers.}(hj("hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjO"hKhj_hhubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jdevm_drm_dev_alloc (C macro)c.devm_drm_dev_allochNtauh1jhj_hhhNhNubj)}(hhh](j)}(hdevm_drm_dev_alloch]j)}(hdevm_drm_dev_alloch]j)}(hdevm_drm_dev_alloch]j)}(hj"h]hdevm_drm_dev_alloc}(hj"hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj"ubah}(h]h ](jjeh"]h$]h&]jAjBuh1jhj"hhhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhMubah}(h]h ]h"]h$]h&]jAjBjuh1jjjhj"hhhj"hMubah}(h]j"ah ](j!j"eh"]h$]h&]j&j')j(huh1jhj"hMhj"hhubj*)}(hhh]h}(h]h ]h"]h$]h&]uh1j)hj"hhhj"hMubeh}(h]h ](j macroeh"]h$]h&]jJj jKj"jLj"jMjNjOuh1jhhhj_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 refexplicitrefwarnj j$j 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_hhubjQ)}(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]j[)}(hj&#h]h Parameters}(hj(#hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj$#ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhMhj #ubjq)}(hhh](jv)}(h ``parent`` Parent device object h](j|)}(h ``parent``h]j)}(hjE#h]hparent}(hjG#hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjC#ubah}(h]h ]h"]h$]h&]uh1j{hW/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&]uh1hhjZ#hMhj[#ubah}(h]h ]h"]h$]h&]uh1jhj?#ubeh}(h]h ]h"]h$]h&]uh1juhjZ#hMhj<#ubjv)}(h``driver`` DRM driver h](j|)}(h ``driver``h]j)}(hj~#h]hdriver}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj|#ubah}(h]h ]h"]h$]h&]uh1j{hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhMhjx#ubj)}(hhh]h)}(h DRM driverh]h DRM driver}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj#hMhj#ubah}(h]h ]h"]h$]h&]uh1jhjx#ubeh}(h]h ]h"]h$]h&]uh1juhj#hMhj<#ubjv)}(hK``type`` the type of the struct which contains struct :c:type:`drm_device` h](j|)}(h``type``h]j)}(hj#h]htype}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj#ubah}(h]h ]h"]h$]h&]uh1j{hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhMhj#ubj)}(hhh]h)}(hAthe type of the struct which contains struct :c:type:`drm_device`h](h-the type of the struct which contains struct }(hj#hhhNhNubh)}(h:c:type:`drm_device`h]j)}(hj#h]h drm_device}(hj#hhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhj#ubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnj j$j drm_deviceuh1hhj#hMhj#ubeh}(h]h ]h"]h$]h&]uh1hhj#hMhj#ubah}(h]h ]h"]h$]h&]uh1jhj#ubeh}(h]h ]h"]h$]h&]uh1juhj#hMhj<#ubjv)}(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&]uh1j{hW/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)}(hj2$h]h drm_device}(hj4$hhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhj0$ubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnj j$j drm_deviceuh1hhj$$hMhj($ubh within }(hj($hhhNhNubj[)}(h**type**h]htype}(hjS$hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj($ubh.}(hj($hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj$$hMhj%$ubah}(h]h ]h"]h$]h&]uh1jhj $ubeh}(h]h ]h"]h$]h&]uh1juhj$$hMhj<#ubeh}(h]h ]h"]h$]h&]uh1jphj #ubh)}(h**Description**h]j[)}(hj$h]h Description}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj}$ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhMhj #ubh)}(hX3This allocates and initialize a new DRM device. No device registration is done. Call drm_dev_register() to advertice the device to user space and register it with other core subsystems. This should be done last in the device initialization sequence to make sure userspace can't access an inconsistent state.h]hX5This allocates and initialize a new DRM device. No device registration is done. Call drm_dev_register() to advertice the device to user space and register it with other core subsystems. This should be done last in the device initialization sequence to make sure userspace can’t access an inconsistent state.}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhMhj #ubh)}(hrThe initial ref-count of the object is 1. Use drm_dev_get() and drm_dev_put() to take and drop further ref-counts.h]hrThe initial ref-count of the object is 1. Use drm_dev_get() and drm_dev_put() to take and drop further ref-counts.}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhMhj #ubh)}(hnIt is recommended that drivers embed :c:type:`struct drm_device ` into their own device structure.h](h%It is recommended that drivers embed }(hj$hhhNhNubh)}(h(:c:type:`struct drm_device `h]j)}(hj$h]hstruct drm_device}(hj$hhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhj$ubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnj j$j drm_deviceuh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhMhj$ubh! into their own device structure.}(hj$hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj$hMhj #ubh)}(hNote that this manages the lifetime of the resulting :c:type:`drm_device` automatically using devres. The DRM device initialized with this function is automatically put on driver detach using drm_dev_put().h](h5Note that this manages the lifetime of the resulting }(hj$hhhNhNubh)}(h:c:type:`drm_device`h]j)}(hj$h]h drm_device}(hj$hhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhj$ubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnj j$j 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]j[)}(hj%h]hReturn}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj%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&]uh1jPhj_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^%hjZ%hhhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhMubj)}(h h]h }(hjp%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZ%hhhjo%hMubj)}(hdrm_dev_is_unpluggedh]j)}(hdrm_dev_is_unpluggedh]hdrm_dev_is_unplugged}(hj%hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj~%ubah}(h]h ](jjeh"]h$]h&]jAjBuh1jhjZ%hhhjo%hMubhdesc_parameterlist)}(h(struct drm_device *dev)h]hdesc_parameter)}(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 ]j ah"]h$]h&]uh1jhj%ubah}(h]h ]h"]h$]h&] refdomainj reftype identifier reftargetj%modnameN classnameNj j#)}j&]j! ASTIdentifier)}j%j%sbc.drm_dev_is_unpluggedasbuh1hhj%ubj)}(h h]h }(hj%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%ubhdesc_sig_punctuation)}(h*h]h*}(hj%hhhNhNubah}(h]h ]pah"]h$]h&]uh1j%hj%ubj)}(hdevh]hdev}(hj&hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj%ubeh}(h]h ]h"]h$]h&]noemphjAjBuh1j%hj%ubah}(h]h ]h"]h$]h&]jAjBuh1j%hjZ%hhhjo%hMubeh}(h]h ]h"]h$]h&]jAjBjuh1jjjhjV%hhhjo%hMubah}(h]jQ%ah ](j!j"eh"]h$]h&]j&j')j(huh1jhjo%hMhjS%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)hjS%hhhjo%hMubeh}(h]h ](j functioneh"]h$]h&]jJj jKjD&jLjD&jMjNjOuh1jhhhj_hNhNubjQ)}(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]j[)}(hjN&h]h Parameters}(hjP&hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjL&ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhMhjH&ubjq)}(hhh]jv)}(h&``struct drm_device *dev`` DRM device h](j|)}(h``struct drm_device *dev``h]j)}(hjm&h]hstruct drm_device *dev}(hjo&hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjk&ubah}(h]h ]h"]h$]h&]uh1j{hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhMhjg&ubj)}(hhh]h)}(h DRM deviceh]h DRM device}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj&hMhj&ubah}(h]h ]h"]h$]h&]uh1jhjg&ubeh}(h]h ]h"]h$]h&]uh1juhj&hMhjd&ubah}(h]h ]h"]h$]h&]uh1jphjH&ubh)}(h**Description**h]j[)}(hj&h]h Description}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj&ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhMhjH&ubh)}(hX#This function can be called to check whether a hotpluggable is unplugged. Unplugging itself is singalled through drm_dev_unplug(). If a device is unplugged, these two functions guarantee that any store before calling drm_dev_unplug() is visible to callers of this function after it completesh]hX#This function can be called to check whether a hotpluggable is unplugged. Unplugging itself is singalled through drm_dev_unplug(). If a device is unplugged, these two functions guarantee that any store before calling drm_dev_unplug() is visible to callers of this function after it completes}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhMhjH&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.hhMhjH&ubeh}(h]h ] kernelindentah"]h$]h&]uh1jPhj_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_%)}(hjb%h]hbool}(hj&hhhNhNubah}(h]h ]jk%ah"]h$]h&]uh1j^%hj&hhhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhM ubj)}(h h]h }(hj 'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj&hhhj 'hM ubj)}(hdrm_core_check_all_featuresh]j)}(hdrm_core_check_all_featuresh]hdrm_core_check_all_features}(hj'hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj'ubah}(h]h ](jjeh"]h$]h&]jAjBuh1jhj&hhhj 'hM ubj%)}(h,(const struct drm_device *dev, u32 features)h](j%)}(hconst struct drm_device *devh](j)}(hconsth]hconst}(hj8'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4'ubj)}(h h]h }(hjF'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4'ubj)}(hjh]hstruct}(hjT'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4'ubj)}(h h]h }(hja'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4'ubh)}(hhh]j)}(h drm_deviceh]h drm_device}(hjr'hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjo'ubah}(h]h ]h"]h$]h&] refdomainj reftypej% reftargetjt'modnameN classnameNj j#)}j&]j%)}j%j'sbc.drm_core_check_all_featuresasbuh1hhj4'ubj)}(h h]h }(hj'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4'ubj%)}(hj%h]h*}(hj'hhhNhNubah}(h]h ]j%ah"]h$]h&]uh1j%hj4'ubj)}(hdevh]hdev}(hj'hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj4'ubeh}(h]h ]h"]h$]h&]noemphjAjBuh1j%hj0'ubj%)}(h u32 featuresh](h)}(hhh]j)}(hu32h]hu32}(hj'hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj'ubah}(h]h ]h"]h$]h&] refdomainj reftypej% reftargetj'modnameN classnameNj j#)}j&]j'c.drm_core_check_all_featuresasbuh1hhj'ubj)}(h h]h }(hj'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'ubj)}(hfeaturesh]hfeatures}(hj'hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj'ubeh}(h]h ]h"]h$]h&]noemphjAjBuh1j%hj0'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)}(hcheck driver feature flags maskh]hcheck driver feature flags mask}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhMhj(hhubah}(h]h ]h"]h$]h&]uh1j)hj&hhhj 'hM ubeh}(h]h ](j functioneh"]h$]h&]jJj jKj7(jLj7(jMjNjOuh1jhhhj_hNhNubjQ)}(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]j[)}(hjA(h]h Parameters}(hjC(hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj?(ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhMhj;(ubjq)}(hhh](jv)}(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}(hjb(hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj^(ubah}(h]h ]h"]h$]h&]uh1j{hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhMhjZ(ubj)}(hhh]h)}(hDRM device to checkh]hDRM device to check}(hjy(hhhNhNubah}(h]h ]h"]h$]h&]uh1hhju(hMhjv(ubah}(h]h ]h"]h$]h&]uh1jhjZ(ubeh}(h]h ]h"]h$]h&]uh1juhju(hMhjW(ubjv)}(h&``u32 features`` feature flag(s) mask h](j|)}(h``u32 features``h]j)}(hj(h]h u32 features}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj(ubah}(h]h ]h"]h$]h&]uh1j{hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhMhj(ubj)}(hhh]h)}(hfeature flag(s) maskh]hfeature flag(s) mask}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj(hMhj(ubah}(h]h ]h"]h$]h&]uh1jhj(ubeh}(h]h ]h"]h$]h&]uh1juhj(hMhjW(ubeh}(h]h ]h"]h$]h&]uh1jphj;(ubh)}(h**Description**h]j[)}(hj(h]h Description}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj(ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhMhj;(ubh)}(hThis checks **dev** for driver features, see :c:type:`drm_driver.driver_features `, :c:type:`drm_device.driver_features `, and the various :c:type:`enum drm_driver_feature ` flags.h](h This checks }(hj(hhhNhNubj[)}(h**dev**h]hdev}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj(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 refexplicitrefwarnj j$j drm_driveruh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhMhj(ubh, }(hj(hhhNhNubh)}(h1:c:type:`drm_device.driver_features `h]j)}(hj*)h]hdrm_device.driver_features}(hj,)hhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhj()ubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnj j$j drm_deviceuh1hhj#)hMhj(ubh, and the various }(hj(hhhNhNubh)}(h6:c:type:`enum drm_driver_feature `h]j)}(hjM)h]henum drm_driver_feature}(hjO)hhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjK)ubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnj j$jdrm_driver_featureuh1hhj#)hMhj(ubh flags.}(hj(hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj#)hMhj;(ubh)}(hUReturns true if all features in the **features** mask are supported, false otherwise.h](h$Returns true if all features in the }(hjt)hhhNhNubj[)}(h **features**h]hfeatures}(hj|)hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjt)ubh% mask are supported, false otherwise.}(hjt)hhhNhNubeh}(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&]uh1jPhj_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_%)}(hjb%h]hbool}(hj)hhhNhNubah}(h]h ]jk%ah"]h$]h&]uh1j^%hj)hhhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhMubj)}(h h]h }(hj)hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj)hhhj)hMubj)}(hdrm_core_check_featureh]j)}(hdrm_core_check_featureh]hdrm_core_check_feature}(hj)hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj)ubah}(h]h ](jjeh"]h$]h&]jAjBuh1jhj)hhhj)hMubj%)}(h?(const struct drm_device *dev, enum drm_driver_feature feature)h](j%)}(hconst struct drm_device *devh](j)}(hj:'h]hconst}(hj)hhhNhNubah}(h]h ]jah"]h$]h&]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 ]j ah"]h$]h&]uh1jhj'*ubah}(h]h ]h"]h$]h&] refdomainj reftypej% reftargetj,*modnameN classnameNj j#)}j&]j%)}j%j)sbc.drm_core_check_featureasbuh1hhj)ubj)}(h h]h }(hjJ*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj)ubj%)}(hj%h]h*}(hjX*hhhNhNubah}(h]h ]j%ah"]h$]h&]uh1j%hj)ubj)}(hdevh]hdev}(hje*hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj)ubeh}(h]h ]h"]h$]h&]noemphjAjBuh1j%hj)ubj%)}(henum drm_driver_feature featureh](j)}(hjh]henum}(hj~*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjz*ubj)}(h h]h }(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjz*ubh)}(hhh]j)}(hdrm_driver_featureh]hdrm_driver_feature}(hj*hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj*ubah}(h]h ]h"]h$]h&] refdomainj reftypej% reftargetj*modnameN classnameNj j#)}j&]jF*c.drm_core_check_featureasbuh1hhjz*ubj)}(h h]h }(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjz*ubj)}(hfeatureh]hfeature}(hj*hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjz*ubeh}(h]h ]h"]h$]h&]noemphjAjBuh1j%hj)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 flagsh]hcheck driver feature flags}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhMhj*hhubah}(h]h ]h"]h$]h&]uh1j)hj)hhhj)hMubeh}(h]h ](j functioneh"]h$]h&]jJj jKj +jLj +jMjNjOuh1jhhhj_hNhNubjQ)}(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]j[)}(hj+h]h Parameters}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj+ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhMhj+ubjq)}(hhh](jv)}(h5``const struct drm_device *dev`` DRM device to check h](j|)}(h ``const struct drm_device *dev``h]j)}(hj3+h]hconst struct drm_device *dev}(hj5+hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1+ubah}(h]h ]h"]h$]h&]uh1j{hW/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}(hjL+hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjH+hMhjI+ubah}(h]h ]h"]h$]h&]uh1jhj-+ubeh}(h]h ]h"]h$]h&]uh1juhjH+hMhj*+ubjv)}(h1``enum drm_driver_feature feature`` feature flag h](j|)}(h#``enum drm_driver_feature feature``h]j)}(hjl+h]henum drm_driver_feature feature}(hjn+hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjj+ubah}(h]h ]h"]h$]h&]uh1j{hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhMhjf+ubj)}(hhh]h)}(h feature flagh]h feature flag}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj+hMhj+ubah}(h]h ]h"]h$]h&]uh1jhjf+ubeh}(h]h ]h"]h$]h&]uh1juhj+hMhj*+ubeh}(h]h ]h"]h$]h&]uh1jphj+ubh)}(h**Description**h]j[)}(hj+h]h Description}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj+ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhMhj+ubh)}(hThis checks **dev** for driver features, see :c:type:`drm_driver.driver_features `, :c:type:`drm_device.driver_features `, and the various :c:type:`enum drm_driver_feature ` flags.h](h This checks }(hj+hhhNhNubj[)}(h**dev**h]hdev}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj+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 refexplicitrefwarnj j$j drm_driveruh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhMhj+ubh, }(hj+hhhNhNubh)}(h1:c:type:`drm_device.driver_features `h]j)}(hj+h]hdrm_device.driver_features}(hj+hhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhj+ubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnj j$j drm_deviceuh1hhj+hMhj+ubh, and the various }(hj+hhhNhNubh)}(h6:c:type:`enum drm_driver_feature `h]j)}(hj ,h]henum drm_driver_feature}(hj",hhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhj,ubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnj j$jdrm_driver_featureuh1hhj+hMhj+ubh flags.}(hj+hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj+hMhj+ubh)}(h>Returns true if the **feature** is supported, false otherwise.h](hReturns true if the }(hjG,hhhNhNubj[)}(h **feature**h]hfeature}(hjO,hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjG,ubh is supported, false otherwise.}(hjG,hhhNhNubeh}(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&]uh1jPhj_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_%)}(hjb%h]hbool}(hj,hhhNhNubah}(h]h ]jk%ah"]h$]h&]uh1j^%hj,hhhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhM+ubj)}(h h]h }(hj,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,hhhj,hM+ubj)}(hdrm_drv_uses_atomic_modeseth]j)}(hdrm_drv_uses_atomic_modeseth]hdrm_drv_uses_atomic_modeset}(hj,hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj,ubah}(h]h ](jjeh"]h$]h&]jAjBuh1jhj,hhhj,hM+ubj%)}(h(struct drm_device *dev)h]j%)}(hstruct drm_device *devh](j)}(hjh]hstruct}(hj,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,ubj)}(h h]h }(hj,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,ubh)}(hhh]j)}(h drm_deviceh]h drm_device}(hj,hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj,ubah}(h]h ]h"]h$]h&] refdomainj reftypej% reftargetj,modnameN classnameNj j#)}j&]j%)}j%j,sbc.drm_drv_uses_atomic_modesetasbuh1hhj,ubj)}(h h]h }(hj-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,ubj%)}(hj%h]h*}(hj-hhhNhNubah}(h]h ]j%ah"]h$]h&]uh1j%hj,ubj)}(hdevh]hdev}(hj-hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj,ubeh}(h]h ]h"]h$]h&]noemphjAjBuh1j%hj,ubah}(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.check if the driver implements atomic_commit()h]h.check if the driver implements atomic_commit()}(hjG-hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhM$hjD-hhubah}(h]h ]h"]h$]h&]uh1j)hj},hhhj,hM+ubeh}(h]h ](j functioneh"]h$]h&]jJj jKj_-jLj_-jMjNjOuh1jhhhj_hNhNubjQ)}(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]j[)}(hji-h]h Parameters}(hjk-hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjg-ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhM(hjc-ubjq)}(hhh]jv)}(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&]uh1j{hW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhM&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&]uh1juhj-hM&hj-ubah}(h]h ]h"]h$]h&]uh1jphjc-ubh)}(h**Description**h]j[)}(hj-h]h Description}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj-ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhM(hjc-ubh)}(hqThis check is useful if drivers do not have DRIVER_ATOMIC set but have atomic modesetting internally implemented.h]hqThis check is useful if drivers do not have DRIVER_ATOMIC set but have atomic modesetting internally implemented.}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:87: ./include/drm/drm_drv.hhM(hjc-ubeh}(h]h ] kernelindentah"]h$]h&]uh1jPhj_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}(hj.hhhNhNubah}(h]h ]jk%ah"]h$]h&]uh1j^%hj.hhh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:90: ./drivers/gpu/drm/drm_drv.chMubj)}(h h]h }(hj.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.hhhj.hMubj)}(h drm_put_devh]j)}(h drm_put_devh]h drm_put_dev}(hj).hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj%.ubah}(h]h ](jjeh"]h$]h&]jAjBuh1jhj.hhhj.hMubj%)}(h(struct drm_device *dev)h]j%)}(hstruct drm_device *devh](j)}(hjh]hstruct}(hjE.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjA.ubj)}(h h]h }(hjR.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjA.ubh)}(hhh]j)}(h drm_deviceh]h drm_device}(hjc.hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj`.ubah}(h]h ]h"]h$]h&] refdomainj reftypej% reftargetje.modnameN classnameNj j#)}j&]j%)}j%j+.sb c.drm_put_devasbuh1hhjA.ubj)}(h h]h }(hj.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjA.ubj%)}(hj%h]h*}(hj.hhhNhNubah}(h]h ]j%ah"]h$]h&]uh1j%hjA.ubj)}(hdevh]hdev}(hj.hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjA.ubeh}(h]h ]h"]h$]h&]noemphjAjBuh1j%hj=.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)}(h#Unregister and release a DRM deviceh]h#Unregister and release a DRM device}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:90: ./drivers/gpu/drm/drm_drv.chMhj.hhubah}(h]h ]h"]h$]h&]uh1j)hj-hhhj.hMubeh}(h]h ](j functioneh"]h$]h&]jJj jKj.jLj.jMjNjOuh1jhhhj_hNhNubjQ)}(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]j[)}(hj.h]h Parameters}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj.ubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:90: ./drivers/gpu/drm/drm_drv.chMhj.ubjq)}(hhh]jv)}(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&]uh1j{h[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:90: ./drivers/gpu/drm/drm_drv.chMhj/ubj)}(hhh]h)}(h DRM deviceh]h DRM device}(hj"/hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj/hMhj/ubah}(h]h ]h"]h$]h&]uh1jhj/ubeh}(h]h ]h"]h$]h&]uh1juhj/hMhj/ubah}(h]h ]h"]h$]h&]uh1jphj.ubh)}(h**Description**h]j[)}(hjD/h]h Description}(hjF/hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjB/ubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:90: ./drivers/gpu/drm/drm_drv.chMhj.ubh)}(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.}(hjZ/hhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:90: ./drivers/gpu/drm/drm_drv.chMhj.ubh)}(h2Cleans up all DRM device, calling drm_lastclose().h]h2Cleans up all DRM device, calling drm_lastclose().}(hji/hhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:90: ./drivers/gpu/drm/drm_drv.chMhj.ubh)}(h**Note**h]j[)}(hjz/h]hNote}(hj|/hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjx/ubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:90: ./drivers/gpu/drm/drm_drv.chMhj.ubh)}(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/hhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:90: ./drivers/gpu/drm/drm_drv.chMhj.ubeh}(h]h ] kernelindentah"]h$]h&]uh1jPhj_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_%)}(hjb%h]hbool}(hj/hhhNhNubah}(h]h ]jk%ah"]h$]h&]uh1j^%hj/hhh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:90: ./drivers/gpu/drm/drm_drv.chMubj)}(h h]h }(hj/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/hhhj/hMubj)}(h drm_dev_enterh]j)}(h drm_dev_enterh]h drm_dev_enter}(hj/hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj/ubah}(h]h ](jjeh"]h$]h&]jAjBuh1jhj/hhhj/hMubj%)}(h"(struct drm_device *dev, int *idx)h](j%)}(hstruct drm_device *devh](j)}(hjh]hstruct}(hj/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/ubj)}(h h]h }(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/ubh)}(hhh]j)}(h drm_deviceh]h drm_device}(hj0hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj0ubah}(h]h ]h"]h$]h&] refdomainj reftypej% reftargetj0modnameN classnameNj j#)}j&]j%)}j%j/sbc.drm_dev_enterasbuh1hhj/ubj)}(h h]h }(hj90hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/ubj%)}(hj%h]h*}(hjG0hhhNhNubah}(h]h ]j%ah"]h$]h&]uh1j%hj/ubj)}(hdevh]hdev}(hjT0hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj/ubeh}(h]h ]h"]h$]h&]noemphjAjBuh1j%hj/ubj%)}(hint *idxh](j_%)}(hinth]hint}(hjm0hhhNhNubah}(h]h ]jk%ah"]h$]h&]uh1j^%hji0ubj)}(h h]h }(hj{0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhji0ubj%)}(hj%h]h*}(hj0hhhNhNubah}(h]h ]j%ah"]h$]h&]uh1j%hji0ubj)}(hidxh]hidx}(hj0hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhji0ubeh}(h]h ]h"]h$]h&]noemphjAjBuh1j%hj/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)}(hEnter device critical sectionh]hEnter device critical section}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:90: ./drivers/gpu/drm/drm_drv.chMhj0hhubah}(h]h ]h"]h$]h&]uh1j)hj/hhhj/hMubeh}(h]h ](j functioneh"]h$]h&]jJj jKj0jLj0jMjNjOuh1jhhhj_hNhNubjQ)}(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]j[)}(hj0h]h Parameters}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj0ubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:90: ./drivers/gpu/drm/drm_drv.chMhj0ubjq)}(hhh](jv)}(h&``struct drm_device *dev`` DRM device h](j|)}(h``struct drm_device *dev``h]j)}(hj1h]hstruct drm_device *dev}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj0ubah}(h]h ]h"]h$]h&]uh1j{h[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:90: ./drivers/gpu/drm/drm_drv.chMhj0ubj)}(hhh]h)}(h DRM deviceh]h DRM device}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj1hMhj1ubah}(h]h ]h"]h$]h&]uh1jhj0ubeh}(h]h ]h"]h$]h&]uh1juhj1hMhj0ubjv)}(hQ``int *idx`` Pointer to index that will be passed to the matching drm_dev_exit() h](j|)}(h ``int *idx``h]j)}(hj:1h]hint *idx}(hj<1hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj81ubah}(h]h ]h"]h$]h&]uh1j{h[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:90: ./drivers/gpu/drm/drm_drv.chMhj41ubj)}(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()}(hjS1hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjO1hMhjP1ubah}(h]h ]h"]h$]h&]uh1jhj41ubeh}(h]h ]h"]h$]h&]uh1juhjO1hMhj0ubeh}(h]h ]h"]h$]h&]uh1jphj0ubh)}(h**Description**h]j[)}(hju1h]h Description}(hjw1hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjs1ubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:90: ./drivers/gpu/drm/drm_drv.chMhj0ubh)}(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.}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:90: ./drivers/gpu/drm/drm_drv.chMhj0ubh)}(h **Return**h]j[)}(hj1h]hReturn}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj1ubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:90: ./drivers/gpu/drm/drm_drv.chMhj0ubh)}(h7True if it is OK to enter the section, false otherwise.h]h7True if it is OK to enter the section, false otherwise.}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:90: ./drivers/gpu/drm/drm_drv.chMhj0ubeh}(h]h ] kernelindentah"]h$]h&]uh1jPhj_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}(hj1hhhNhNubah}(h]h ]jk%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_dev_exith]j)}(h drm_dev_exith]h drm_dev_exit}(hj2hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj1ubah}(h]h ](jjeh"]h$]h&]jAjBuh1jhj1hhhj1hMubj%)}(h (int idx)h]j%)}(hint idxh](j_%)}(hinth]hint}(hj2hhhNhNubah}(h]h ]jk%ah"]h$]h&]uh1j^%hj2ubj)}(h h]h }(hj,2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2ubj)}(hidxh]hidx}(hj:2hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj2ubeh}(h]h ]h"]h$]h&]noemphjAjBuh1j%hj2ubah}(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)}(hExit device critical sectionh]hExit device critical section}(hjd2hhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:90: ./drivers/gpu/drm/drm_drv.chMhja2hhubah}(h]h ]h"]h$]h&]uh1j)hj1hhhj1hMubeh}(h]h ](j functioneh"]h$]h&]jJj jKj|2jLj|2jMjNjOuh1jhhhj_hNhNubjQ)}(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]j[)}(hj2h]h Parameters}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj2ubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:90: ./drivers/gpu/drm/drm_drv.chMhj2ubjq)}(hhh]jv)}(h0``int idx`` index returned from drm_dev_enter() h](j|)}(h ``int idx``h]j)}(hj2h]hint idx}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2ubah}(h]h ]h"]h$]h&]uh1j{h[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:90: ./drivers/gpu/drm/drm_drv.chMhj2ubj)}(hhh]h)}(h#index returned from drm_dev_enter()h]h#index returned from drm_dev_enter()}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj2hMhj2ubah}(h]h ]h"]h$]h&]uh1jhj2ubeh}(h]h ]h"]h$]h&]uh1juhj2hMhj2ubah}(h]h ]h"]h$]h&]uh1jphj2ubh)}(h**Description**h]j[)}(hj2h]h Description}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj2ubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:90: ./drivers/gpu/drm/drm_drv.chMhj2ubh)}(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.}(hj2hhhNhNubah}(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&]uh1jPhj_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}(hj%3hhhNhNubah}(h]h ]jk%ah"]h$]h&]uh1j^%hj!3hhh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:90: ./drivers/gpu/drm/drm_drv.chMubj)}(h h]h }(hj43hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!3hhhj33hMubj)}(hdrm_dev_unplugh]j)}(hdrm_dev_unplugh]hdrm_dev_unplug}(hjF3hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjB3ubah}(h]h ](jjeh"]h$]h&]jAjBuh1jhj!3hhhj33hMubj%)}(h(struct drm_device *dev)h]j%)}(hstruct drm_device *devh](j)}(hjh]hstruct}(hjb3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^3ubj)}(h h]h }(hjo3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^3ubh)}(hhh]j)}(h drm_deviceh]h drm_device}(hj3hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj}3ubah}(h]h ]h"]h$]h&] refdomainj reftypej% reftargetj3modnameN classnameNj j#)}j&]j%)}j%jH3sbc.drm_dev_unplugasbuh1hhj^3ubj)}(h h]h }(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^3ubj%)}(hj%h]h*}(hj3hhhNhNubah}(h]h ]j%ah"]h$]h&]uh1j%hj^3ubj)}(hdevh]hdev}(hj3hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj^3ubeh}(h]h ]h"]h$]h&]noemphjAjBuh1j%hjZ3ubah}(h]h ]h"]h$]h&]jAjBuh1j%hj!3hhhj33hMubeh}(h]h ]h"]h$]h&]jAjBjuh1jjjhj3hhhj33hMubah}(h]j3ah ](j!j"eh"]h$]h&]j&j')j(huh1jhj33hMhj3hhubj*)}(hhh]h)}(hunplug a DRM deviceh]hunplug a DRM device}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:90: ./drivers/gpu/drm/drm_drv.chMhj3hhubah}(h]h ]h"]h$]h&]uh1j)hj3hhhj33hMubeh}(h]h ](j functioneh"]h$]h&]jJj jKj3jLj3jMjNjOuh1jhhhj_hNhNubjQ)}(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]j[)}(hj4h]h Parameters}(hj 4hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj4ubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:90: ./drivers/gpu/drm/drm_drv.chMhj4ubjq)}(hhh]jv)}(h&``struct drm_device *dev`` DRM device h](j|)}(h``struct drm_device *dev``h]j)}(hj&4h]hstruct drm_device *dev}(hj(4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj$4ubah}(h]h ]h"]h$]h&]uh1j{h[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:90: ./drivers/gpu/drm/drm_drv.chMhj 4ubj)}(hhh]h)}(h DRM deviceh]h DRM device}(hj?4hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj;4hMhj<4ubah}(h]h ]h"]h$]h&]uh1jhj 4ubeh}(h]h ]h"]h$]h&]uh1juhj;4hMhj4ubah}(h]h ]h"]h$]h&]uh1jphj4ubh)}(h**Description**h]j[)}(hja4h]h Description}(hjc4hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj_4ubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:90: ./drivers/gpu/drm/drm_drv.chMhj4ubh)}(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 }(hjw4hhhNhNubj[)}(h**dev**h]hdev}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjw4ubh.}(hjw4hhhNhNubeh}(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&]uh1jPhj_hhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j!drm_dev_wedged_event (C function)c.drm_dev_wedged_eventhNtauh1jhj_hhhNhNubj)}(hhh](j)}(hGint drm_dev_wedged_event (struct drm_device *dev, unsigned long method)h]j)}(hFint drm_dev_wedged_event(struct drm_device *dev, unsigned long method)h](j_%)}(hinth]hint}(hj4hhhNhNubah}(h]h ]jk%ah"]h$]h&]uh1j^%hj4hhh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:90: ./drivers/gpu/drm/drm_drv.chMubj)}(h h]h }(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4hhhj4hMubj)}(hdrm_dev_wedged_eventh]j)}(hdrm_dev_wedged_eventh]hdrm_dev_wedged_event}(hj4hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj4ubah}(h]h ](jjeh"]h$]h&]jAjBuh1jhj4hhhj4hMubj%)}(h.(struct drm_device *dev, unsigned long method)h](j%)}(hstruct drm_device *devh](j)}(hjh]hstruct}(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4ubj)}(h h]h }(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4ubh)}(hhh]j)}(h drm_deviceh]h drm_device}(hj5hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj5ubah}(h]h ]h"]h$]h&] refdomainj reftypej% reftargetj5modnameN classnameNj j#)}j&]j%)}j%j4sbc.drm_dev_wedged_eventasbuh1hhj4ubj)}(h h]h }(hj35hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4ubj%)}(hj%h]h*}(hjA5hhhNhNubah}(h]h ]j%ah"]h$]h&]uh1j%hj4ubj)}(hdevh]hdev}(hjN5hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj4ubeh}(h]h ]h"]h$]h&]noemphjAjBuh1j%hj4ubj%)}(hunsigned long methodh](j_%)}(hunsignedh]hunsigned}(hjg5hhhNhNubah}(h]h ]jk%ah"]h$]h&]uh1j^%hjc5ubj)}(h h]h }(hju5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjc5ubj_%)}(hlongh]hlong}(hj5hhhNhNubah}(h]h ]jk%ah"]h$]h&]uh1j^%hjc5ubj)}(h h]h }(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjc5ubj)}(hmethodh]hmethod}(hj5hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjc5ubeh}(h]h ]h"]h$]h&]noemphjAjBuh1j%hj4ubeh}(h]h ]h"]h$]h&]jAjBuh1j%hj4hhhj4hMubeh}(h]h ]h"]h$]h&]jAjBjuh1jjjhj4hhhj4hMubah}(h]j4ah ](j!j"eh"]h$]h&]j&j')j(huh1jhj4hMhj4hhubj*)}(hhh]h)}(hgenerate a device wedged ueventh]hgenerate a device wedged uevent}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:90: ./drivers/gpu/drm/drm_drv.chM hj5hhubah}(h]h ]h"]h$]h&]uh1j)hj4hhhj4hMubeh}(h]h ](j functioneh"]h$]h&]jJj jKj5jLj5jMjNjOuh1jhhhj_hNhNubjQ)}(hXh**Parameters** ``struct drm_device *dev`` DRM device ``unsigned long method`` method(s) to be used for recovery **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]j[)}(hj5h]h Parameters}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj5ubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:90: ./drivers/gpu/drm/drm_drv.chMhj5ubjq)}(hhh](jv)}(h&``struct drm_device *dev`` DRM device h](j|)}(h``struct drm_device *dev``h]j)}(hj 6h]hstruct drm_device *dev}(hj 6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6ubah}(h]h ]h"]h$]h&]uh1j{h[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:90: ./drivers/gpu/drm/drm_drv.chM hj6ubj)}(hhh]h)}(h DRM deviceh]h DRM device}(hj#6hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj6hM hj 6ubah}(h]h ]h"]h$]h&]uh1jhj6ubeh}(h]h ]h"]h$]h&]uh1juhj6hM hj6ubjv)}(h;``unsigned long method`` method(s) to be used for recovery h](j|)}(h``unsigned long method``h]j)}(hjC6h]hunsigned long method}(hjE6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjA6ubah}(h]h ]h"]h$]h&]uh1j{h[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:90: ./drivers/gpu/drm/drm_drv.chM hj=6ubj)}(hhh]h)}(h!method(s) to be used for recoveryh]h!method(s) to be used for recovery}(hj\6hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjX6hM hjY6ubah}(h]h ]h"]h$]h&]uh1jhj=6ubeh}(h]h ]h"]h$]h&]uh1juhjX6hM hj6ubeh}(h]h ]h"]h$]h&]uh1jphj5ubh)}(h**Description**h]j[)}(hj~6h]h Description}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj|6ubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:90: ./drivers/gpu/drm/drm_drv.chMhj5ubh)}(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 }(hj6hhhNhNubj[)}(h**dev**h]hdev}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj6ubh . Recovery }(hj6hhhNhNubj[)}(h **method**h]hmethod}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj6ubh9(s) of choice will be sent in the uevent environment as }(hj6hhhNhNubj)}(h#``WEDGED=[,..,]``h]hWEDGED=[,..,]}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6ubhN in order of less to more side-effects. If caller is unsure about recovery or }(hj6hhhNhNubj[)}(h **method**h]hmethod}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj6ubh is unknown (0), }(hj6hhhNhNubj)}(h``WEDGED=unknown``h]hWEDGED=unknown}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6ubh will be sent instead.}(hj6hhhNhNubeh}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:90: ./drivers/gpu/drm/drm_drv.chMhj5ubh)}(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.}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:90: ./drivers/gpu/drm/drm_drv.chMhj5ubh)}(h **Return**h]j[)}(hj7h]hReturn}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj 7ubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:90: ./drivers/gpu/drm/drm_drv.chMhj5ubh)}(h,0 on success, negative error code otherwise.h]h,0 on success, negative error code otherwise.}(hj$7hhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:90: ./drivers/gpu/drm/drm_drv.chMhj5ubeh}(h]h ] kernelindentah"]h$]h&]uh1jPhj_hhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jdrm_dev_alloc (C function)c.drm_dev_allochNtauh1jhj_hhhNhNubj)}(hhh](j)}(hZstruct drm_device * drm_dev_alloc (const struct drm_driver *driver, struct device *parent)h]j)}(hXstruct drm_device *drm_dev_alloc(const struct drm_driver *driver, struct device *parent)h](j)}(hjh]hstruct}(hjS7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjO7hhh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:90: ./drivers/gpu/drm/drm_drv.chM6ubj)}(h h]h }(hja7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjO7hhhj`7hM6ubh)}(hhh]j)}(h drm_deviceh]h drm_device}(hjr7hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjo7ubah}(h]h ]h"]h$]h&] refdomainj reftypej% reftargetjt7modnameN classnameNj j#)}j&]j%)}j% drm_dev_allocsbc.drm_dev_allocasbuh1hhjO7hhhj`7hM6ubj)}(h h]h }(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjO7hhhj`7hM6ubj%)}(hj%h]h*}(hj7hhhNhNubah}(h]h ]j%ah"]h$]h&]uh1j%hjO7hhhj`7hM6ubj)}(h drm_dev_alloch]j)}(hj7h]h drm_dev_alloc}(hj7hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj7ubah}(h]h ](jjeh"]h$]h&]jAjBuh1jhjO7hhhj`7hM6ubj%)}(h8(const struct drm_driver *driver, struct device *parent)h](j%)}(hconst struct drm_driver *driverh](j)}(hj:'h]hconst}(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7ubj)}(h h]h }(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7ubj)}(hjh]hstruct}(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7ubj)}(h h]h }(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7ubh)}(hhh]j)}(h drm_driverh]h drm_driver}(hj8hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj8ubah}(h]h ]h"]h$]h&] refdomainj reftypej% reftargetj8modnameN classnameNj j#)}j&]j7c.drm_dev_allocasbuh1hhj7ubj)}(h h]h }(hj$8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7ubj%)}(hj%h]h*}(hj28hhhNhNubah}(h]h ]j%ah"]h$]h&]uh1j%hj7ubj)}(hdriverh]hdriver}(hj?8hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj7ubeh}(h]h ]h"]h$]h&]noemphjAjBuh1j%hj7ubj%)}(hstruct device *parenth](j)}(hjh]hstruct}(hjX8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjT8ubj)}(h h]h }(hje8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjT8ubh)}(hhh]j)}(hdeviceh]hdevice}(hjv8hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjs8ubah}(h]h ]h"]h$]h&] refdomainj reftypej% reftargetjx8modnameN classnameNj j#)}j&]j7c.drm_dev_allocasbuh1hhjT8ubj)}(h h]h }(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjT8ubj%)}(hj%h]h*}(hj8hhhNhNubah}(h]h ]j%ah"]h$]h&]uh1j%hjT8ubj)}(hparenth]hparent}(hj8hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjT8ubeh}(h]h ]h"]h$]h&]noemphjAjBuh1j%hj7ubeh}(h]h ]h"]h$]h&]jAjBuh1j%hjO7hhhj`7hM6ubeh}(h]h ]h"]h$]h&]jAjBjuh1jjjhjK7hhhj`7hM6ubah}(h]jF7ah ](j!j"eh"]h$]h&]j&j')j(huh1jhj`7hM6hjH7hhubj*)}(hhh]h)}(hAllocate new DRM deviceh]hAllocate new DRM device}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:90: ./drivers/gpu/drm/drm_drv.chM+hj8hhubah}(h]h ]h"]h$]h&]uh1j)hjH7hhhj`7hM6ubeh}(h]h ](j functioneh"]h$]h&]jJj jKj8jLj8jMjNjOuh1jhhhj_hNhNubjQ)}(hX**Parameters** ``const struct drm_driver *driver`` DRM driver to allocate device for ``struct device *parent`` Parent device object **Description** This is the deprecated version of devm_drm_dev_alloc(), which does not support subclassing through embedding the struct :c:type:`drm_device` in a driver private structure, and which does not support automatic cleanup through devres. **Return** Pointer to new DRM device, or ERR_PTR on failure.h](h)}(h**Parameters**h]j[)}(hj8h]h Parameters}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj8ubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:90: ./drivers/gpu/drm/drm_drv.chM/hj8ubjq)}(hhh](jv)}(hF``const struct drm_driver *driver`` DRM driver to allocate device for h](j|)}(h#``const struct drm_driver *driver``h]j)}(hj9h]hconst struct drm_driver *driver}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj9ubah}(h]h ]h"]h$]h&]uh1j{h[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:90: ./drivers/gpu/drm/drm_drv.chM,hj9ubj)}(hhh]h)}(h!DRM driver to allocate device forh]h!DRM driver to allocate device for}(hj39hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj/9hM,hj09ubah}(h]h ]h"]h$]h&]uh1jhj9ubeh}(h]h ]h"]h$]h&]uh1juhj/9hM,hj9ubjv)}(h/``struct device *parent`` Parent device object h](j|)}(h``struct device *parent``h]j)}(hjS9h]hstruct device *parent}(hjU9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjQ9ubah}(h]h ]h"]h$]h&]uh1j{h[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:90: ./drivers/gpu/drm/drm_drv.chM-hjM9ubj)}(hhh]h)}(hParent device objecth]hParent device object}(hjl9hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjh9hM-hji9ubah}(h]h ]h"]h$]h&]uh1jhjM9ubeh}(h]h ]h"]h$]h&]uh1juhjh9hM-hj9ubeh}(h]h ]h"]h$]h&]uh1jphj8ubh)}(h**Description**h]j[)}(hj9h]h Description}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj9ubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:90: ./drivers/gpu/drm/drm_drv.chM/hj8ubh)}(hThis is the deprecated version of devm_drm_dev_alloc(), which does not support subclassing through embedding the struct :c:type:`drm_device` in a driver private structure, and which does not support automatic cleanup through devres.h](hxThis is the deprecated version of devm_drm_dev_alloc(), which does not support subclassing through embedding the struct }(hj9hhhNhNubh)}(h:c:type:`drm_device`h]j)}(hj9h]h drm_device}(hj9hhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhj9ubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnj j$j drm_deviceuh1hh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:90: ./drivers/gpu/drm/drm_drv.chM/hj9ubh\ in a driver private structure, and which does not support automatic cleanup through devres.}(hj9hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj9hM/hj8ubh)}(h **Return**h]j[)}(hj9h]hReturn}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj9ubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:90: ./drivers/gpu/drm/drm_drv.chM3hj8ubh)}(h1Pointer to new DRM device, or ERR_PTR on failure.h]h1Pointer to new DRM device, or ERR_PTR on failure.}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:90: ./drivers/gpu/drm/drm_drv.chM3hj8ubeh}(h]h ] kernelindentah"]h$]h&]uh1jPhj_hhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jdrm_dev_get (C function) c.drm_dev_gethNtauh1jhj_hhhNhNubj)}(hhh](j)}(h)void drm_dev_get (struct drm_device *dev)h]j)}(h(void drm_dev_get(struct drm_device *dev)h](j_%)}(hvoidh]hvoid}(hj:hhhNhNubah}(h]h ]jk%ah"]h$]h&]uh1j^%hj:hhh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:90: ./drivers/gpu/drm/drm_drv.chMgubj)}(h h]h }(hj,:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:hhhj+:hMgubj)}(h drm_dev_geth]j)}(h drm_dev_geth]h drm_dev_get}(hj>:hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj::ubah}(h]h ](jjeh"]h$]h&]jAjBuh1jhj:hhhj+:hMgubj%)}(h(struct drm_device *dev)h]j%)}(hstruct drm_device *devh](j)}(hjh]hstruct}(hjZ:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjV:ubj)}(h h]h }(hjg:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjV:ubh)}(hhh]j)}(h drm_deviceh]h drm_device}(hjx:hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhju:ubah}(h]h ]h"]h$]h&] refdomainj reftypej% reftargetjz:modnameN classnameNj j#)}j&]j%)}j%j@:sb c.drm_dev_getasbuh1hhjV:ubj)}(h h]h }(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjV:ubj%)}(hj%h]h*}(hj:hhhNhNubah}(h]h ]j%ah"]h$]h&]uh1j%hjV:ubj)}(hdevh]hdev}(hj:hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjV:ubeh}(h]h ]h"]h$]h&]noemphjAjBuh1j%hjR:ubah}(h]h ]h"]h$]h&]jAjBuh1j%hj:hhhj+:hMgubeh}(h]h ]h"]h$]h&]jAjBjuh1jjjhj:hhhj+:hMgubah}(h]j:ah ](j!j"eh"]h$]h&]j&j')j(huh1jhj+:hMghj:hhubj*)}(hhh]h)}(hTake reference of a DRM deviceh]hTake reference of a DRM device}(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+:hMgubeh}(h]h ](j functioneh"]h$]h&]jJj jKj:jLj:jMjNjOuh1jhhhj_hNhNubjQ)}(hX**Parameters** ``struct drm_device *dev`` device to take reference of or NULL **Description** This increases the ref-count of **dev** by one. You *must* already own a reference when calling this. Use drm_dev_put() to drop this reference again. This function never fails. However, this function does not provide *any* guarantee whether the device is alive or running. It only provides a reference to the object and the memory associated with it.h](h)}(h**Parameters**h]j[)}(hj:h]h Parameters}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj:ubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:90: ./drivers/gpu/drm/drm_drv.chM`hj:ubjq)}(hhh]jv)}(h?``struct drm_device *dev`` device to take reference of or NULL 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&]uh1j{h[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:90: ./drivers/gpu/drm/drm_drv.chM]hj;ubj)}(hhh]h)}(h#device to take reference of or NULLh]h#device to take reference of or NULL}(hj7;hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj3;hM]hj4;ubah}(h]h ]h"]h$]h&]uh1jhj;ubeh}(h]h ]h"]h$]h&]uh1juhj3;hM]hj;ubah}(h]h ]h"]h$]h&]uh1jphj:ubh)}(h**Description**h]j[)}(hjY;h]h Description}(hj[;hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjW;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)}(hThis increases the ref-count of **dev** by one. You *must* already own a reference when calling this. Use drm_dev_put() to drop this reference again.h](h This increases the ref-count of }(hjo;hhhNhNubj[)}(h**dev**h]hdev}(hjw;hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjo;ubh by one. You }(hjo;hhhNhNubhemphasis)}(h*must*h]hmust}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1j;hjo;ubh[ already own a reference when calling this. Use drm_dev_put() to drop this reference again.}(hjo;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)}(hThis function never fails. However, this function does not provide *any* guarantee whether the device is alive or running. It only provides a reference to the object and the memory associated with it.h](hCThis function never fails. However, this function does not provide }(hj;hhhNhNubj;)}(h*any*h]hany}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1j;hj;ubh guarantee whether the device is alive or running. It only provides a reference to the object and the memory associated with it.}(hj;hhhNhNubeh}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:90: ./drivers/gpu/drm/drm_drv.chMchj:ubeh}(h]h ] kernelindentah"]h$]h&]uh1jPhj_hhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jdrm_dev_put (C function) c.drm_dev_puthNtauh1jhj_hhhNhNubj)}(hhh](j)}(h)void drm_dev_put (struct drm_device *dev)h]j)}(h(void drm_dev_put(struct drm_device *dev)h](j_%)}(hvoidh]hvoid}(hj;hhhNhNubah}(h]h ]jk%ah"]h$]h&]uh1j^%hj;hhh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:90: ./drivers/gpu/drm/drm_drv.chMuubj)}(h h]h }(hj;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;hhhj;hMuubj)}(h drm_dev_puth]j)}(h drm_dev_puth]h drm_dev_put}(hj<hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj<ubah}(h]h ](jjeh"]h$]h&]jAjBuh1jhj;hhhj;hMuubj%)}(h(struct drm_device *dev)h]j%)}(hstruct drm_device *devh](j)}(hjh]hstruct}(hj"<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj<ubj)}(h h]h }(hj/<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj<ubh)}(hhh]j)}(h drm_deviceh]h drm_device}(hj@<hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj=<ubah}(h]h ]h"]h$]h&] refdomainj reftypej% reftargetjB<modnameN classnameNj j#)}j&]j%)}j%j<sb c.drm_dev_putasbuh1hhj<ubj)}(h h]h }(hj`<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj<ubj%)}(hj%h]h*}(hjn<hhhNhNubah}(h]h ]j%ah"]h$]h&]uh1j%hj<ubj)}(hdevh]hdev}(hj{<hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj<ubeh}(h]h ]h"]h$]h&]noemphjAjBuh1j%hj<ubah}(h]h ]h"]h$]h&]jAjBuh1j%hj;hhhj;hMuubeh}(h]h ]h"]h$]h&]jAjBjuh1jjjhj;hhhj;hMuubah}(h]j;ah ](j!j"eh"]h$]h&]j&j')j(huh1jhj;hMuhj;hhubj*)}(hhh]h)}(hDrop reference of a DRM deviceh]hDrop reference of a DRM device}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:90: ./drivers/gpu/drm/drm_drv.chMohj<hhubah}(h]h ]h"]h$]h&]uh1j)hj;hhhj;hMuubeh}(h]h ](j functioneh"]h$]h&]jJj jKj<jLj<jMjNjOuh1jhhhj_hNhNubjQ)}(h**Parameters** ``struct drm_device *dev`` device to drop reference of or NULL **Description** This decreases the ref-count of **dev** by one. The device is destroyed if the ref-count drops to zero.h](h)}(h**Parameters**h]j[)}(hj<h]h Parameters}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj<ubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:90: ./drivers/gpu/drm/drm_drv.chMshj<ubjq)}(hhh]jv)}(h?``struct drm_device *dev`` device to drop reference of or NULL 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&]uh1j{h[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:90: ./drivers/gpu/drm/drm_drv.chMphj<ubj)}(hhh]h)}(h#device to drop reference of or NULLh]h#device to drop reference of or NULL}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj<hMphj<ubah}(h]h ]h"]h$]h&]uh1jhj<ubeh}(h]h ]h"]h$]h&]uh1juhj<hMphj<ubah}(h]h ]h"]h$]h&]uh1jphj<ubh)}(h**Description**h]j[)}(hj!=h]h Description}(hj#=hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj=ubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:90: ./drivers/gpu/drm/drm_drv.chMrhj<ubh)}(hgThis decreases the ref-count of **dev** by one. The device is destroyed if the ref-count drops to zero.h](h This decreases the ref-count of }(hj7=hhhNhNubj[)}(h**dev**h]hdev}(hj?=hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj7=ubh@ by one. The device is destroyed if the ref-count drops to zero.}(hj7=hhhNhNubeh}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:90: ./drivers/gpu/drm/drm_drv.chMrhj<ubeh}(h]h ] kernelindentah"]h$]h&]uh1jPhj_hhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j(drmm_cgroup_register_region (C function)c.drmm_cgroup_register_regionhNtauh1jhj_hhhNhNubj)}(hhh](j)}(hsstruct dmem_cgroup_region * drmm_cgroup_register_region (struct drm_device *dev, const char *region_name, u64 size)h]j)}(hqstruct dmem_cgroup_region *drmm_cgroup_register_region(struct drm_device *dev, const char *region_name, u64 size)h](j)}(hjh]hstruct}(hjx=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjt=hhh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:90: ./drivers/gpu/drm/drm_drv.chMubj)}(h h]h }(hj=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjt=hhhj=hMubh)}(hhh]j)}(hdmem_cgroup_regionh]hdmem_cgroup_region}(hj=hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj=ubah}(h]h ]h"]h$]h&] refdomainj reftypej% reftargetj=modnameN classnameNj j#)}j&]j%)}j%drmm_cgroup_register_regionsbc.drmm_cgroup_register_regionasbuh1hhjt=hhhj=hMubj)}(h h]h }(hj=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjt=hhhj=hMubj%)}(hj%h]h*}(hj=hhhNhNubah}(h]h ]j%ah"]h$]h&]uh1j%hjt=hhhj=hMubj)}(hdrmm_cgroup_register_regionh]j)}(hj=h]hdrmm_cgroup_register_region}(hj=hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj=ubah}(h]h ](jjeh"]h$]h&]jAjBuh1jhjt=hhhj=hMubj%)}(h;(struct drm_device *dev, const char *region_name, u64 size)h](j%)}(hstruct drm_device *devh](j)}(hjh]hstruct}(hj=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=ubj)}(h h]h }(hj=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=ubh)}(hhh]j)}(h drm_deviceh]h drm_device}(hj>hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj >ubah}(h]h ]h"]h$]h&] refdomainj reftypej% reftargetj>modnameN classnameNj j#)}j&]j=c.drmm_cgroup_register_regionasbuh1hhj=ubj)}(h h]h }(hj.>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=ubj%)}(hj%h]h*}(hj<>hhhNhNubah}(h]h ]j%ah"]h$]h&]uh1j%hj=ubj)}(hdevh]hdev}(hjI>hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj=ubeh}(h]h ]h"]h$]h&]noemphjAjBuh1j%hj=ubj%)}(hconst char *region_nameh](j)}(hj:'h]hconst}(hjb>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^>ubj)}(h h]h }(hjo>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^>ubj_%)}(hcharh]hchar}(hj}>hhhNhNubah}(h]h ]jk%ah"]h$]h&]uh1j^%hj^>ubj)}(h h]h }(hj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^>ubj%)}(hj%h]h*}(hj>hhhNhNubah}(h]h ]j%ah"]h$]h&]uh1j%hj^>ubj)}(h region_nameh]h region_name}(hj>hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj^>ubeh}(h]h ]h"]h$]h&]noemphjAjBuh1j%hj=ubj%)}(hu64 sizeh](h)}(hhh]j)}(hu64h]hu64}(hj>hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj>ubah}(h]h ]h"]h$]h&] refdomainj reftypej% reftargetj>modnameN classnameNj j#)}j&]j=c.drmm_cgroup_register_regionasbuh1hhj>ubj)}(h h]h }(hj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>ubj)}(hsizeh]hsize}(hj>hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj>ubeh}(h]h ]h"]h$]h&]noemphjAjBuh1j%hj=ubeh}(h]h ]h"]h$]h&]jAjBuh1j%hjt=hhhj=hMubeh}(h]h ]h"]h$]h&]jAjBjuh1jjjhjp=hhhj=hMubah}(h]jk=ah ](j!j"eh"]h$]h&]j&j')j(huh1jhj=hMhjm=hhubj*)}(hhh]h)}(h,Register a region of a DRM device to cgroupsh]h,Register a region of a DRM device to cgroups}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:90: ./drivers/gpu/drm/drm_drv.chMhj?hhubah}(h]h ]h"]h$]h&]uh1j)hjm=hhhj=hMubeh}(h]h ](j functioneh"]h$]h&]jJj jKj0?jLj0?jMjNjOuh1jhhhj_hNhNubjQ)}(hX**Parameters** ``struct drm_device *dev`` device for region ``const char *region_name`` Region name for registering ``u64 size`` Size of region in bytes **Description** This decreases the ref-count of **dev** by one. The device is destroyed if the ref-count drops to zero.h](h)}(h**Parameters**h]j[)}(hj:?h]h Parameters}(hj` method after registering the device nodes, creating race conditions. Usage of the :c:type:`drm_driver.load ` methods is therefore deprecated, drivers must perform all initialization before calling drm_dev_register(). **Return** 0 on success, negative error code on failure.h](h)}(h**Parameters**h]j[)}(hjAh]h Parameters}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjAubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:90: ./drivers/gpu/drm/drm_drv.chMhjAubjq)}(hhh](jv)}(h.``struct drm_device *dev`` Device to register h](j|)}(h``struct drm_device *dev``h]j)}(hjAh]hstruct drm_device *dev}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjAubah}(h]h ]h"]h$]h&]uh1j{h[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:90: ./drivers/gpu/drm/drm_drv.chMhjAubj)}(hhh]h)}(hDevice to registerh]hDevice to register}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjAhMhjAubah}(h]h ]h"]h$]h&]uh1jhjAubeh}(h]h ]h"]h$]h&]uh1juhjAhMhjAubjv)}(hF``unsigned long flags`` Flags passed to the driver's .load() function h](j|)}(h``unsigned long flags``h]j)}(hjAh]hunsigned long flags}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjAubah}(h]h ]h"]h$]h&]uh1j{h[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:90: ./drivers/gpu/drm/drm_drv.chMhjAubj)}(hhh]h)}(h-Flags passed to the driver's .load() functionh]h/Flags passed to the driver’s .load() function}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjAhMhjAubah}(h]h ]h"]h$]h&]uh1jhjAubeh}(h]h ]h"]h$]h&]uh1juhjAhMhjAubeh}(h]h ]h"]h$]h&]uh1jphjAubh)}(h**Description**h]j[)}(hj#Bh]h Description}(hj%BhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj!Bubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:90: ./drivers/gpu/drm/drm_drv.chMhjAubh)}(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 }(hj9BhhhNhNubj[)}(h**dev**h]hdev}(hjABhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj9BubhT with the system, advertise device to user-space and start normal device operation. }(hj9BhhhNhNubj[)}(h**dev**h]hdev}(hjSBhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj9Bubh3 must be initialized via drm_dev_init() previously.}(hj9BhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:90: ./drivers/gpu/drm/drm_drv.chMhjAubh)}(h$Never call this twice on any device!h]h$Never call this twice on any device!}(hjlBhhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:90: ./drivers/gpu/drm/drm_drv.chMhjAubh)}(h**NOTE**h]j[)}(hj}Bh]hNOTE}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj{Bubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:90: ./drivers/gpu/drm/drm_drv.chMhjAubh)}(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 }(hjBhhhNhNubh)}(h&:c:type:`drm_driver.load `h]j)}(hjBh]hdrm_driver.load}(hjBhhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjBubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnj j$j drm_driveruh1hh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:90: ./drivers/gpu/drm/drm_drv.chMhjBubhS method after registering the device nodes, creating race conditions. Usage of the }(hjBhhhNhNubh)}(h&:c:type:`drm_driver.load `h]j)}(hjBh]hdrm_driver.load}(hjBhhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjBubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnj j$j drm_driveruh1hhjBhMhjBubhl methods is therefore deprecated, drivers must perform all initialization before calling drm_dev_register().}(hjBhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjBhMhjAubh)}(h **Return**h]j[)}(hjBh]hReturn}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjBubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:90: ./drivers/gpu/drm/drm_drv.chMhjAubh)}(h-0 on success, negative error code on failure.h]h-0 on success, negative error code on failure.}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:90: ./drivers/gpu/drm/drm_drv.chMhjAubeh}(h]h ] kernelindentah"]h$]h&]uh1jPhj_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}(hj/ChhhNhNubah}(h]h ]jk%ah"]h$]h&]uh1j^%hj+Chhh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:90: ./drivers/gpu/drm/drm_drv.chM?ubj)}(h h]h }(hj>ChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj+Chhhj=ChM?ubj)}(hdrm_dev_unregisterh]j)}(hdrm_dev_unregisterh]hdrm_dev_unregister}(hjPChhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjLCubah}(h]h ](jjeh"]h$]h&]jAjBuh1jhj+Chhhj=ChM?ubj%)}(h(struct drm_device *dev)h]j%)}(hstruct drm_device *devh](j)}(hjh]hstruct}(hjlChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhCubj)}(h h]h }(hjyChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhCubh)}(hhh]j)}(h drm_deviceh]h drm_device}(hjChhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjCubah}(h]h ]h"]h$]h&] refdomainj reftypej% reftargetjCmodnameN classnameNj j#)}j&]j%)}j%jRCsbc.drm_dev_unregisterasbuh1hhjhCubj)}(h h]h }(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhCubj%)}(hj%h]h*}(hjChhhNhNubah}(h]h ]j%ah"]h$]h&]uh1j%hjhCubj)}(hdevh]hdev}(hjChhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjhCubeh}(h]h ]h"]h$]h&]noemphjAjBuh1j%hjdCubah}(h]h ]h"]h$]h&]jAjBuh1j%hj+Chhhj=ChM?ubeh}(h]h ]h"]h$]h&]jAjBjuh1jjjhj'Chhhj=ChM?ubah}(h]j"Cah ](j!j"eh"]h$]h&]j&j')j(huh1jhj=ChM?hj$Chhubj*)}(hhh]h)}(hUnregister DRM deviceh]hUnregister DRM device}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:90: ./drivers/gpu/drm/drm_drv.chM0hjChhubah}(h]h ]h"]h$]h&]uh1j)hj$Chhhj=ChM?ubeh}(h]h ](j functioneh"]h$]h&]jJj jKjDjLjDjMjNjOuh1jhhhj_hNhNubjQ)}(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]j[)}(hjDh]h Parameters}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjDubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:90: ./drivers/gpu/drm/drm_drv.chM4hj Dubjq)}(hhh]jv)}(h0``struct drm_device *dev`` Device to unregister h](j|)}(h``struct drm_device *dev``h]j)}(hj0Dh]hstruct drm_device *dev}(hj2DhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj.Dubah}(h]h ]h"]h$]h&]uh1j{h[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:90: ./drivers/gpu/drm/drm_drv.chM1hj*Dubj)}(hhh]h)}(hDevice to unregisterh]hDevice to unregister}(hjIDhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjEDhM1hjFDubah}(h]h ]h"]h$]h&]uh1jhj*Dubeh}(h]h ]h"]h$]h&]uh1juhjEDhM1hj'Dubah}(h]h ]h"]h$]h&]uh1jphj Dubh)}(h**Description**h]j[)}(hjkDh]h Description}(hjmDhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjiDubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:90: ./drivers/gpu/drm/drm_drv.chM3hj Dubh)}(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.}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:90: ./drivers/gpu/drm/drm_drv.chM3hj Dubh)}(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 }(hjDhhhNhNubj[)}(h**dev**h]hdev}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjDubh.}(hjDhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:90: ./drivers/gpu/drm/drm_drv.chM9hj Dubh)}(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.}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:90: ./drivers/gpu/drm/drm_drv.chM<hj Dubeh}(h]h ] kernelindentah"]h$]h&]uh1jPhj_hhhNhNubeh}(h]#device-instance-and-driver-handlingah ]h"]#device instance and driver handlingah$]h&]uh1hhhhhhhhKOubh)}(hhh](h)}(h Driver Loadh]h Driver Load}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjDhhhhhK^ubh)}(hhh](h)}(hComponent Helper Usageh]hComponent Helper Usage}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjDhhhhhKaubh)}(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 }(hjDhhhNhNubh)}(h*:ref:`component helper library`h]j)}(hjDh]hcomponent helper library}(hjDhhhNhNubah}(h]h ](j stdstd-refeh"]h$]h&]uh1jhjDubah}(h]h ]h"]h$]h&]refdocj refdomainjEreftyperef refexplicitrefwarnj componentuh1hh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:99: ./drivers/gpu/drm/drm_drv.chMuhjDubhS. For consistency and better options for code reuse the following guidelines apply:}(hjDhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjEhMuhjDhhubj")}(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 }(hj3EhhhNhNubh)}(hA:c:type:`component_master_ops.master_bind `h]j)}(hj=Eh]h component_master_ops.master_bind}(hj?EhhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhj;Eubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnj j$jcomponent_master_opsuh1hh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:99: ./drivers/gpu/drm/drm_drv.chMzhj3Eubh callback, starting with devm_drm_dev_alloc(), then binding all components with component_bind_all() and finishing with drm_dev_register().}(hj3EhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjZEhMzhj/Eubah}(h]h ]h"]h$]h&]uh1j-Ehj*Eubj.E)}(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 }(hjoEhhhNhNubh)}(h(:c:type:`struct drm_device `h]j)}(hjyEh]hstruct drm_device}(hj{EhhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjwEubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnj j$j drm_deviceuh1hh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:99: ./drivers/gpu/drm/drm_drv.chMhjoEubhD of the device instance, not some driver specific private structure.}(hjoEhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjEhMhjkEubah}(h]h ]h"]h$]h&]uh1j-Ehj*Eubj.E)}(hXlThe 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 }(hjEhhhNhNubh)}(h:c:type:`drm_bridge`h]j)}(hjEh]h drm_bridge}(hjEhhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjEubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnj j$j drm_bridgeuh1hh[/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:99: ./drivers/gpu/drm/drm_drv.chMhjEubh or }(hjEhhhNhNubh)}(h:c:type:`drm_panel`h]j)}(hjEh]h drm_panel}(hjEhhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjEubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnj j$j drm_paneluh1hhjEhMhjEubh, 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.}(hjEhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjEhMhjEubah}(h]h ]h"]h$]h&]uh1j-Ehj*Eubeh}(h]h ]h"]h$]h&]bullet-uh1j(EhjZEhMzhj$Eubah}(h]h ]h"]h$]h&]uh1j"hjZEhMzhjDhhubeh}(h]component-helper-usageah ]h"]component helper usageah$]h&]uh1hhjDhhhhhKaubh)}(hhh](h)}(hMemory Manager Initializationh]hMemory Manager Initialization}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjFhhhhhKgubh)}(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.}(hj-FhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKihjFhhubeh}(h]memory-manager-initializationah ]h"]memory manager initializationah$]h&]uh1hhjDhhhhhKgubh)}(hhh](h)}(h"Miscellaneous Device Configurationh]h"Miscellaneous Device Configuration}(hjFFhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjCFhhhhhKpubh)}(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.}(hjTFhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKrhjCFhhubeh}(h]"miscellaneous-device-configurationah ]h"]"miscellaneous device configurationah$]h&]uh1hhjDhhhhhKpubeh}(h] driver-loadah ]h"] driver loadah$]h&]uh1hhhhhhhhK^ubh)}(hhh](h)}(hManaged Resourcesh]hManaged Resources}(hjuFhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjrFhhhhhKubh)}(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 }(hjFhhhNhNubh)}(h:c:type:`device`h]j)}(hjFh]hdevice}(hjFhhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjFubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnj j$jdeviceuh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:129: ./drivers/gpu/drm/drm_managed.chKhjFubh7 managed resources, but tied to the lifetime of struct }(hjFhhhNhNubh)}(h:c:type:`drm_device`h]j)}(hjFh]h drm_device}(hjFhhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjFubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnj j$j drm_deviceuh1hhjFhKhjFubh, which can outlive the underlying physical device, usually when userspace has some open files and other handles to resources still open.}(hjFhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjFhKhjrFhhubh)}(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().}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:129: ./drivers/gpu/drm/drm_managed.chKhjrFhhubh)}(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 }(hjFhhhNhNubh)}(h:c:type:`drm_device`h]j)}(hjFh]h drm_device}(hjFhhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjFubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnj j$j drm_deviceuh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:129: ./drivers/gpu/drm/drm_managed.chKhjFubh instance.}(hjFhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjGhKhjrFhhubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j drmm_release_action (C function)c.drmm_release_actionhNtauh1jhjrFhhhNhNubj)}(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}(hj2GhhhNhNubah}(h]h ]jk%ah"]h$]h&]uh1j^%hj.Ghhh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:132: ./drivers/gpu/drm/drm_managed.chKubj)}(h h]h }(hjAGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.Ghhhj@GhKubj)}(hdrmm_release_actionh]j)}(hdrmm_release_actionh]hdrmm_release_action}(hjSGhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjOGubah}(h]h ](jjeh"]h$]h&]jAjBuh1jhj.Ghhhj@GhKubj%)}(h=(struct drm_device *dev, drmres_release_t action, void *data)h](j%)}(hstruct drm_device *devh](j)}(hjh]hstruct}(hjoGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkGubj)}(h h]h }(hj|GhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkGubh)}(hhh]j)}(h drm_deviceh]h drm_device}(hjGhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjGubah}(h]h ]h"]h$]h&] refdomainj reftypej% reftargetjGmodnameN classnameNj j#)}j&]j%)}j%jUGsbc.drmm_release_actionasbuh1hhjkGubj)}(h h]h }(hjGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkGubj%)}(hj%h]h*}(hjGhhhNhNubah}(h]h ]j%ah"]h$]h&]uh1j%hjkGubj)}(hdevh]hdev}(hjGhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjkGubeh}(h]h ]h"]h$]h&]noemphjAjBuh1j%hjgGubj%)}(hdrmres_release_t actionh](h)}(hhh]j)}(hdrmres_release_th]hdrmres_release_t}(hjGhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjGubah}(h]h ]h"]h$]h&] refdomainj reftypej% reftargetjGmodnameN classnameNj j#)}j&]jGc.drmm_release_actionasbuh1hhjGubj)}(h h]h }(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGubj)}(hactionh]haction}(hjHhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjGubeh}(h]h ]h"]h$]h&]noemphjAjBuh1j%hjgGubj%)}(h void *datah](j_%)}(hvoidh]hvoid}(hj)HhhhNhNubah}(h]h ]jk%ah"]h$]h&]uh1j^%hj%Hubj)}(h h]h }(hj7HhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%Hubj%)}(hj%h]h*}(hjEHhhhNhNubah}(h]h ]j%ah"]h$]h&]uh1j%hj%Hubj)}(hdatah]hdata}(hjRHhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj%Hubeh}(h]h ]h"]h$]h&]noemphjAjBuh1j%hjgGubeh}(h]h ]h"]h$]h&]jAjBuh1j%hj.Ghhhj@GhKubeh}(h]h ]h"]h$]h&]jAjBjuh1jjjhj*Ghhhj@GhKubah}(h]j%Gah ](j!j"eh"]h$]h&]j&j')j(huh1jhj@GhKhj'Ghhubj*)}(hhh]h)}(h4release a managed action from a :c:type:`drm_device`h](h release a managed action from a }(hj|HhhhNhNubh)}(h:c:type:`drm_device`h]j)}(hjHh]h drm_device}(hjHhhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjHubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnj j#)}j&]jGc.drmm_release_actionasbj drm_deviceuh1hhj@GhKhj|Hubeh}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:132: ./drivers/gpu/drm/drm_managed.chKhjyHhhubah}(h]h ]h"]h$]h&]uh1j)hj'Ghhhj@GhKubeh}(h]h ](j functioneh"]h$]h&]jJj jKjHjLjHjMjNjOuh1jhhhjrFhNhNubjQ)}(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]j[)}(hjHh]h Parameters}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjHubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:132: ./drivers/gpu/drm/drm_managed.chKhjHubjq)}(hhh](jv)}(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&]uh1j{h`/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:132: ./drivers/gpu/drm/drm_managed.chKhjHubj)}(hhh]h)}(h DRM deviceh]h DRM device}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjHhKhjHubah}(h]h ]h"]h$]h&]uh1jhjHubeh}(h]h ]h"]h$]h&]uh1juhjHhKhjHubjv)}(hT``drmres_release_t action`` function which would be called when **dev** is released h](j|)}(h``drmres_release_t action``h]j)}(hjIh]hdrmres_release_t action}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjIubah}(h]h ]h"]h$]h&]uh1j{h`/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:132: ./drivers/gpu/drm/drm_managed.chKhjIubj)}(hhh]h)}(h7function which would be called when **dev** is releasedh](h$function which would be called when }(hj3IhhhNhNubj[)}(h**dev**h]hdev}(hj;IhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj3Iubh is released}(hj3IhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj/IhKhj0Iubah}(h]h ]h"]h$]h&]uh1jhjIubeh}(h]h ]h"]h$]h&]uh1juhj/IhKhjHubjv)}(h4``void *data`` opaque pointer, passed to **action** h](j|)}(h``void *data``h]j)}(hjeIh]h void *data}(hjgIhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjcIubah}(h]h ]h"]h$]h&]uh1j{h`/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:132: ./drivers/gpu/drm/drm_managed.chKhj_Iubj)}(hhh]h)}(h$opaque pointer, passed to **action**h](hopaque pointer, passed to }(hj~IhhhNhNubj[)}(h **action**h]haction}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj~Iubeh}(h]h ]h"]h$]h&]uh1hhjzIhKhj{Iubah}(h]h ]h"]h$]h&]uh1jhj_Iubeh}(h]h ]h"]h$]h&]uh1juhjzIhKhjHubeh}(h]h ]h"]h$]h&]uh1jphjHubh)}(h**Description**h]j[)}(hjIh]h Description}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjIubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:132: ./drivers/gpu/drm/drm_managed.chKhjHubh)}(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 }(hjIhhhNhNubj[)}(h **action**h]haction}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjIubh8 previously added by drmm_add_action() immediately. The }(hjIhhhNhNubj[)}(h **action**h]haction}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjIubh1 is removed from the list of cleanup actions for }(hjIhhhNhNubj[)}(h**dev**h]hdev}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjIubhC, which means that it won’t be called in the final drm_dev_put().}(hjIhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:132: ./drivers/gpu/drm/drm_managed.chKhjHubeh}(h]h ] kernelindentah"]h$]h&]uh1jPhjrFhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jdrmm_kmalloc (C function)c.drmm_kmallochNtauh1jhjrFhhhNhNubj)}(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}(hj)JhhhNhNubah}(h]h ]jk%ah"]h$]h&]uh1j^%hj%Jhhh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:132: ./drivers/gpu/drm/drm_managed.chKubj)}(h h]h }(hj8JhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%Jhhhj7JhKubj%)}(hj%h]h*}(hjFJhhhNhNubah}(h]h ]j%ah"]h$]h&]uh1j%hj%Jhhhj7JhKubj)}(h drmm_kmalloch]j)}(h drmm_kmalloch]h drmm_kmalloc}(hjWJhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjSJubah}(h]h ](jjeh"]h$]h&]jAjBuh1jhj%Jhhhj7JhKubj%)}(h0(struct drm_device *dev, size_t size, gfp_t gfp)h](j%)}(hstruct drm_device *devh](j)}(hjh]hstruct}(hjsJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjoJubj)}(h h]h }(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjoJubh)}(hhh]j)}(h drm_deviceh]h drm_device}(hjJhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjJubah}(h]h ]h"]h$]h&] refdomainj reftypej% reftargetjJmodnameN classnameNj j#)}j&]j%)}j%jYJsbc.drmm_kmallocasbuh1hhjoJubj)}(h h]h }(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjoJubj%)}(hj%h]h*}(hjJhhhNhNubah}(h]h ]j%ah"]h$]h&]uh1j%hjoJubj)}(hdevh]hdev}(hjJhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjoJubeh}(h]h ]h"]h$]h&]noemphjAjBuh1j%hjkJubj%)}(h size_t sizeh](h)}(hhh]j)}(hsize_th]hsize_t}(hjJhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjJubah}(h]h ]h"]h$]h&] refdomainj reftypej% reftargetjJmodnameN classnameNj j#)}j&]jJc.drmm_kmallocasbuh1hhjJubj)}(h h]h }(hjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJubj)}(hsizeh]hsize}(hjKhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjJubeh}(h]h ]h"]h$]h&]noemphjAjBuh1j%hjkJubj%)}(h gfp_t gfph](h)}(hhh]j)}(hgfp_th]hgfp_t}(hj0KhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj-Kubah}(h]h ]h"]h$]h&] refdomainj reftypej% reftargetj2KmodnameN classnameNj j#)}j&]jJc.drmm_kmallocasbuh1hhj)Kubj)}(h h]h }(hjNKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj)Kubj)}(hgfph]hgfp}(hj\KhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj)Kubeh}(h]h ]h"]h$]h&]noemphjAjBuh1j%hjkJubeh}(h]h ]h"]h$]h&]jAjBuh1j%hj%Jhhhj7JhKubeh}(h]h ]h"]h$]h&]jAjBjuh1jjjhj!Jhhhj7JhKubah}(h]jJah ](j!j"eh"]h$]h&]j&j')j(huh1jhj7JhKhjJhhubj*)}(hhh]h)}(h&:c:type:`drm_device` managed kmalloc()h](h)}(h:c:type:`drm_device`h]j)}(hjKh]h drm_device}(hjKhhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjKubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnj j#)}j&]jJc.drmm_kmallocasbj drm_deviceuh1hhj@GhKhjKubh managed kmalloc()}(hjKhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:132: ./drivers/gpu/drm/drm_managed.chKhjKhhubah}(h]h ]h"]h$]h&]uh1j)hjJhhhj7JhKubeh}(h]h ](j functioneh"]h$]h&]jJj jKjKjLjKjMjNjOuh1jhhhjrFhNhNubjQ)}(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]j[)}(hjKh]h Parameters}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjKubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:132: ./drivers/gpu/drm/drm_managed.chKhjKubjq)}(hhh](jv)}(h&``struct drm_device *dev`` DRM device h](j|)}(h``struct drm_device *dev``h]j)}(hjKh]hstruct drm_device *dev}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjKubah}(h]h ]h"]h$]h&]uh1j{h`/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:132: ./drivers/gpu/drm/drm_managed.chKhjKubj)}(hhh]h)}(h DRM deviceh]h DRM device}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjLhKhjLubah}(h]h ]h"]h$]h&]uh1jhjKubeh}(h]h ]h"]h$]h&]uh1juhjLhKhjKubjv)}(h.``size_t size`` size of the memory allocation h](j|)}(h``size_t size``h]j)}(hj$Lh]h size_t size}(hj&LhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj"Lubah}(h]h ]h"]h$]h&]uh1j{h`/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:132: ./drivers/gpu/drm/drm_managed.chKhjLubj)}(hhh]h)}(hsize of the memory allocationh]hsize of the memory allocation}(hj=LhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj9LhKhj:Lubah}(h]h ]h"]h$]h&]uh1jhjLubeh}(h]h ]h"]h$]h&]uh1juhj9LhKhjKubjv)}(h#``gfp_t gfp`` GFP allocation flags h](j|)}(h ``gfp_t gfp``h]j)}(hj]Lh]h gfp_t gfp}(hj_LhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj[Lubah}(h]h ]h"]h$]h&]uh1j{h`/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:132: ./drivers/gpu/drm/drm_managed.chKhjWLubj)}(hhh]h)}(hGFP allocation flagsh]hGFP allocation flags}(hjvLhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjrLhKhjsLubah}(h]h ]h"]h$]h&]uh1jhjWLubeh}(h]h ]h"]h$]h&]uh1juhjrLhKhjKubeh}(h]h ]h"]h$]h&]uh1jphjKubh)}(h**Description**h]j[)}(hjLh]h Description}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjLubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:132: ./drivers/gpu/drm/drm_managed.chKhjKubh)}(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 }(hjLhhhNhNubh)}(h:c:type:`drm_device`h]j)}(hjLh]h drm_device}(hjLhhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjLubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnj j$j drm_deviceuh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:132: ./drivers/gpu/drm/drm_managed.chKhjLubh 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().}(hjLhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjLhKhjKubeh}(h]h ] kernelindentah"]h$]h&]uh1jPhjrFhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jdrmm_kstrdup (C function)c.drmm_kstrduphNtauh1jhjrFhhhNhNubj)}(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}(hjMhhhNhNubah}(h]h ]jk%ah"]h$]h&]uh1j^%hjLhhh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:132: ./drivers/gpu/drm/drm_managed.chMubj)}(h h]h }(hjMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLhhhjMhMubj%)}(hj%h]h*}(hjMhhhNhNubah}(h]h ]j%ah"]h$]h&]uh1j%hjLhhhjMhMubj)}(h drmm_kstrduph]j)}(h drmm_kstrduph]h drmm_kstrdup}(hj.MhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj*Mubah}(h]h ](jjeh"]h$]h&]jAjBuh1jhjLhhhjMhMubj%)}(h2(struct drm_device *dev, const char *s, gfp_t gfp)h](j%)}(hstruct drm_device *devh](j)}(hjh]hstruct}(hjJMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjFMubj)}(h h]h }(hjWMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjFMubh)}(hhh]j)}(h drm_deviceh]h drm_device}(hjhMhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjeMubah}(h]h ]h"]h$]h&] refdomainj reftypej% reftargetjjMmodnameN classnameNj j#)}j&]j%)}j%j0Msbc.drmm_kstrdupasbuh1hhjFMubj)}(h h]h }(hjMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjFMubj%)}(hj%h]h*}(hjMhhhNhNubah}(h]h ]j%ah"]h$]h&]uh1j%hjFMubj)}(hdevh]hdev}(hjMhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjFMubeh}(h]h ]h"]h$]h&]noemphjAjBuh1j%hjBMubj%)}(h const char *sh](j)}(hj:'h]hconst}(hjMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMubj)}(h h]h }(hjMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMubj_%)}(hcharh]hchar}(hjMhhhNhNubah}(h]h ]jk%ah"]h$]h&]uh1j^%hjMubj)}(h h]h }(hjMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMubj%)}(hj%h]h*}(hjMhhhNhNubah}(h]h ]j%ah"]h$]h&]uh1j%hjMubj)}(hsh]hs}(hjNhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjMubeh}(h]h ]h"]h$]h&]noemphjAjBuh1j%hjBMubj%)}(h gfp_t gfph](h)}(hhh]j)}(hgfp_th]hgfp_t}(hjNhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjNubah}(h]h ]h"]h$]h&] refdomainj reftypej% reftargetjNmodnameN classnameNj j#)}j&]jMc.drmm_kstrdupasbuh1hhjNubj)}(h h]h }(hj:NhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNubj)}(hgfph]hgfp}(hjHNhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjNubeh}(h]h ]h"]h$]h&]noemphjAjBuh1j%hjBMubeh}(h]h ]h"]h$]h&]jAjBuh1j%hjLhhhjMhMubeh}(h]h ]h"]h$]h&]jAjBjuh1jjjhjLhhhjMhMubah}(h]jLah ](j!j"eh"]h$]h&]j&j')j(huh1jhjMhMhjLhhubj*)}(hhh]h)}(h&:c:type:`drm_device` managed kstrdup()h](h)}(h:c:type:`drm_device`h]j)}(hjxNh]h drm_device}(hjzNhhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjvNubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnj j#)}j&]jMc.drmm_kstrdupasbj drm_deviceuh1hhj@GhKhjrNubh managed kstrdup()}(hjrNhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:132: ./drivers/gpu/drm/drm_managed.chKhjoNhhubah}(h]h ]h"]h$]h&]uh1j)hjLhhhjMhMubeh}(h]h ](j functioneh"]h$]h&]jJj jKjNjLjNjMjNjOuh1jhhhjrFhNhNubjQ)}(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]j[)}(hjNh]h Parameters}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjNubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:132: ./drivers/gpu/drm/drm_managed.chKhjNubjq)}(hhh](jv)}(h&``struct drm_device *dev`` DRM device 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&]uh1j{h`/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:132: ./drivers/gpu/drm/drm_managed.chKhjNubj)}(hhh]h)}(h DRM deviceh]h DRM device}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjNhKhjNubah}(h]h ]h"]h$]h&]uh1jhjNubeh}(h]h ]h"]h$]h&]uh1juhjNhKhjNubjv)}(h7``const char *s`` 0-terminated string to be duplicated h](j|)}(h``const char *s``h]j)}(hjOh]h const char *s}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjOubah}(h]h ]h"]h$]h&]uh1j{h`/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:132: ./drivers/gpu/drm/drm_managed.chKhj Oubj)}(hhh]h)}(h$0-terminated string to be duplicatedh]h$0-terminated string to be duplicated}(hj)OhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj%OhKhj&Oubah}(h]h ]h"]h$]h&]uh1jhj Oubeh}(h]h ]h"]h$]h&]uh1juhj%OhKhjNubjv)}(h#``gfp_t gfp`` GFP allocation flags h](j|)}(h ``gfp_t gfp``h]j)}(hjIOh]h gfp_t gfp}(hjKOhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjGOubah}(h]h ]h"]h$]h&]uh1j{h`/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:132: ./drivers/gpu/drm/drm_managed.chKhjCOubj)}(hhh]h)}(hGFP allocation flagsh]hGFP allocation flags}(hjbOhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj^OhKhj_Oubah}(h]h ]h"]h$]h&]uh1jhjCOubeh}(h]h ]h"]h$]h&]uh1juhj^OhKhjNubeh}(h]h ]h"]h$]h&]uh1jphjNubh)}(h**Description**h]j[)}(hjOh]h Description}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjOubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:132: ./drivers/gpu/drm/drm_managed.chKhjNubh)}(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 }(hjOhhhNhNubh)}(h:c:type:`drm_device`h]j)}(hjOh]h drm_device}(hjOhhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjOubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnj j$j drm_deviceuh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:132: ./drivers/gpu/drm/drm_managed.chKhjOubh 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().}(hjOhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjOhKhjNubeh}(h]h ] kernelindentah"]h$]h&]uh1jPhjrFhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jdrmm_kfree (C function) c.drmm_kfreehNtauh1jhjrFhhhNhNubj)}(hhh](j)}(h4void drmm_kfree (struct drm_device *dev, void *data)h]j)}(h3void drmm_kfree(struct drm_device *dev, void *data)h](j_%)}(hvoidh]hvoid}(hjOhhhNhNubah}(h]h ]jk%ah"]h$]h&]uh1j^%hjOhhh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:132: ./drivers/gpu/drm/drm_managed.chMubj)}(h h]h }(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOhhhjOhMubj)}(h drmm_kfreeh]j)}(h drmm_kfreeh]h drmm_kfree}(hj PhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj Pubah}(h]h ](jjeh"]h$]h&]jAjBuh1jhjOhhhjOhMubj%)}(h$(struct drm_device *dev, void *data)h](j%)}(hstruct drm_device *devh](j)}(hjh]hstruct}(hj)PhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%Pubj)}(h h]h }(hj6PhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%Pubh)}(hhh]j)}(h drm_deviceh]h drm_device}(hjGPhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjDPubah}(h]h ]h"]h$]h&] refdomainj reftypej% reftargetjIPmodnameN classnameNj j#)}j&]j%)}j%jPsb c.drmm_kfreeasbuh1hhj%Pubj)}(h h]h }(hjgPhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%Pubj%)}(hj%h]h*}(hjuPhhhNhNubah}(h]h ]j%ah"]h$]h&]uh1j%hj%Pubj)}(hdevh]hdev}(hjPhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj%Pubeh}(h]h ]h"]h$]h&]noemphjAjBuh1j%hj!Pubj%)}(h void *datah](j_%)}(hvoidh]hvoid}(hjPhhhNhNubah}(h]h ]jk%ah"]h$]h&]uh1j^%hjPubj)}(h h]h }(hjPhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPubj%)}(hj%h]h*}(hjPhhhNhNubah}(h]h ]j%ah"]h$]h&]uh1j%hjPubj)}(hdatah]hdata}(hjPhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjPubeh}(h]h ]h"]h$]h&]noemphjAjBuh1j%hj!Pubeh}(h]h ]h"]h$]h&]jAjBuh1j%hjOhhhjOhMubeh}(h]h ]h"]h$]h&]jAjBjuh1jjjhjOhhhjOhMubah}(h]jOah ](j!j"eh"]h$]h&]j&j')j(huh1jhjOhMhjOhhubj*)}(hhh]h)}(h$:c:type:`drm_device` managed kfree()h](h)}(h:c:type:`drm_device`h]j)}(hjPh]h drm_device}(hjPhhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjPubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnj j#)}j&]jcP c.drmm_kfreeasbj drm_deviceuh1hhj@GhKhjPubh managed kfree()}(hjPhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:132: ./drivers/gpu/drm/drm_managed.chMhjPhhubah}(h]h ]h"]h$]h&]uh1j)hjOhhhjOhMubeh}(h]h ](j functioneh"]h$]h&]jJj jKj*QjLj*QjMjNjOuh1jhhhjrFhNhNubjQ)}(hXC**Parameters** ``struct drm_device *dev`` DRM device ``void *data`` memory allocation to be freed **Description** This is a :c:type:`drm_device` managed version of kfree() which can be used to release memory allocated through drmm_kmalloc() or any of its related functions before the final drm_dev_put() of **dev**.h](h)}(h**Parameters**h]j[)}(hj4Qh]h Parameters}(hj6QhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj2Qubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:132: ./drivers/gpu/drm/drm_managed.chMhj.Qubjq)}(hhh](jv)}(h&``struct drm_device *dev`` DRM device h](j|)}(h``struct drm_device *dev``h]j)}(hjSQh]hstruct drm_device *dev}(hjUQhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjQQubah}(h]h ]h"]h$]h&]uh1j{h`/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:132: ./drivers/gpu/drm/drm_managed.chMhjMQubj)}(hhh]h)}(h DRM deviceh]h DRM device}(hjlQhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhQhMhjiQubah}(h]h ]h"]h$]h&]uh1jhjMQubeh}(h]h ]h"]h$]h&]uh1juhjhQhMhjJQubjv)}(h-``void *data`` memory allocation to be freed h](j|)}(h``void *data``h]j)}(hjQh]h void *data}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjQubah}(h]h ]h"]h$]h&]uh1j{h`/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:132: ./drivers/gpu/drm/drm_managed.chMhjQubj)}(hhh]h)}(hmemory allocation to be freedh]hmemory allocation to be freed}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjQhMhjQubah}(h]h ]h"]h$]h&]uh1jhjQubeh}(h]h ]h"]h$]h&]uh1juhjQhMhjJQubeh}(h]h ]h"]h$]h&]uh1jphj.Qubh)}(h**Description**h]j[)}(hjQh]h Description}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjQubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:132: ./drivers/gpu/drm/drm_managed.chMhj.Qubh)}(hThis is a :c:type:`drm_device` managed version of kfree() which can be used to release memory allocated through drmm_kmalloc() or any of its related functions before the final drm_dev_put() of **dev**.h](h This is a }(hjQhhhNhNubh)}(h:c:type:`drm_device`h]j)}(hjQh]h drm_device}(hjQhhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjQubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnj j$j drm_deviceuh1hh`/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:132: ./drivers/gpu/drm/drm_managed.chMhjQubh managed version of kfree() which can be used to release memory allocated through drmm_kmalloc() or any of its related functions before the final drm_dev_put() of }(hjQhhhNhNubj[)}(h**dev**h]hdev}(hj RhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjQubh.}(hjQhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjRhMhj.Qubeh}(h]h ] kernelindentah"]h$]h&]uh1jPhjrFhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jdrmm_add_action (C macro)c.drmm_add_actionhNtauh1jhjrFhhhNhNubj)}(hhh](j)}(hdrmm_add_actionh]j)}(hdrmm_add_actionh]j)}(hdrmm_add_actionh]j)}(hj;Rh]hdrmm_add_action}(hjERhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjARubah}(h]h ](jjeh"]h$]h&]jAjBuh1jhj=Rhhh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:135: ./include/drm/drm_managed.hhKubah}(h]h ]h"]h$]h&]jAjBjuh1jjjhj9RhhhjXRhKubah}(h]j4Rah ](j!j"eh"]h$]h&]j&j')j(huh1jhjXRhKhj6Rhhubj*)}(hhh]h}(h]h ]h"]h$]h&]uh1j)hj6RhhhjXRhKubeh}(h]h ](j macroeh"]h$]h&]jJj jKjqRjLjqRjMjNjOuh1jhhhjrFhNhNubh)}(h'``drmm_add_action (dev, action, data)``h]j)}(hjwRh]h#drmm_add_action (dev, action, data)}(hjyRhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjuRubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:135: ./include/drm/drm_managed.hhKhjrFhhubj")}(h7add a managed release action to a :c:type:`drm_device` h]h)}(h6add a managed release action to a :c:type:`drm_device`h](h"add a managed release action to a }(hjRhhhNhNubh)}(h:c:type:`drm_device`h]j)}(hjRh]h drm_device}(hjRhhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjRubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnj j$j drm_deviceuh1hh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:135: ./include/drm/drm_managed.hhKhjRubeh}(h]h ]h"]h$]h&]uh1hhjRhKhjRubah}(h]h ]h"]h$]h&]uh1j"hjRhKhjrFhhubjQ)}(hX**Parameters** ``dev`` DRM device ``action`` function which should be called when **dev** is released ``data`` opaque pointer, passed to **action** **Description** This function adds the **release** action with optional parameter **data** to the list of cleanup actions for **dev**. The cleanup actions will be run in reverse order in the final drm_dev_put() call for **dev**.h](h)}(h**Parameters**h]j[)}(hjRh]h Parameters}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjRubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:135: ./include/drm/drm_managed.hhKhjRubjq)}(hhh](jv)}(h``dev`` DRM device h](j|)}(h``dev``h]j)}(hjRh]hdev}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjRubah}(h]h ]h"]h$]h&]uh1j{h\/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:135: ./include/drm/drm_managed.hhKhjRubj)}(hhh]h)}(h DRM deviceh]h DRM device}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1hhjRhKhjSubah}(h]h ]h"]h$]h&]uh1jhjRubeh}(h]h ]h"]h$]h&]uh1juhjRhKhjRubjv)}(hD``action`` function which should be called when **dev** is released h](j|)}(h ``action``h]j)}(hj#Sh]haction}(hj%ShhhNhNubah}(h]h ]h"]h$]h&]uh1jhj!Subah}(h]h ]h"]h$]h&]uh1j{h\/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:135: ./include/drm/drm_managed.hhKhjSubj)}(hhh]h)}(h8function which should be called when **dev** is releasedh](h%function which should be called when }(hjTh]hdrmm_add_action_or_reset}(hjHThhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjDTubah}(h]h ](jjeh"]h$]h&]jAjBuh1jhj@Thhh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:135: ./include/drm/drm_managed.hhK)ubah}(h]h ]h"]h$]h&]jAjBjuh1jjjhj]ubj)}(h h]h }(hjc]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>]ubj)}(hsizeh]hsize}(hjq]hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj>]ubeh}(h]h ]h"]h$]h&]noemphjAjBuh1j%hj\ubj%)}(h gfp_t flagsh](h)}(hhh]j)}(hgfp_th]hgfp_t}(hj]hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj]ubah}(h]h ]h"]h$]h&] refdomainj reftypej% reftargetj]modnameN classnameNj j#)}j&]j\c.drmm_kcallocasbuh1hhj]ubj)}(h h]h }(hj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]ubj)}(hflagsh]hflags}(hj]hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj]ubeh}(h]h ]h"]h$]h&]noemphjAjBuh1j%hj\ubeh}(h]h ]h"]h$]h&]jAjBuh1j%hj;\hhhjM\hKfubeh}(h]h ]h"]h$]h&]jAjBjuh1jjjhj7\hhhjM\hKfubah}(h]j2\ah ](j!j"eh"]h$]h&]j&j')j(huh1jhjM\hKfhj4\hhubj*)}(hhh]h)}(h&:c:type:`drm_device` managed kcalloc()h](h)}(h:c:type:`drm_device`h]j)}(hj]h]h drm_device}(hj]hhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhj]ubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnj j#)}j&]j\c.drmm_kcallocasbj drm_deviceuh1hhjXRhKhj]ubh managed kcalloc()}(hj]hhhNhNubeh}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:135: ./include/drm/drm_managed.hhK\hj]hhubah}(h]h ]h"]h$]h&]uh1j)hj4\hhhjM\hKfubeh}(h]h ](j functioneh"]h$]h&]jJj jKj^jLj^jMjNjOuh1jhhhjrFhNhNubjQ)}(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]j[)}(hj)^h]h Parameters}(hj+^hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj'^ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:135: ./include/drm/drm_managed.hhK`hj#^ubjq)}(hhh](jv)}(h&``struct drm_device *dev`` DRM device h](j|)}(h``struct drm_device *dev``h]j)}(hjH^h]hstruct drm_device *dev}(hjJ^hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjF^ubah}(h]h ]h"]h$]h&]uh1j{h\/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:135: ./include/drm/drm_managed.hhK]hjB^ubj)}(hhh]h)}(h DRM deviceh]h DRM device}(hja^hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj]^hK]hj^^ubah}(h]h ]h"]h$]h&]uh1jhjB^ubeh}(h]h ]h"]h$]h&]uh1juhj]^hK]hj?^ubjv)}(h2``size_t n`` number of array elements to allocate h](j|)}(h ``size_t n``h]j)}(hj^h]hsize_t n}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj^ubah}(h]h ]h"]h$]h&]uh1j{h\/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:135: ./include/drm/drm_managed.hhK^hj{^ubj)}(hhh]h)}(h$number of array elements to allocateh]h$number of array elements to allocate}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj^hK^hj^ubah}(h]h ]h"]h$]h&]uh1jhj{^ubeh}(h]h ]h"]h$]h&]uh1juhj^hK^hj?^ubjv)}(h%``size_t size`` size of array member 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&]uh1j{h\/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:135: ./include/drm/drm_managed.hhK_hj^ubj)}(hhh]h)}(hsize of array memberh]hsize of array member}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj^hK_hj^ubah}(h]h ]h"]h$]h&]uh1jhj^ubeh}(h]h ]h"]h$]h&]uh1juhj^hK_hj?^ubjv)}(h%``gfp_t flags`` GFP allocation flags h](j|)}(h``gfp_t flags``h]j)}(hj^h]h gfp_t flags}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj^ubah}(h]h ]h"]h$]h&]uh1j{h\/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:135: ./include/drm/drm_managed.hhK`hj^ubj)}(hhh]h)}(hGFP allocation flagsh]hGFP allocation flags}(hj _hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj_hK`hj _ubah}(h]h ]h"]h$]h&]uh1jhj^ubeh}(h]h ]h"]h$]h&]uh1juhj_hK`hj?^ubeh}(h]h ]h"]h$]h&]uh1jphj#^ubh)}(h**Description**h]j[)}(hj._h]h Description}(hj0_hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj,_ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:135: ./include/drm/drm_managed.hhKbhj#^ubh)}(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 }(hjD_hhhNhNubh)}(h:c:type:`drm_device`h]j)}(hjN_h]h drm_device}(hjP_hhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjL_ubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnj j$j drm_deviceuh1hh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:135: ./include/drm/drm_managed.hhKbhjD_ubh 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().}(hjD_hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjk_hKbhj#^ubeh}(h]h ] kernelindentah"]h$]h&]uh1jPhjrFhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jdrmm_mutex_init (C macro)c.drmm_mutex_inithNtauh1jhjrFhhhNhNubj)}(hhh](j)}(hdrmm_mutex_inith]j)}(hdrmm_mutex_inith]j)}(hdrmm_mutex_inith]j)}(hj_h]hdrmm_mutex_init}(hj_hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj_ubah}(h]h ](jjeh"]h$]h&]jAjBuh1jhj_hhh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:135: ./include/drm/drm_managed.hhK}ubah}(h]h ]h"]h$]h&]jAjBjuh1jjjhj_hhhj_hK}ubah}(h]j_ah ](j!j"eh"]h$]h&]j&j')j(huh1jhj_hK}hj_hhubj*)}(hhh]h}(h]h ]h"]h$]h&]uh1j)hj_hhhj_hK}ubeh}(h]h ](j macroeh"]h$]h&]jJj jKj_jLj_jMjNjOuh1jhhhjrFhNhNubh)}(h``drmm_mutex_init (dev, lock)``h]j)}(hj_h]hdrmm_mutex_init (dev, lock)}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj_ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:135: ./include/drm/drm_managed.hhKhjrFhhubj")}(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)}(hj_h]h drm_device}(hj_hhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhj_ubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnj j$j drm_deviceuh1hh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:135: ./include/drm/drm_managed.hhKshj_ubh-managed mutex_init()}(hj_hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj `hKshj_ubah}(h]h ]h"]h$]h&]uh1j"hj `hKshjrFhhubjQ)}(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]j[)}(hj `h]h Parameters}(hj"`hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj`ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:135: ./include/drm/drm_managed.hhKwhj`ubjq)}(hhh](jv)}(h``dev`` DRM device h](j|)}(h``dev``h]j)}(hj?`h]hdev}(hjA`hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj=`ubah}(h]h ]h"]h$]h&]uh1j{h\/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:135: ./include/drm/drm_managed.hhKthj9`ubj)}(hhh]h)}(h DRM deviceh]h DRM device}(hjX`hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjT`hKthjU`ubah}(h]h ]h"]h$]h&]uh1jhj9`ubeh}(h]h ]h"]h$]h&]uh1juhjT`hKthj6`ubjv)}(h ``lock`` lock to be initialized h](j|)}(h``lock``h]j)}(hjx`h]hlock}(hjz`hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjv`ubah}(h]h ]h"]h$]h&]uh1j{h\/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:135: ./include/drm/drm_managed.hhKuhjr`ubj)}(hhh]h)}(hlock to be initializedh]hlock to be initialized}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj`hKuhj`ubah}(h]h ]h"]h$]h&]uh1jhjr`ubeh}(h]h ]h"]h$]h&]uh1juhj`hKuhj6`ubeh}(h]h ]h"]h$]h&]uh1jphj`ubh)}(h **Return**h]j[)}(hj`h]hReturn}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj`ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:135: ./include/drm/drm_managed.hhKwhj`ubh)}(h10 on success, or a negative errno code otherwise.h]h10 on success, or a negative errno code otherwise.}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:135: ./include/drm/drm_managed.hhKwhj`ubh)}(h**Description**h]j[)}(hj`h]h Description}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj`ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:135: ./include/drm/drm_managed.hhKyhj`ubh)}(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 }(hj`hhhNhNubh)}(h:c:type:`drm_device`h]j)}(hj`h]h drm_device}(hj`hhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhj`ubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnj j$j drm_deviceuh1hh\/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:135: ./include/drm/drm_managed.hhKzhj`ubhm-managed version of mutex_init(). The initialized lock is automatically destroyed on the final drm_dev_put().}(hj`hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjahKzhj`ubeh}(h]h ] kernelindentah"]h$]h&]uh1jPhjrFhhhNhNubeh}(h]managed-resourcesah ]h"]managed resourcesah$]h&]uh1hhhhhhhhKubeh}(h]driver-initializationah ]h"]driver initializationah$]h&]uh1hhhhhhhhKubh)}(hhh](h)}(h&Open/Close, File Operations and IOCTLsh]h&Open/Close, File Operations and IOCTLs}(hj` 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 }(hjiahhhNhNubh)}(h2:c:type:`struct file_operations `h]j)}(hjsah]hstruct file_operations}(hjuahhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjqaubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnj j$jfile_operationsuh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:146: ./drivers/gpu/drm/drm_file.chKFhjiaubh must be stored in the }(hjiahhhNhNubh)}(h&:c:type:`drm_driver.fops `h]j)}(hjah]hdrm_driver.fops}(hjahhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjaubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnj j$j drm_driveruh1hhjahKFhjiaubhXY 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 }(hjiahhhNhNubh)}(h8:c:type:`file_operations.compat_ioctl `h]j)}(hjah]hfile_operations.compat_ioctl}(hjahhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjaubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnj j$jfile_operationsuh1hhjahKFhjiaubhT handler that processes private ioctls and calls drm_compat_ioctl() for core ioctls.}(hjiahhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjahKFhjXahhubh)}(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.}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:146: ./drivers/gpu/drm/drm_file.chKQhjXahhubh)}(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.}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:146: ./drivers/gpu/drm/drm_file.chKWhjXahhubh)}(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().}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:146: ./drivers/gpu/drm/drm_file.chKZhjXahhubh)}(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 }(hjbhhhNhNubh)}(h:c:type:`file_operations`h]j)}(hjbh]hfile_operations}(hjbhhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjbubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnj j$jfile_operationsuh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:146: ./drivers/gpu/drm/drm_file.chK]hjbubh structure:}(hjbhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj5bhK]hjXahhubj2)}(hX8static const example_drm_fops = { .owner = THIS_MODULE, .open = drm_open, .release = drm_release, .unlocked_ioctl = drm_ioctl, .compat_ioctl = drm_compat_ioctl, // NULL if CONFIG_COMPAT=n .poll = drm_poll, .read = drm_read, .mmap = drm_gem_mmap, };h]hX8static const example_drm_fops = { .owner = THIS_MODULE, .open = drm_open, .release = drm_release, .unlocked_ioctl = drm_ioctl, .compat_ioctl = drm_compat_ioctl, // NULL if CONFIG_COMPAT=n .poll = drm_poll, .read = drm_read, .mmap = drm_gem_mmap, };}hj@bsbah}(h]h ]h"]h$]h&]jAjBuh1j1h]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:146: ./drivers/gpu/drm/drm_file.chK`hjXahhubh)}(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.}(hjObhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:146: ./drivers/gpu/drm/drm_file.chKkhjXahhubh)}(h`The driver's :c:type:`file_operations` must be stored in :c:type:`drm_driver.fops `.h](hThe driver’s }(hj^bhhhNhNubh)}(h:c:type:`file_operations`h]j)}(hjhbh]hfile_operations}(hjjbhhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjfbubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnj j$jfile_operationsuh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:146: ./drivers/gpu/drm/drm_file.chKohj^bubh must be stored in }(hj^bhhhNhNubh)}(h&:c:type:`drm_driver.fops `h]j)}(hjbh]hdrm_driver.fops}(hjbhhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjbubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnj j$j drm_driveruh1hhjbhKohj^bubh.}(hj^bhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjbhKohjXahhubh)}(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 }(hjbhhhNhNubh)}(hI:ref:`IOCTL support in the userland interfaces chapter`h]j)}(hjbh]h0IOCTL support in the userland interfaces chapter}(hjbhhhNhNubah}(h]h ](j stdstd-refeh"]h$]h&]uh1jhjbubah}(h]h ]h"]h$]h&]refdocj refdomainjbreftyperef refexplicitrefwarnjdrm_driver_ioctluh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:146: ./drivers/gpu/drm/drm_file.chKqhjbubh.}(hjbhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjbhKqhjXahhubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jdrm_minor (C struct) c.drm_minorhNtauh1jhjXahhhY/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}(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbhhhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhKubj)}(h h]h }(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbhhhj chKubj)}(h drm_minorh]j)}(hjbh]h drm_minor}(hj chhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjcubah}(h]h ](jjeh"]h$]h&]jAjBuh1jhjbhhhj chKubeh}(h]h ]h"]h$]h&]jAjBjuh1jjjhjbhhhj chKubah}(h]jbah ](j!j"eh"]h$]h&]j&j')j(huh1jhj chKhjbhhubj*)}(hhh]h)}(hDRM device minor structureh]hDRM device minor structure}(hjBchhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhKEhj?chhubah}(h]h ]h"]h$]h&]uh1j)hjbhhhj chKubeh}(h]h ](j structeh"]h$]h&]jJj jKjZcjLjZcjMjNjOuh1jhhhjXahjbhNubjQ)}(h8**Definition**:: struct drm_minor { }; **Members**h](h)}(h**Definition**::h](j[)}(h**Definition**h]h Definition}(hjfchhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjbcubh:}(hjbchhhNhNubeh}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhKIhj^cubj2)}(hstruct drm_minor { };h]hstruct drm_minor { };}hjcsbah}(h]h ]h"]h$]h&]jAjBuh1j1hY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhKKhj^cubh)}(h **Members**h]j[)}(hjch]hMembers}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjcubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhKNhj^cubeh}(h]h ] kernelindentah"]h$]h&]uh1jPhjXahhhjbhNubh)}(h**Description**h]j[)}(hjch]h Description}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjcubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhKQhjXahhubh)}(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 }(hjchhhNhNubh)}(h$:c:type:`struct drm_file `h]j)}(hjch]hstruct drm_file}(hjchhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjcubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnj j$jdrm_fileuh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhKFhjcubh and of course }(hjchhhNhNubh)}(h(:c:type:`struct drm_device `h]j)}(hjch]hstruct drm_device}(hjchhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjcubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnj j$j drm_deviceuh1hhjchKFhjcubhK, which is also where driver-private data and resources can be attached to.}(hjchhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjchKFhjXahhubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jdrm_pending_event (C struct)c.drm_pending_eventhNtauh1jhjXahhhjbhNubj)}(hhh](j)}(hdrm_pending_eventh]j)}(hstruct drm_pending_eventh](j)}(hjh]hstruct}(hj3dhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/dhhhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhKOubj)}(h h]h }(hjAdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/dhhhj@dhKOubj)}(hdrm_pending_eventh]j)}(hj-dh]hdrm_pending_event}(hjSdhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjOdubah}(h]h ](jjeh"]h$]h&]jAjBuh1jhj/dhhhj@dhKOubeh}(h]h ]h"]h$]h&]jAjBjuh1jjjhj+dhhhj@dhKOubah}(h]j&dah ](j!j"eh"]h$]h&]j&j')j(huh1jhj@dhKOhj(dhhubj*)}(hhh]h)}(h%Event queued up for userspace to readh]h%Event queued up for userspace to read}(hjudhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhKYhjrdhhubah}(h]h ]h"]h$]h&]uh1j)hj(dhhhj@dhKOubeh}(h]h ](j structeh"]h$]h&]jJj jKjdjLjdjMjNjOuh1jhhhjXahjbhNubjQ)}(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](j[)}(h**Definition**h]h Definition}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjdubh:}(hjdhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhK]hjdubj2)}(hXstruct drm_pending_event { struct completion *completion; void (*completion_release)(struct completion *completion); struct drm_event *event; struct dma_fence *fence; struct drm_file *file_priv; struct list_head link; struct list_head pending_link; };h]hXstruct drm_pending_event { struct completion *completion; void (*completion_release)(struct completion *completion); struct drm_event *event; struct dma_fence *fence; struct drm_file *file_priv; struct list_head link; struct list_head pending_link; };}hjdsbah}(h]h ]h"]h$]h&]jAjBuh1j1hY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhK_hjdubh)}(h **Members**h]j[)}(hjdh]hMembers}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjdubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhKihjdubjq)}(hhh](jv)}(h``completion`` Optional pointer to a kernel internal completion signalled when drm_send_event() is called, useful to internally synchronize with nonblocking operations. h](j|)}(h``completion``h]j)}(hjdh]h completion}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjdubah}(h]h ]h"]h$]h&]uh1j{hY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhKdhjdubj)}(hhh]h)}(hOptional pointer to a kernel internal completion signalled when drm_send_event() is called, useful to internally synchronize with nonblocking operations.h]hOptional pointer to a kernel internal completion signalled when drm_send_event() is called, useful to internally synchronize with nonblocking operations.}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhKbhjdubah}(h]h ]h"]h$]h&]uh1jhjdubeh}(h]h ]h"]h$]h&]uh1juhjdhKdhjdubjv)}(h``completion_release`` Optional callback currently only used by the atomic modeset helpers to clean up the reference count for the structure **completion** is stored in. h](j|)}(h``completion_release``h]j)}(hjeh]hcompletion_release}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jhjeubah}(h]h ]h"]h$]h&]uh1j{hY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhKmhjeubj)}(hhh]h)}(hOptional callback currently only used by the atomic modeset helpers to clean up the reference count for the structure **completion** is stored in.h](hvOptional callback currently only used by the atomic modeset helpers to clean up the reference count for the structure }(hj5ehhhNhNubj[)}(h**completion**h]h completion}(hj=ehhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj5eubh is stored in.}(hj5ehhhNhNubeh}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhKkhj2eubah}(h]h ]h"]h$]h&]uh1jhjeubeh}(h]h ]h"]h$]h&]uh1juhj1ehKmhjdubjv)}(h``event`` Pointer to the actual event that should be sent to userspace to be read using drm_read(). Can be optional, since nowadays events are also used to signal kernel internal threads with **completion** or DMA transactions using **fence**. h](j|)}(h ``event``h]j)}(hjheh]hevent}(hjjehhhNhNubah}(h]h ]h"]h$]h&]uh1jhjfeubah}(h]h ]h"]h$]h&]uh1j{hY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhKwhjbeubj)}(hhh]h)}(hPointer to the actual event that should be sent to userspace to be read using drm_read(). Can be optional, since nowadays events are also used to signal kernel internal threads with **completion** or DMA transactions using **fence**.h](hPointer to the actual event that should be sent to userspace to be read using drm_read(). Can be optional, since nowadays events are also used to signal kernel internal threads with }(hjehhhNhNubj[)}(h**completion**h]h completion}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjeubh or DMA transactions using }(hjehhhNhNubj[)}(h **fence**h]hfence}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjeubh.}(hjehhhNhNubeh}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhKthj~eubah}(h]h ]h"]h$]h&]uh1jhjbeubeh}(h]h ]h"]h$]h&]uh1juhj}ehKwhjdubjv)}(h``fence`` Optional DMA fence to unblock other hardware transactions which depend upon the nonblocking DRM operation this event represents. h](j|)}(h ``fence``h]j)}(hjeh]hfence}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jhjeubah}(h]h ]h"]h$]h&]uh1j{hY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhKhjeubj)}(hhh]h)}(hOptional DMA fence to unblock other hardware transactions which depend upon the nonblocking DRM operation this event represents.h]hOptional DMA fence to unblock other hardware transactions which depend upon the nonblocking DRM operation this event represents.}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhK~hjeubah}(h]h ]h"]h$]h&]uh1jhjeubeh}(h]h ]h"]h$]h&]uh1juhjehKhjdubjv)}(h{``file_priv`` :c:type:`struct drm_file ` where **event** should be delivered to. Only set when **event** is set. h](j|)}(h ``file_priv``h]j)}(hjfh]h file_priv}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjeubah}(h]h ]h"]h$]h&]uh1j{hY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhKhjeubj)}(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)}(hjfh]hstruct drm_file}(hj!fhhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjfubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnj j$jdrm_fileuh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhKhjfubh where }(hjfhhhNhNubj[)}(h **event**h]hevent}(hjAfhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjfubh' should be delivered to. Only set when }(hjfhhhNhNubj[)}(h **event**h]hevent}(hjSfhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjfubh is set.}(hjfhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj`, 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)}(hjfh]h pending_link}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjfubah}(h]h ]h"]h$]h&]uh1j{hY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhKhjfubj)}(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 }(hjfhhhNhNubh)}(h0:c:type:`drm_file.pending_event_list `h]j)}(hjfh]hdrm_file.pending_event_list}(hjfhhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjfubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnj j$jdrm_fileuh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhKhjfubh*, to keep track of all pending events for }(hjfhhhNhNubj[)}(h **file_priv**h]h file_priv}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjfubhb, to allow correct unwinding of them when userspace closes the file before the event is delivered.}(hjfhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjfhKhjfubah}(h]h ]h"]h$]h&]uh1jhjfubeh}(h]h ]h"]h$]h&]uh1juhjfhKhjdubeh}(h]h ]h"]h$]h&]uh1jphjdubeh}(h]h ] kernelindentah"]h$]h&]uh1jPhjXahhhjbhNubh)}(h**Description**h]j[)}(hj/gh]h Description}(hj1ghhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj-gubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhKhjXahhubh)}(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 }(hjEghhhNhNubh)}(h(:c:type:`struct completion `h]j)}(hjOgh]hstruct completion}(hjQghhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjMgubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnj j$j completionuh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhKZhjEgubh, }(hjEghhhNhNubh)}(h&:c:type:`struct dma_fence `h]j)}(hjsgh]hstruct dma_fence}(hjughhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjqgubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnj j$j dma_fenceuh1hhjlghKZhjEgubh and also the DRM-specific }(hjEghhhNhNubh)}(h&:c:type:`struct drm_event `h]j)}(hjgh]hstruct drm_event}(hjghhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjgubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnj j$j drm_eventuh1hhjlghKZhjEgubh delivery mechanism.}(hjEghhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjlghKZhjXahhubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jdrm_file (C struct) c.drm_filehNtauh1jhjXahhhjbhNubj)}(hhh](j)}(hdrm_fileh]j)}(hstruct drm_fileh](j)}(hjh]hstruct}(hjghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjghhhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhKaubj)}(h h]h }(hjghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjghhhjghKaubj)}(hdrm_fileh]j)}(hjgh]hdrm_file}(hjghhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjgubah}(h]h ](jjeh"]h$]h&]jAjBuh1jhjghhhjghKaubeh}(h]h ]h"]h$]h&]jAjBjuh1jjjhjghhhjghKaubah}(h]jgah ](j!j"eh"]h$]h&]j&j')j(huh1jhjghKahjghhubj*)}(hhh]h)}(hDRM file private datah]hDRM file private data}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhKhjhhhubah}(h]h ]h"]h$]h&]uh1j)hjghhhjghKaubeh}(h]h ](j structeh"]h$]h&]jJj jKj0hjLj0hjMjNjOuh1jhhhjXahjbhNubjQ)}(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; }; **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**. ``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**.h](h)}(h**Definition**::h](j[)}(h**Definition**h]h Definition}(hj`. h](j|)}(h``authenticated``h]j)}(hjhh]h authenticated}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhubah}(h]h ]h"]h$]h&]uh1j{hY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhKhjhubj)}(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.}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhKhjhubh)}(hSSee also the :ref:`section on primary nodes and authentication `.h](h See also the }(hjhhhhNhNubh)}(hE:ref:`section on primary nodes and authentication `h]j)}(hjhh]h+section on primary nodes and authentication}(hjhhhhNhNubah}(h]h ](j stdstd-refeh"]h$]h&]uh1jhjhubah}(h]h ]h"]h$]h&]refdocj refdomainjhreftyperef refexplicitrefwarnjdrm_primary_nodeuh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhKhjhubh.}(hjhhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhhKhjhubeh}(h]h ]h"]h$]h&]uh1jhjhubeh}(h]h ]h"]h$]h&]uh1juhjhhKhj|hubjv)}(hU``stereo_allowed`` True when the client has asked us to expose stereo 3D mode flags. h](j|)}(h``stereo_allowed``h]j)}(hjhh]hstereo_allowed}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhubah}(h]h ]h"]h$]h&]uh1j{hY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhKhjhubj)}(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.}(hj ihhhNhNubah}(h]h ]h"]h$]h&]uh1hhjihKhjiubah}(h]h ]h"]h$]h&]uh1jhjhubeh}(h]h ]h"]h$]h&]uh1juhjihKhj|hubjv)}(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)}(hj+ih]huniversal_planes}(hj-ihhhNhNubah}(h]h ]h"]h$]h&]uh1jhj)iubah}(h]h ]h"]h$]h&]uh1j{hY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhKhj%iubj)}(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 }(hjDihhhNhNubj[)}(h **atomic**h]hatomic}(hjLihhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjDiubh is set.}(hjDihhhNhNubeh}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhKhjAiubah}(h]h ]h"]h$]h&]uh1jhj%iubeh}(h]h ]h"]h$]h&]uh1juhj@ihKhj|hubjv)}(h9``atomic`` True if client understands atomic properties. h](j|)}(h ``atomic``h]j)}(hjwih]hatomic}(hjyihhhNhNubah}(h]h ]h"]h$]h&]uh1jhjuiubah}(h]h ]h"]h$]h&]uh1j{hY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhKhjqiubj)}(hhh]h)}(h-True if client understands atomic properties.h]h-True if client understands atomic properties.}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1hhjihKhjiubah}(h]h ]h"]h$]h&]uh1jhjqiubeh}(h]h ]h"]h$]h&]uh1juhjihKhj|hubjv)}(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)}(hjih]haspect_ratio_allowed}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jhjiubah}(h]h ]h"]h$]h&]uh1j{hY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhKhjiubj)}(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.}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhKhjiubah}(h]h ]h"]h$]h&]uh1jhjiubeh}(h]h ]h"]h$]h&]uh1juhjihKhj|hubjv)}(hI``writeback_connectors`` True if client understands writeback connectors h](j|)}(h``writeback_connectors``h]j)}(hjih]hwriteback_connectors}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jhjiubah}(h]h ]h"]h$]h&]uh1j{hY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhKhjiubj)}(hhh]h)}(h/True if client understands writeback connectorsh]h/True if client understands writeback connectors}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjihKhjjubah}(h]h ]h"]h$]h&]uh1jhjiubeh}(h]h ]h"]h$]h&]uh1juhjihKhj|hubjv)}(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)}(hj#jh]h was_master}(hj%jhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj!jubah}(h]h ]h"]h$]h&]uh1j{hY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhKhjjubj)}(hhh](h)}(hnThis client has or had, master capability. Protected by struct :c:type:`drm_device.master_mutex `.h](h?This client has or had, master capability. Protected by struct }(hj`h]j)}(hjFjh]hdrm_device.master_mutex}(hjHjhhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjDjubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnj j$j drm_deviceuh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhKhj`. See also the :ref:`section on primary nodes and authentication `. h](j|)}(h ``is_master``h]j)}(hjjh]h is_master}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjjubah}(h]h ]h"]h$]h&]uh1j{hY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhKhjjubj)}(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 }(hjjhhhNhNubj[)}(h **master**h]hmaster}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjjubh. Protected by struct }(hjjhhhNhNubh)}(h.:c:type:`drm_device.master_mutex `h]j)}(hjjh]hdrm_device.master_mutex}(hjjhhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjjubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnj j$j drm_deviceuh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhKhjjubh.}(hjjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjjhKhjjubh)}(hSSee also the :ref:`section on primary nodes and authentication `.h](h See also the }(hjjhhhNhNubh)}(hE:ref:`section on primary nodes and authentication `h]j)}(hjjh]h+section on primary nodes and authentication}(hjjhhhNhNubah}(h]h ](j stdstd-refeh"]h$]h&]uh1jhjjubah}(h]h ]h"]h$]h&]refdocj refdomainjkreftyperef refexplicitrefwarnjdrm_primary_nodeuh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhKhjjubh.}(hjjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjkhKhjjubeh}(h]h ]h"]h$]h&]uh1jhjjubeh}(h]h ]h"]h$]h&]uh1juhjjhKhj|hubjv)}(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)}(hj1kh]h!supports_virtualized_cursor_plane}(hj3khhhNhNubah}(h]h ]h"]h$]h&]uh1jhj/kubah}(h]h ]h"]h$]h&]uh1j{hY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhKhj+kubj)}(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.}(hjJkhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhKhjGkubh)}(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.}(hjYkhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhKhjGkubeh}(h]h ]h"]h$]h&]uh1jhj+kubeh}(h]h ]h"]h$]h&]uh1juhjFkhKhj|hubjv)}(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)}(hjzkh]hmaster}(hj|khhhNhNubah}(h]h ]h"]h$]h&]uh1jhjxkubah}(h]h ]h"]h$]h&]uh1j{hY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhMhjtkubj)}(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 }(hjkhhhNhNubh)}(h.:c:type:`drm_device.master_mutex `h]j)}(hjkh]hdrm_device.master_mutex}(hjkhhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjkubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnj j$j drm_deviceuh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhKhjkubh, and serialized by }(hjkhhhNhNubj[)}(h**master_lookup_lock**h]hmaster_lookup_lock}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjkubh.}(hjkhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjkhKhjkubh)}(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 }(hjkhhhNhNubh)}(h(:c:type:`drm_device.master `h]j)}(hjkh]hdrm_device.master}(hjkhhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjkubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnj j$j drm_deviceuh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhKhjkubh+ if the master is the currently active one.}(hjkhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjkhKhjkubh)}(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 }(hj lhhhNhNubj[)}(h **master**h]hmaster}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj lubh, both }(hj lhhhNhNubh)}(h.:c:type:`drm_device.master_mutex `h]j)}(hj%lh]hdrm_device.master_mutex}(hj'lhhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhj#lubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnj j$j drm_deviceuh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhKhj lubh and }(hj lhhhNhNubj[)}(h**master_lookup_lock**h]hmaster_lookup_lock}(hjGlhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj lubhX need to be held, therefore holding either of them is safe and enough for the read side.}(hj lhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjBlhKhjkubh)}(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 }(hj_lhhhNhNubh)}(h.:c:type:`drm_device.master_mutex `h]j)}(hjilh]hdrm_device.master_mutex}(hjklhhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjglubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnj j$j drm_deviceuh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhMhj_lubhQ for the duration of the pointer’s use, or use drm_file_get_master() if struct }(hj_lhhhNhNubh)}(h.:c:type:`drm_device.master_mutex `h]j)}(hjlh]hdrm_device.master_mutex}(hjlhhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjlubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnj j$j drm_deviceuh1hhjlhMhj_lubhL is not currently held and there is no other need to hold it. This prevents }(hj_lhhhNhNubj[)}(h **master**h]hmaster}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj_lubh from being freed during use.}(hj_lhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjlhMhjkubh)}(h|See also **authentication** and **is_master** and the :ref:`section on primary nodes and authentication `.h](h See also }(hjlhhhNhNubj[)}(h**authentication**h]hauthentication}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjlubh and }(hjlhhhNhNubj[)}(h **is_master**h]h is_master}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjlubh and the }(hjlhhhNhNubh)}(hE:ref:`section on primary nodes and authentication `h]j)}(hjlh]h+section on primary nodes and authentication}(hjlhhhNhNubah}(h]h ](j stdstd-refeh"]h$]h&]uh1jhjlubah}(h]h ]h"]h$]h&]refdocj refdomainjmreftyperef refexplicitrefwarnjdrm_primary_nodeuh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhMhjlubh.}(hjlhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjmhMhjkubeh}(h]h ]h"]h$]h&]uh1jhjtkubeh}(h]h ]h"]h$]h&]uh1juhjkhMhj|hubjv)}(h.``master_lookup_lock`` Serializes **master**. h](j|)}(h``master_lookup_lock``h]j)}(hj/mh]hmaster_lookup_lock}(hj1mhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj-mubah}(h]h ]h"]h$]h&]uh1j{hY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhKhj)mubj)}(hhh]h)}(hSerializes **master**.h](h Serializes }(hjHmhhhNhNubj[)}(h **master**h]hmaster}(hjPmhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjHmubh.}(hjHmhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjDmhKhjEmubah}(h]h ]h"]h$]h&]uh1jhj)mubeh}(h]h ]h"]h$]h&]uh1juhjDmhKhj|hubjv)}(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)}(hjzmh]hpid}(hj|mhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjxmubah}(h]h ]h"]h$]h&]uh1j{hY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhMhjtmubj)}(hhh](h)}(h Process that is using this file.h]h Process that is using this file.}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhMhjmubh)}(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.}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhMhjmubh)}(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.}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhMhjmubeh}(h]h ]h"]h$]h&]uh1jhjtmubeh}(h]h ]h"]h$]h&]uh1juhjmhMhj|hubjv)}(h%``client_id`` A unique id for fdinfo h](j|)}(h ``client_id``h]j)}(hjmh]h client_id}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjmubah}(h]h ]h"]h$]h&]uh1j{hY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhKhjmubj)}(hhh]h)}(hA unique id for fdinfoh]hA unique id for fdinfo}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjmhKhjmubah}(h]h ]h"]h$]h&]uh1jhjmubeh}(h]h ]h"]h$]h&]uh1juhjmhKhj|hubjv)}(h7``magic`` Authentication magic, see **authenticated**. h](j|)}(h ``magic``h]j)}(hj nh]hmagic}(hj nhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj nubah}(h]h ]h"]h$]h&]uh1j{hY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhKhjnubj)}(hhh]h)}(h,Authentication magic, see **authenticated**.h](hAuthentication magic, see }(hj$nhhhNhNubj[)}(h**authenticated**h]h authenticated}(hj,nhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj$nubh.}(hj$nhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj nhKhj!nubah}(h]h ]h"]h$]h&]uh1jhjnubeh}(h]h ]h"]h$]h&]uh1juhj nhKhj|hubjv)}(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)}(hjVnh]hlhead}(hjXnhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjTnubah}(h]h ]h"]h$]h&]uh1j{hY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhM"hjPnubj)}(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 }(hjonhhhNhNubh)}(h*:c:type:`drm_device.filelist `h]j)}(hjynh]hdrm_device.filelist}(hj{nhhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjwnubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnj j$j drm_deviceuh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhM!hjonubh. Protected by }(hjonhhhNhNubh)}(h0:c:type:`drm_device.filelist_mutex `h]j)}(hjnh]hdrm_device.filelist_mutex}(hjnhhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjnubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnj j$j drm_deviceuh1hhjnhM!hjonubh.}(hjonhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjnhM!hjlnubah}(h]h ]h"]h$]h&]uh1jhjPnubeh}(h]h ]h"]h$]h&]uh1juhjknhM"hj|hubjv)}(h@``minor`` :c:type:`struct drm_minor ` for this file. h](j|)}(h ``minor``h]j)}(hjnh]hminor}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjnubah}(h]h ]h"]h$]h&]uh1j{hY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhKhjnubj)}(hhh]h)}(h5:c:type:`struct drm_minor ` for this file.h](h)}(h&:c:type:`struct drm_minor `h]j)}(hjnh]hstruct drm_minor}(hjnhhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjnubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnj j$j drm_minoruh1hhjnhKhjnubh for this file.}(hjnhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjnhKhjnubah}(h]h ]h"]h$]h&]uh1jhjnubeh}(h]h ]h"]h$]h&]uh1juhjnhKhj|hubjv)}(hx``object_idr`` Mapping of mm object handles to object pointers. Used by the GEM subsystem. Protected by **table_lock**. h](j|)}(h``object_idr``h]j)}(hj.oh]h object_idr}(hj0ohhhNhNubah}(h]h ]h"]h$]h&]uh1jhj,oubah}(h]h ]h"]h$]h&]uh1j{hY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhM-hj(oubj)}(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 }(hjGohhhNhNubj[)}(h**table_lock**h]h table_lock}(hjOohhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjGoubh.}(hjGohhhNhNubeh}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhM,hjDoubah}(h]h ]h"]h$]h&]uh1jhj(oubeh}(h]h ]h"]h$]h&]uh1juhjCohM-hj|hubjv)}(h(``table_lock`` Protects **object_idr**. h](j|)}(h``table_lock``h]j)}(hjzoh]h table_lock}(hj|ohhhNhNubah}(h]h ]h"]h$]h&]uh1jhjxoubah}(h]h ]h"]h$]h&]uh1j{hY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhKhjtoubj)}(hhh]h)}(hProtects **object_idr**.h](h Protects }(hjohhhNhNubj[)}(h**object_idr**h]h object_idr}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjoubh.}(hjohhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjohKhjoubah}(h]h ]h"]h$]h&]uh1jhjtoubeh}(h]h ]h"]h$]h&]uh1juhjohKhj|hubjv)}(hC``syncobj_idr`` Mapping of sync object handles to object pointers. h](j|)}(h``syncobj_idr``h]j)}(hjoh]h syncobj_idr}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jhjoubah}(h]h ]h"]h$]h&]uh1j{hY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhKhjoubj)}(hhh]h)}(h2Mapping of sync object handles to object pointers.h]h2Mapping of sync object handles to object pointers.}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1hhjohKhjoubah}(h]h ]h"]h$]h&]uh1jhjoubeh}(h]h ]h"]h$]h&]uh1juhjohKhj|hubjv)}(h1``syncobj_table_lock`` Protects **syncobj_idr**. h](j|)}(h``syncobj_table_lock``h]j)}(hjoh]hsyncobj_table_lock}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jhjoubah}(h]h ]h"]h$]h&]uh1j{hY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhKhjoubj)}(hhh]h)}(hProtects **syncobj_idr**.h](h Protects }(hjphhhNhNubj[)}(h**syncobj_idr**h]h syncobj_idr}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjpubh.}(hjphhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjphKhjpubah}(h]h ]h"]h$]h&]uh1jhjoubeh}(h]h ]h"]h$]h&]uh1juhjphKhj|hubjv)}(h-``filp`` Pointer to the core file structure. h](j|)}(h``filp``h]j)}(hjIph]hfilp}(hjKphhhNhNubah}(h]h ]h"]h$]h&]uh1jhjGpubah}(h]h ]h"]h$]h&]uh1j{hY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhKhjCpubj)}(hhh]h)}(h#Pointer to the core file structure.h]h#Pointer to the core file structure.}(hjbphhhNhNubah}(h]h ]h"]h$]h&]uh1hhj^phKhj_pubah}(h]h ]h"]h$]h&]uh1jhjCpubeh}(h]h ]h"]h$]h&]uh1juhj^phKhj|hubjv)}(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)}(hjph]h driver_priv}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jhjpubah}(h]h ]h"]h$]h&]uh1j{hY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhM@hj|pubj)}(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 }(hjphhhNhNubh)}(h&:c:type:`drm_driver.open `h]j)}(hjph]hdrm_driver.open}(hjphhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjpubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnj j$j drm_driveruh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhM?hjpubh and should be freed in }(hjphhhNhNubh)}(h+:c:type:`drm_driver.postclose `h]j)}(hjph]hdrm_driver.postclose}(hjphhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjpubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnj j$j drm_driveruh1hhjphM?hjpubh.}(hjphhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjphM?hjpubah}(h]h ]h"]h$]h&]uh1jhj|pubeh}(h]h ]h"]h$]h&]uh1juhjphM@hj|hubjv)}(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)}(hjqh]hfbs}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjqubah}(h]h ]h"]h$]h&]uh1j{hY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhMKhjpubj)}(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 }(hjqhhhNhNubh)}(h2:c:type:`struct drm_framebuffer `h]j)}(hj%qh]hstruct drm_framebuffer}(hj'qhhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhj#qubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnj j$jdrm_framebufferuh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhMGhjqubh& associated with this file, using the }(hjqhhhNhNubh)}(h5:c:type:`drm_framebuffer.filp_head `h]j)}(hjIqh]hdrm_framebuffer.filp_head}(hjKqhhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjGqubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnj j$jdrm_framebufferuh1hhjBqhMGhjqubh entry.}(hjqhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjBqhMGhjqubh)}(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 }(hjpqhhhNhNubj[)}(h **fbs_lock**h]hfbs_lock}(hjxqhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjpqubh. Note that the }(hjpqhhhNhNubj[)}(h**fbs**h]hfbs}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjpqubh[ list holds a reference on the framebuffer object to prevent it from untimely disappearing.}(hjpqhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhMJhjqubeh}(h]h ]h"]h$]h&]uh1jhjpubeh}(h]h ]h"]h$]h&]uh1juhjqhMKhj|hubjv)}(h``fbs_lock`` Protects **fbs**. h](j|)}(h ``fbs_lock``h]j)}(hjqh]hfbs_lock}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjqubah}(h]h ]h"]h$]h&]uh1j{hY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhKhjqubj)}(hhh]h)}(hProtects **fbs**.h](h Protects }(hjqhhhNhNubj[)}(h**fbs**h]hfbs}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjqubh.}(hjqhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjqhKhjqubah}(h]h ]h"]h$]h&]uh1jhjqubeh}(h]h ]h"]h$]h&]uh1juhjqhKhj|hubjv)}(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)}(hjrh]hblobs}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjqubah}(h]h ]h"]h$]h&]uh1j{hY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhMXhjqubj)}(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.}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhMUhjrubh)}(h+Protected by **drm_mode_config.blob_lock**;h](h Protected by }(hj(rhhhNhNubj[)}(h**drm_mode_config.blob_lock**h]hdrm_mode_config.blob_lock}(hj0rhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj(rubh;}(hj(rhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjrhMXhjrubeh}(h]h ]h"]h$]h&]uh1jhjqubeh}(h]h ]h"]h$]h&]uh1juhjrhMXhj|hubjv)}(hA``event_wait`` Waitqueue for new events added to **event_list**. h](j|)}(h``event_wait``h]j)}(hjZrh]h event_wait}(hj\rhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjXrubah}(h]h ]h"]h$]h&]uh1j{hY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhKhjTrubj)}(hhh]h)}(h1Waitqueue for new events added to **event_list**.h](h"Waitqueue for new events added to }(hjsrhhhNhNubj[)}(h**event_list**h]h event_list}(hj{rhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjsrubh.}(hjsrhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjorhKhjprubah}(h]h ]h"]h$]h&]uh1jhjTrubeh}(h]h ]h"]h$]h&]uh1juhjorhKhj|hubjv)}(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)}(hjrh]hpending_event_list}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjrubah}(h]h ]h"]h$]h&]uh1j{hY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhMfhjrubj)}(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 }(hjrhhhNhNubh)}(h6:c:type:`struct drm_pending_event `h]j)}(hjrh]hstruct drm_pending_event}(hjrhhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjrubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnj j$jdrm_pending_eventuh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhMbhjrubhh, used to clean up pending events in case this file gets closed before the event is signalled. Uses the }(hjrhhhNhNubh)}(h<:c:type:`drm_pending_event.pending_link `h]j)}(hjrh]hdrm_pending_event.pending_link}(hjrhhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjrubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnj j$jdrm_pending_eventuh1hhjrhMbhjrubh entry.}(hjrhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjrhMbhjrubh)}(h8Protect by :c:type:`drm_device.event_lock `.h](h Protect by }(hjshhhNhNubh)}(h,:c:type:`drm_device.event_lock `h]j)}(hjsh]hdrm_device.event_lock}(hjshhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjsubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnj j$j drm_deviceuh1hhjrhMfhjsubh.}(hjshhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjrhMfhjrubeh}(h]h ]h"]h$]h&]uh1jhjrubeh}(h]h ]h"]h$]h&]uh1juhjrhMfhj|hubjv)}(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)}(hjVsh]h event_list}(hjXshhhNhNubah}(h]h ]h"]h$]h&]uh1jhjTsubah}(h]h ]h"]h$]h&]uh1j{hY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhMphjPsubj)}(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 }(hjoshhhNhNubh)}(h6:c:type:`struct drm_pending_event `h]j)}(hjysh]hstruct drm_pending_event}(hj{shhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjwsubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnj j$jdrm_pending_eventuh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhMmhjosubh?, ready for delivery to userspace through drm_read(). Uses the }(hjoshhhNhNubh)}(h4:c:type:`drm_pending_event.link `h]j)}(hjsh]hdrm_pending_event.link}(hjshhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjsubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnj j$jdrm_pending_eventuh1hhjshMmhjosubh entry.}(hjoshhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjshMmhjlsubh)}(h8Protect by :c:type:`drm_device.event_lock `.h](h Protect by }(hjshhhNhNubh)}(h,:c:type:`drm_device.event_lock `h]j)}(hjsh]hdrm_device.event_lock}(hjshhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjsubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnj j$j drm_deviceuh1hhjkshMphjsubh.}(hjshhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjkshMphjlsubeh}(h]h ]h"]h$]h&]uh1jhjPsubeh}(h]h ]h"]h$]h&]uh1juhjkshMphj|hubjv)}(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)}(hjth]h event_space}(hj thhhNhNubah}(h]h ]h"]h$]h&]uh1jhjtubah}(h]h ]h"]h$]h&]uh1j{hY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhMyhjtubj)}(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 thhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhMwhjtubah}(h]h ]h"]h$]h&]uh1jhjtubeh}(h]h ]h"]h$]h&]uh1juhjthMyhj|hubjv)}(h+``event_read_lock`` Serializes drm_read(). h](j|)}(h``event_read_lock``h]j)}(hjAth]hevent_read_lock}(hjCthhhNhNubah}(h]h ]h"]h$]h&]uh1jhj?tubah}(h]h ]h"]h$]h&]uh1j{hY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhKhj;tubj)}(hhh]h)}(hSerializes drm_read().h]hSerializes drm_read().}(hjZthhhNhNubah}(h]h ]h"]h$]h&]uh1hhjVthKhjWtubah}(h]h ]h"]h$]h&]uh1jhj;tubeh}(h]h ]h"]h$]h&]uh1juhjVthKhj|hubjv)}(hH``prime`` Per-file buffer caches used by the PRIME buffer sharing code. h](j|)}(h ``prime``h]j)}(hjzth]hprime}(hj|thhhNhNubah}(h]h ]h"]h$]h&]uh1jhjxtubah}(h]h ]h"]h$]h&]uh1j{hY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhMhjttubj)}(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.}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1hhjthMhjtubah}(h]h ]h"]h$]h&]uh1jhjttubeh}(h]h ]h"]h$]h&]uh1juhjthMhj|hubjv)}(hN``client_name`` Userspace-provided name; useful for accounting and debugging. h](j|)}(h``client_name``h]j)}(hjth]h client_name}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jhjtubah}(h]h ]h"]h$]h&]uh1j{hY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhMhjtubj)}(hhh]h)}(h=Userspace-provided name; useful for accounting and debugging.h]h=Userspace-provided name; useful for accounting and debugging.}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1hhjthMhjtubah}(h]h ]h"]h$]h&]uh1jhjtubeh}(h]h ]h"]h$]h&]uh1juhjthMhj|hubjv)}(h.``client_name_lock`` Protects **client_name**.h](j|)}(h``client_name_lock``h]j)}(hjth]hclient_name_lock}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jhjtubah}(h]h ]h"]h$]h&]uh1j{hY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhMhjtubj)}(hhh]h)}(hProtects **client_name**.h](h Protects }(hjuhhhNhNubj[)}(h**client_name**h]h client_name}(hj uhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjuubh.}(hjuhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhMhjuubah}(h]h ]h"]h$]h&]uh1jhjtubeh}(h]h ]h"]h$]h&]uh1juhjuhMhj|hubeh}(h]h ]h"]h$]h&]uh1jphj4hubeh}(h]h ] kernelindentah"]h$]h&]uh1jPhjXahhhjbhNubh)}(h**Description**h]j[)}(hjAuh]h Description}(hjCuhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj?uubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhMhjXahhubh)}(h9This structure tracks DRM state per open file descriptor.h]h9This structure tracks DRM state per open file descriptor.}(hjWuhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhKhjXahhubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j"drm_is_primary_client (C function)c.drm_is_primary_clienthNtauh1jhjXahhhjbhNubj)}(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]j[)}(hj{vh]h Parameters}(hj}vhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjyvubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhMhjuvubjq)}(hhh]jv)}(h.``const struct drm_file *file_priv`` DRM file h](j|)}(h$``const struct drm_file *file_priv``h]j)}(hjvh]h const struct drm_file *file_priv}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjvubah}(h]h ]h"]h$]h&]uh1j{hY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhMhjvubj)}(hhh]h)}(hDRM fileh]hDRM file}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjvhMhjvubah}(h]h ]h"]h$]h&]uh1jhjvubeh}(h]h ]h"]h$]h&]uh1juhjvhMhjvubah}(h]h ]h"]h$]h&]uh1jphjuvubh)}(h**Description**h]j[)}(hjvh]h Description}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjvubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhMhjuvubh)}(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. }(hjvhhhNhNubh)}(h#:c:type:`drm_file.minor `h]j)}(hjvh]hdrm_file.minor}(hjvhhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjvubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnj j$jdrm_fileuh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhMhjvubh of }(hjvhhhNhNubj[)}(h **file_priv**h]h file_priv}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjvubh is a primary minor.}(hjvhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjwhMhjuvubh)}(hSSee also the :ref:`section on primary nodes and authentication `.h](h See also the }(hj/whhhNhNubh)}(hE:ref:`section on primary nodes and authentication `h]j)}(hj9wh]h+section on primary nodes and authentication}(hj;whhhNhNubah}(h]h ](j stdstd-refeh"]h$]h&]uh1jhj7wubah}(h]h ]h"]h$]h&]refdocj refdomainjEwreftyperef refexplicitrefwarnjdrm_primary_nodeuh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhMhj/wubh.}(hj/whhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjWwhMhjuvubeh}(h]h ] kernelindentah"]h$]h&]uh1jPhjXahhhjbhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j!drm_is_render_client (C function)c.drm_is_render_clienthNtauh1jhjXahhhjbhNubj)}(hhh](j)}(h` of **file_priv** is a render minor. See also the :ref:`section on render nodes `.h](h)}(h**Parameters**h]j[)}(hj~xh]h Parameters}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj|xubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhMhjxxubjq)}(hhh]jv)}(h.``const struct drm_file *file_priv`` DRM file h](j|)}(h$``const struct drm_file *file_priv``h]j)}(hjxh]h const struct drm_file *file_priv}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjxubah}(h]h ]h"]h$]h&]uh1j{hY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhMhjxubj)}(hhh]h)}(hDRM fileh]hDRM file}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjxhMhjxubah}(h]h ]h"]h$]h&]uh1jhjxubeh}(h]h ]h"]h$]h&]uh1juhjxhMhjxubah}(h]h ]h"]h$]h&]uh1jphjxxubh)}(h**Description**h]j[)}(hjxh]h Description}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjxubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhMhjxxubh)}(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. }(hjxhhhNhNubh)}(h#:c:type:`drm_file.minor `h]j)}(hjxh]hdrm_file.minor}(hjxhhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjxubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnj j$jdrm_fileuh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhMhjxubh of }(hjxhhhNhNubj[)}(h **file_priv**h]h file_priv}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjxubh is a render minor.}(hjxhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjyhMhjxxubh)}(h>See also the :ref:`section on render nodes `.h](h See also the }(hj2yhhhNhNubh)}(h0:ref:`section on render nodes `h]j)}(hjyhhhNhNubah}(h]h ](j stdstd-refeh"]h$]h&]uh1jhj:yubah}(h]h ]h"]h$]h&]refdocj refdomainjHyreftyperef refexplicitrefwarnjdrm_render_nodeuh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhMhj2yubh.}(hj2yhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjZyhMhjxxubeh}(h]h ] kernelindentah"]h$]h&]uh1jPhjXahhhjbhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j drm_is_accel_client (C function)c.drm_is_accel_clienthNtauh1jhjXahhhjbhNubj)}(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_%)}(hjb%h]hbool}(hjyhhhNhNubah}(h]h ]jk%ah"]h$]h&]uh1j^%hjyhhhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhMubj)}(h h]h }(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyhhhjyhMubj)}(hdrm_is_accel_clienth]j)}(hdrm_is_accel_clienth]hdrm_is_accel_client}(hjyhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjyubah}(h]h ](jjeh"]h$]h&]jAjBuh1jhjyhhhjyhMubj%)}(h"(const struct drm_file *file_priv)h]j%)}(h const struct drm_file *file_privh](j)}(hj:'h]hconst}(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyubj)}(h h]h }(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyubj)}(hjh]hstruct}(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyubj)}(h h]h }(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyubh)}(hhh]j)}(hdrm_fileh]hdrm_file}(hjyhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjyubah}(h]h ]h"]h$]h&] refdomainj reftypej% reftargetjymodnameN classnameNj j#)}j&]j%)}j%jysbc.drm_is_accel_clientasbuh1hhjyubj)}(h h]h }(hjzhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyubj%)}(hj%h]h*}(hj(zhhhNhNubah}(h]h ]j%ah"]h$]h&]uh1j%hjyubj)}(h file_privh]h file_priv}(hj5zhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjyubeh}(h]h ]h"]h$]h&]noemphjAjBuh1j%hjyubah}(h]h ]h"]h$]h&]jAjBuh1j%hjyhhhjyhMubeh}(h]h ]h"]h$]h&]jAjBjuh1jjjhj}yhhhjyhMubah}(h]jxyah ](j!j"eh"]h$]h&]j&j')j(huh1jhjyhMhjzyhhubj*)}(hhh]h)}(h5is this an open file of the compute acceleration nodeh]h5is this an open file of the compute acceleration node}(hj_zhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhMhj\zhhubah}(h]h ]h"]h$]h&]uh1j)hjzyhhhjyhMubeh}(h]h ](j functioneh"]h$]h&]jJj jKjwzjLjwzjMjNjOuh1jhhhjXahjbhNubjQ)}(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]j[)}(hjzh]h Parameters}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjzubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhMhj{zubjq)}(hhh]jv)}(h.``const struct drm_file *file_priv`` DRM file h](j|)}(h$``const struct drm_file *file_priv``h]j)}(hjzh]h const struct drm_file *file_priv}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjzubah}(h]h ]h"]h$]h&]uh1j{hY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhMhjzubj)}(hhh]h)}(hDRM fileh]hDRM file}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjzhMhjzubah}(h]h ]h"]h$]h&]uh1jhjzubeh}(h]h ]h"]h$]h&]uh1juhjzhMhjzubah}(h]h ]h"]h$]h&]uh1jphj{zubh)}(h**Description**h]j[)}(hjzh]h Description}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjzubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhMhj{zubh)}(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. }(hjzhhhNhNubh)}(h#:c:type:`drm_file.minor `h]j)}(hjzh]hdrm_file.minor}(hjzhhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjzubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnj j$jdrm_fileuh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhMhjzubh of }(hjzhhhNhNubj[)}(h **file_priv**h]h file_priv}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjzubh is a accel minor.}(hjzhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj{hMhj{zubh)}(hUSee also :doc:`Introduction to compute accelerators subsystem `.h](h See also }(hj5{hhhNhNubh)}(hK:doc:`Introduction to compute accelerators subsystem `h]j)}(hj?{h]h.Introduction to compute accelerators subsystem}(hjA{hhhNhNubah}(h]h ](j stdstd-doceh"]h$]h&]uh1jhj={ubah}(h]h ]h"]h$]h&]refdocj refdomainjK{reftypedoc refexplicitrefwarnj/accel/introductionuh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhMhj5{ubh.}(hj5{hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj]{hMhj{zubeh}(h]h ] kernelindentah"]h$]h&]uh1jPhjXahhhjbhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jdrm_memory_stats (C struct)c.drm_memory_statshNtauh1jhjXahhhjbhNubj)}(hhh](j)}(hdrm_memory_statsh]j)}(hstruct drm_memory_statsh](j)}(hjh]hstruct}(hj{hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj{hhhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhMubj)}(h h]h }(hj{hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj{hhhj{hMubj)}(hdrm_memory_statsh]j)}(hj{h]hdrm_memory_stats}(hj{hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj{ubah}(h]h ](jjeh"]h$]h&]jAjBuh1jhj{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)}(hGEM object stats associatedh]hGEM object stats associated}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhMhj{hhubah}(h]h ]h"]h$]h&]uh1j)hj}{hhhj{hMubeh}(h]h ](j structeh"]h$]h&]jJj jKj{jLj{jMjNjOuh1jhhhjXahjbhNubjQ)}(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](j[)}(h**Definition**h]h Definition}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj{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; };}hj|sbah}(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]j[)}(hj|h]hMembers}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj|ubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhMhj{ubjq)}(hhh](jv)}(h>``shared`` Total size of GEM objects shared between processes h](j|)}(h ``shared``h]j)}(hj7|h]hshared}(hj9|hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5|ubah}(h]h ]h"]h$]h&]uh1j{hY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhMhj1|ubj)}(hhh]h)}(h2Total size of GEM objects shared between processesh]h2Total size of GEM objects shared between processes}(hjP|hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjL|hMhjM|ubah}(h]h ]h"]h$]h&]uh1jhj1|ubeh}(h]h ]h"]h$]h&]uh1juhjL|hMhj.|ubjv)}(h&``private`` Total size of GEM objects h](j|)}(h ``private``h]j)}(hjp|h]hprivate}(hjr|hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjn|ubah}(h]h ]h"]h$]h&]uh1j{hY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhMhjj|ubj)}(hhh]h)}(hTotal size of GEM objectsh]hTotal size of GEM objects}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj|hMhj|ubah}(h]h ]h"]h$]h&]uh1jhjj|ubeh}(h]h ]h"]h$]h&]uh1juhj|hMhj.|ubjv)}(h5``resident`` Total size of GEM objects backing pages h](j|)}(h ``resident``h]j)}(hj|h]hresident}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj|ubah}(h]h ]h"]h$]h&]uh1j{hY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhMhj|ubj)}(hhh]h)}(h'Total size of GEM objects backing pagesh]h'Total size of GEM objects backing pages}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj|hMhj|ubah}(h]h ]h"]h$]h&]uh1jhj|ubeh}(h]h ]h"]h$]h&]uh1juhj|hMhj.|ubjv)}(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&]uh1j{hY/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)}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj|hMhj|ubah}(h]h ]h"]h$]h&]uh1jhj|ubeh}(h]h ]h"]h$]h&]uh1juhj|hMhj.|ubjv)}(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&]uh1jhj}ubah}(h]h ]h"]h$]h&]uh1j{hY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhMhj}ubj)}(hhh]h)}(h7Total size of GEM objects active on one or more enginesh]h7Total size of GEM objects active on one or more engines}(hj4}hhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhMhj1}ubah}(h]h ]h"]h$]h&]uh1jhj}ubeh}(h]h ]h"]h$]h&]uh1juhj0}hMhj.|ubeh}(h]h ]h"]h$]h&]uh1jphj{ubeh}(h]h ] kernelindentah"]h$]h&]uh1jPhjXahhhjbhNubh)}(h**Description**h]j[)}(hj^}h]h Description}(hj`}hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj\}ubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhMhjXahhubh)}(h Used by drm_print_memory_stats()h]h Used by drm_print_memory_stats()}(hjt}hhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:149: ./include/drm/drm_file.hhMhjXahhubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jdrm_open (C function) c.drm_openhNtauh1jhjXahhhNhNubj)}(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}(hj}hhhNhNubah}(h]h ]jk%ah"]h$]h&]uh1j^%hj}hhh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chMeubj)}(h h]h }(hj}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj}hhhj}hMeubj)}(hdrm_openh]j)}(hdrm_openh]hdrm_open}(hj}hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj}ubah}(h]h ](jjeh"]h$]h&]jAjBuh1jhj}hhhj}hMeubj%)}(h((struct inode *inode, struct file *filp)h](j%)}(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}(hj}hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj}ubah}(h]h ]h"]h$]h&] refdomainj reftypej% reftargetj}modnameN classnameNj j#)}j&]j%)}j%j}sb c.drm_openasbuh1hhj}ubj)}(h h]h }(hj~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj}ubj%)}(hj%h]h*}(hj%~hhhNhNubah}(h]h ]j%ah"]h$]h&]uh1j%hj}ubj)}(hinodeh]hinode}(hj2~hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj}ubeh}(h]h ]h"]h$]h&]noemphjAjBuh1j%hj}ubj%)}(hstruct file *filph](j)}(hjh]hstruct}(hjK~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjG~ubj)}(h h]h }(hjX~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjG~ubh)}(hhh]j)}(hfileh]hfile}(hji~hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjf~ubah}(h]h ]h"]h$]h&] refdomainj reftypej% reftargetjk~modnameN classnameNj j#)}j&]j~ c.drm_openasbuh1hhjG~ubj)}(h h]h }(hj~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjG~ubj%)}(hj%h]h*}(hj~hhhNhNubah}(h]h ]j%ah"]h$]h&]uh1j%hjG~ubj)}(hfilph]hfilp}(hj~hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjG~ubeh}(h]h ]h"]h$]h&]noemphjAjBuh1j%hj}ubeh}(h]h ]h"]h$]h&]jAjBuh1j%hj}hhhj}hMeubeh}(h]h ]h"]h$]h&]jAjBjuh1jjjhj}hhhj}hMeubah}(h]j}ah ](j!j"eh"]h$]h&]j&j')j(huh1jhj}hMehj}hhubj*)}(hhh]h)}(hopen method for DRM fileh]hopen 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.chMZhj~hhubah}(h]h ]h"]h$]h&]uh1j)hj}hhhj}hMeubeh}(h]h ](j functioneh"]h$]h&]jJj jKj~jLj~jMjNjOuh1jhhhjXahNhNubjQ)}(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]j[)}(hj~h]h Parameters}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj~ubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chM^hj~ubjq)}(hhh](jv)}(h%``struct inode *inode`` device inode h](j|)}(h``struct inode *inode``h]j)}(hj h]hstruct inode *inode}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1j{h]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chM[hjubj)}(hhh]h)}(h device inodeh]h device inode}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj"hM[hj#ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1juhj"hM[hjubjv)}(h$``struct file *filp`` file pointer. h](j|)}(h``struct file *filp``h]j)}(hjFh]hstruct file *filp}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjDubah}(h]h ]h"]h$]h&]uh1j{h]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chM\hj@ubj)}(hhh]h)}(h file pointer.h]h file pointer.}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj[hM\hj\ubah}(h]h ]h"]h$]h&]uh1jhj@ubeh}(h]h ]h"]h$]h&]uh1juhj[hM\hjubeh}(h]h ]h"]h$]h&]uh1jphj~ubh)}(h**Description**h]j[)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chM^hj~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 refexplicitrefwarnj j$jfile_operationsuh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chM^hjubhr 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 refexplicitrefwarnj j$j drm_driveruh1hhjhM^hjubh driver callback.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhM^hj~ubh)}(h **Return**h]j[)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chMbhj~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.chMbhj~ubeh}(h]h ] kernelindentah"]h$]h&]uh1jPhjXahhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jdrm_release (C function) c.drm_releasehNtauh1jhjXahhhNhNubj)}(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}(hj3hhhNhNubah}(h]h ]jk%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 }(hjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/hhhjAhMubj)}(h drm_releaseh]j)}(h drm_releaseh]h drm_release}(hjThhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjPubah}(h]h ](jjeh"]h$]h&]jAjBuh1jhj/hhhjAhMubj%)}(h((struct inode *inode, struct file *filp)h](j%)}(hstruct inode *inodeh](j)}(hjh]hstruct}(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlubj)}(h h]h }(hj}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlubh)}(hhh]j)}(hinodeh]hinode}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj reftypej% reftargetjmodnameN classnameNj j#)}j&]j%)}j%jVsb c.drm_releaseasbuh1hhjlubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlubj%)}(hj%h]h*}(hjhhhNhNubah}(h]h ]j%ah"]h$]h&]uh1j%hjlubj)}(hinodeh]hinode}(hjɀhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjlubeh}(h]h ]h"]h$]h&]noemphjAjBuh1j%hjhubj%)}(hstruct file *filph](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjހubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjހubh)}(hhh]j)}(hfileh]hfile}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj reftypej% reftargetjmodnameN classnameNj j#)}j&]j c.drm_releaseasbuh1hhjހubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjހubj%)}(hj%h]h*}(hj,hhhNhNubah}(h]h ]j%ah"]h$]h&]uh1j%hjހubj)}(hfilph]hfilp}(hj9hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjހubeh}(h]h ]h"]h$]h&]noemphjAjBuh1j%hjhubeh}(h]h ]h"]h$]h&]jAjBuh1j%hj/hhhjAhMubeh}(h]h ]h"]h$]h&]jAjBjuh1jjjhj+hhhjAhMubah}(h]j&ah ](j!j"eh"]h$]h&]j&j')j(huh1jhjAhMhj(hhubj*)}(hhh]h)}(hrelease method for DRM fileh]hrelease method for DRM file}(hjchhhNhNubah}(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(hhhjAhMubeh}(h]h ](j functioneh"]h$]h&]jJj jKj{jLj{jMjNjOuh1jhhhjXahNhNubjQ)}(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]j[)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chMhjubjq)}(hhh](jv)}(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&]uh1j{h]/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&]uh1juhjhMhjubjv)}(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&]uh1j{h]/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&]uh1juhjhMhjubeh}(h]h ]h"]h$]h&]uh1jphjubh)}(h**Description**h]j[)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chMhjubh)}(hXThis function must be used by drivers as their :c:type:`file_operations.release ` method. It frees any resources associated with the open file. If this is the last open file for the DRM device, it also restores the active in-kernel DRM client.h](h/This function must be used by drivers as their }(hj.hhhNhNubh)}(h3:c:type:`file_operations.release `h]j)}(hj8h]hfile_operations.release}(hj:hhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhj6ubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnj j$jfile_operationsuh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chMhj.ubh method. It frees any resources associated with the open file. If this is the last open file for the DRM device, it also restores the active in-kernel DRM client.}(hj.hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjUhMhjubh)}(h **Return**h]j[)}(hjbh]hReturn}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj`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.}(hjxhhhNhNubah}(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&]uh1jPhjXahhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j!drm_release_noglobal (C function)c.drm_release_noglobalhNtauh1jhjXahhhNhNubj)}(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 ]jk%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}(hjȂhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjĂubah}(h]h ](jjeh"]h$]h&]jAjBuh1jhjhhhjhMubj%)}(h((struct inode *inode, struct file *filp)h](j%)}(hstruct inode *inodeh](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hinodeh]hinode}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj reftypej% reftargetjmodnameN classnameNj j#)}j&]j%)}j%jʂsbc.drm_release_noglobalasbuh1hhjubj)}(h h]h }(hj"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj%)}(hj%h]h*}(hj0hhhNhNubah}(h]h ]j%ah"]h$]h&]uh1j%hjubj)}(hinodeh]hinode}(hj=hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjAjBuh1j%hj܂ubj%)}(hstruct file *filph](j)}(hjh]hstruct}(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRubj)}(h h]h }(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRubh)}(hhh]j)}(hfileh]hfile}(hjthhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjqubah}(h]h ]h"]h$]h&] refdomainj reftypej% reftargetjvmodnameN classnameNj j#)}j&]jc.drm_release_noglobalasbuh1hhjRubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRubj%)}(hj%h]h*}(hjhhhNhNubah}(h]h ]j%ah"]h$]h&]uh1j%hjRubj)}(hfilph]hfilp}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjRubeh}(h]h ]h"]h$]h&]noemphjAjBuh1j%hj܂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&]jJj jKjjLjjMjNjOuh1jhhhjXahNhNubjQ)}(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]j[)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chMhjubjq)}(hhh](jv)}(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&]uh1j{h]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chMhjubj)}(hhh]h)}(h device inodeh]h device inode}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj-hMhj.ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1juhj-hMhjubjv)}(h$``struct file *filp`` file pointer. h](j|)}(h``struct file *filp``h]j)}(hjQh]hstruct file *filp}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1jhjOubah}(h]h ]h"]h$]h&]uh1j{h]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chMhjKubj)}(hhh]h)}(h file pointer.h]h file pointer.}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjfhMhjgubah}(h]h ]h"]h$]h&]uh1jhjKubeh}(h]h ]h"]h$]h&]uh1juhjfhMhjubeh}(h]h ]h"]h$]h&]uh1jphjubh)}(h**Description**h]j[)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjubah}(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 refexplicitrefwarnj j$jfile_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&]uh1hhjɄhMhjubh)}(h **Return**h]j[)}(hjքh]hReturn}(hj؄hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjԄubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chMhjubh)}(hAlways succeeds and returns 0.h]hAlways succeeds and returns 0.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jPhjXahhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jdrm_read (C function) c.drm_readhNtauh1jhjXahhhNhNubj)}(hhh](j)}(hWssize_t drm_read (struct file *filp, char __user *buffer, size_t count, loff_t *offset)h]j)}(hVssize_t drm_read(struct file *filp, char __user *buffer, size_t count, loff_t *offset)h](h)}(hhh]j)}(hssize_th]hssize_t}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj reftypej% reftargetj modnameN classnameNj j#)}j&]j%)}j%drm_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}(hjRhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjNubah}(h]h ](jjeh"]h$]h&]jAjBuh1jhjhhhj?hMubj%)}(hF(struct file *filp, char __user *buffer, size_t count, loff_t *offset)h](j%)}(hstruct file *filph](j)}(hjh]hstruct}(hjmhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjiubj)}(h h]h }(hjzhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjiubh)}(hhh]j)}(hfileh]hfile}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj reftypej% reftargetjmodnameN classnameNj j#)}j&]j: c.drm_readasbuh1hhjiubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjiubj%)}(hj%h]h*}(hjhhhNhNubah}(h]h ]j%ah"]h$]h&]uh1j%hjiubj)}(hfilph]hfilp}(hjąhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjiubeh}(h]h ]h"]h$]h&]noemphjAjBuh1j%hjeubj%)}(hchar __user *bufferh](j_%)}(hcharh]hchar}(hj݅hhhNhNubah}(h]h ]jk%ah"]h$]h&]uh1j^%hjمubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjمubh__user}(hjمhhhNhNubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjمubj%)}(hj%h]h*}(hj hhhNhNubah}(h]h ]j%ah"]h$]h&]uh1j%hjمubj)}(hbufferh]hbuffer}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjمubeh}(h]h ]h"]h$]h&]noemphjAjBuh1j%hjeubj%)}(h size_t counth](h)}(hhh]j)}(hsize_th]hsize_t}(hj4hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj1ubah}(h]h ]h"]h$]h&] refdomainj reftypej% reftargetj6modnameN classnameNj j#)}j&]j: c.drm_readasbuh1hhj-ubj)}(h h]h }(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-ubj)}(hcounth]hcount}(hj`hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj-ubeh}(h]h ]h"]h$]h&]noemphjAjBuh1j%hjeubj%)}(hloff_t *offseth](h)}(hhh]j)}(hloff_th]hloff_t}(hj|hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjyubah}(h]h ]h"]h$]h&] refdomainj reftypej% reftargetj~modnameN classnameNj j#)}j&]j: c.drm_readasbuh1hhjuubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuubj%)}(hj%h]h*}(hjhhhNhNubah}(h]h ]j%ah"]h$]h&]uh1j%hjuubj)}(hoffseth]hoffset}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjuubeh}(h]h ]h"]h$]h&]noemphjAjBuh1j%hjeubeh}(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&]jJj jKjjLjjMjNjOuh1jhhhjXahNhNubjQ)}(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]j[)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chMhjubjq)}(hhh](jv)}(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&]uh1jhjubah}(h]h ]h"]h$]h&]uh1j{h]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chMhjubj)}(hhh]h)}(h file pointerh]h file pointer}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj5hMhj6ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1juhj5hMhjubjv)}(hC``char __user *buffer`` userspace destination pointer for the read h](j|)}(h``char __user *buffer``h]j)}(hjYh]hchar __user *buffer}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjWubah}(h]h ]h"]h$]h&]uh1j{h]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chMhjSubj)}(hhh]h)}(h*userspace destination pointer for the readh]h*userspace destination pointer for the read}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjnhMhjoubah}(h]h ]h"]h$]h&]uh1jhjSubeh}(h]h ]h"]h$]h&]uh1juhjnhMhjubjv)}(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&]uh1j{h]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chMhjubj)}(hhh]h)}(hcount in bytes to readh]hcount in bytes to read}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1juhjhMhjubjv)}(h"``loff_t *offset`` offset to read h](j|)}(h``loff_t *offset``h]j)}(hjˇh]hloff_t *offset}(hj͇hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjɇubah}(h]h ]h"]h$]h&]uh1j{h]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chMhjŇubj)}(hhh]h)}(hoffset to readh]hoffset to read}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjŇubeh}(h]h ]h"]h$]h&]uh1juhjhMhjubeh}(h]h ]h"]h$]h&]uh1jphjubh)}(h**Description**h]j[)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjubah}(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 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 refexplicitrefwarnj j$jfile_operationsuh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chMhjubh 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&]uh1hhjChMhjubh)}(hb**offset** is ignored, DRM events are read like a pipe. Polling support is provided by drm_poll().h](j[)}(h **offset**h]hoffset}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjNubhX is ignored, DRM events are read like a pipe. Polling support is provided by drm_poll().}(hjNhhhNhNubeh}(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.}(hjkhhhNhNubah}(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]j[)}(hj|h]hReturn}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjzubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chM hjubh)}(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.chM hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jPhjXahhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jdrm_poll (C function) c.drm_pollhNtauh1jhjXahhhNhNubj)}(hhh](j)}(hE__poll_t drm_poll (struct file *filp, struct poll_table_struct *wait)h]j)}(hD__poll_t drm_poll(struct file *filp, struct poll_table_struct *wait)h](h)}(hhh]j)}(h__poll_th]h__poll_t}(hjĈhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj reftypej% reftargetjƈmodnameN classnameNj j#)}j&]j%)}j%drm_pollsb c.drm_pollasbuh1hhjhhh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chMdubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMdubj)}(hdrm_pollh]j)}(hjh]hdrm_poll}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jAjBuh1jhjhhhjhMdubj%)}(h3(struct file *filp, struct poll_table_struct *wait)h](j%)}(hstruct file *filph](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hfileh]hfile}(hj1hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj.ubah}(h]h ]h"]h$]h&] refdomainj reftypej% reftargetj3modnameN classnameNj j#)}j&]j c.drm_pollasbuh1hhjubj)}(h h]h }(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj%)}(hj%h]h*}(hj]hhhNhNubah}(h]h ]j%ah"]h$]h&]uh1j%hjubj)}(hfilph]hfilp}(hjjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjAjBuh1j%hj ubj%)}(hstruct poll_table_struct *waith](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hpoll_table_structh]hpoll_table_struct}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj reftypej% reftargetjmodnameN classnameNj j#)}j&]j c.drm_pollasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj%)}(hj%h]h*}(hj͉hhhNhNubah}(h]h ]j%ah"]h$]h&]uh1j%hjubj)}(hwaith]hwait}(hjډhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjAjBuh1j%hj ubeh}(h]h ]h"]h$]h&]jAjBuh1j%hjhhhjhMdubeh}(h]h ]h"]h$]h&]jAjBjuh1jjjhjhhhjhMdubah}(h]jah ](j!j"eh"]h$]h&]j&j')j(huh1jhjhMdhjhhubj*)}(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.chMVhjhhubah}(h]h ]h"]h$]h&]uh1j)hjhhhjhMdubeh}(h]h ](j functioneh"]h$]h&]jJj jKjjLjjMjNjOuh1jhhhjXahNhNubjQ)}(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]j[)}(hj&h]h Parameters}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj$ubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chMZhj ubjq)}(hhh](jv)}(h#``struct file *filp`` file pointer h](j|)}(h``struct file *filp``h]j)}(hjEh]hstruct file *filp}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjCubah}(h]h ]h"]h$]h&]uh1j{h]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chMWhj?ubj)}(hhh]h)}(h file pointerh]h file pointer}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjZhMWhj[ubah}(h]h ]h"]h$]h&]uh1jhj?ubeh}(h]h ]h"]h$]h&]uh1juhjZhMWhj<ubjv)}(h5``struct poll_table_struct *wait`` poll waiter table h](j|)}(h"``struct poll_table_struct *wait``h]j)}(hj~h]hstruct poll_table_struct *wait}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj|ubah}(h]h ]h"]h$]h&]uh1j{h]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chMXhjxubj)}(hhh]h)}(hpoll waiter tableh]hpoll waiter table}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMXhjubah}(h]h ]h"]h$]h&]uh1jhjxubeh}(h]h ]h"]h$]h&]uh1juhjhMXhj<ubeh}(h]h ]h"]h$]h&]uh1jphj ubh)}(h**Description**h]j[)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chMZhj ubh)}(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)}(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 refexplicitrefwarnj j$jfile_operationsuh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chMZhjϊ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&]uh1hhjhMZhj ubh)}(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.chM_hj ubh)}(h **Return**h]j[)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chMahj ubh)}(h=Mask of POLL flags indicating the current status of the file.h]h=Mask of POLL flags indicating the current status of the file.}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chMahj ubeh}(h]h ] kernelindentah"]h$]h&]uh1jPhjXahhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j*drm_event_reserve_init_locked (C function)c.drm_event_reserve_init_lockedhNtauh1jhjXahhhNhNubj)}(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}(hjWhhhNhNubah}(h]h ]jk%ah"]h$]h&]uh1j^%hjShhh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chMubj)}(h h]h }(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjShhhjehMubj)}(hdrm_event_reserve_init_lockedh]j)}(hdrm_event_reserve_init_lockedh]hdrm_event_reserve_init_locked}(hjxhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjtubah}(h]h ](jjeh"]h$]h&]jAjBuh1jhjShhhjehMubj%)}(hf(struct drm_device *dev, struct drm_file *file_priv, struct drm_pending_event *p, struct drm_event *e)h](j%)}(hstruct drm_device *devh](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(h drm_deviceh]h drm_device}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj reftypej% reftargetjmodnameN classnameNj j#)}j&]j%)}j%jzsbc.drm_event_reserve_init_lockedasbuh1hhjubj)}(h h]h }(hjҋhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj%)}(hj%h]h*}(hjhhhNhNubah}(h]h ]j%ah"]h$]h&]uh1j%hjubj)}(hdevh]hdev}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjAjBuh1j%hjubj%)}(hstruct drm_file *file_privh](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hdrm_fileh]hdrm_file}(hj$hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj!ubah}(h]h ]h"]h$]h&] refdomainj reftypej% reftargetj&modnameN classnameNj j#)}j&]j΋c.drm_event_reserve_init_lockedasbuh1hhjubj)}(h h]h }(hjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj%)}(hj%h]h*}(hjPhhhNhNubah}(h]h ]j%ah"]h$]h&]uh1j%hjubj)}(h file_privh]h file_priv}(hj]hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjAjBuh1j%hjubj%)}(hstruct drm_pending_event *ph](j)}(hjh]hstruct}(hjvhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjrubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjrubh)}(hhh]j)}(hdrm_pending_eventh]hdrm_pending_event}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj reftypej% reftargetjmodnameN classnameNj j#)}j&]j΋c.drm_event_reserve_init_lockedasbuh1hhjrubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjrubj%)}(hj%h]h*}(hjhhhNhNubah}(h]h ]j%ah"]h$]h&]uh1j%hjrubj)}(hj%h]hp}(hj͌hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjrubeh}(h]h ]h"]h$]h&]noemphjAjBuh1j%hjubj%)}(hstruct drm_event *eh](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(h drm_eventh]h drm_event}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj reftypej% reftargetjmodnameN classnameNj j#)}j&]j΋c.drm_event_reserve_init_lockedasbuh1hhjubj)}(h h]h }(hj!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj%)}(hj%h]h*}(hj/hhhNhNubah}(h]h ]j%ah"]h$]h&]uh1j%hjubj)}(heh]he}(hj<hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjAjBuh1j%hjubeh}(h]h ]h"]h$]h&]jAjBuh1j%hjShhhjehMubeh}(h]h ]h"]h$]h&]jAjBjuh1jjjhjOhhhjehMubah}(h]jJah ](j!j"eh"]h$]h&]j&j')j(huh1jhjehMhjLhhubj*)}(hhh]h)}(h)init a DRM event and reserve space for ith]h)init a DRM event and reserve space for it}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chMshjchhubah}(h]h ]h"]h$]h&]uh1j)hjLhhhjehMubeh}(h]h ](j functioneh"]h$]h&]jJj jKj~jLj~jMjNjOuh1jhhhjXahNhNubjQ)}(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]j[)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chMwhjubjq)}(hhh](jv)}(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&]uh1j{h]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chMthjubj)}(hhh]h)}(h DRM deviceh]h DRM device}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMthjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1juhjhMthjubjv)}(h5``struct drm_file *file_priv`` DRM file private data h](j|)}(h``struct drm_file *file_priv``h]j)}(hjh]hstruct drm_file *file_priv}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjލubah}(h]h ]h"]h$]h&]uh1j{h]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chMuhjڍubj)}(hhh]h)}(hDRM file private datah]hDRM file private data}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMuhjubah}(h]h ]h"]h$]h&]uh1jhjڍubeh}(h]h ]h"]h$]h&]uh1juhjhMuhjubjv)}(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&]uh1j{h]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chMvhjubj)}(hhh]h)}(h(tracking structure for the pending eventh]h(tracking structure for the pending event}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj.hMvhj/ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1juhj.hMvhjubjv)}(hB``struct drm_event *e`` actual event data to deliver to userspace h](j|)}(h``struct drm_event *e``h]j)}(hjRh]hstruct drm_event *e}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1jhjPubah}(h]h ]h"]h$]h&]uh1j{h]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chMwhjLubj)}(hhh]h)}(h)actual event data to deliver to userspaceh]h)actual event data to deliver to userspace}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjghMwhjhubah}(h]h ]h"]h$]h&]uh1jhjLubeh}(h]h ]h"]h$]h&]uh1juhjghMwhjubeh}(h]h ]h"]h$]h&]uh1jphjubh)}(h**Description**h]j[)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chMyhjubh)}(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.chMyhjubh)}(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 }(hjhhhNhNubj[)}(h**p**h]hp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjubh? into a larger structure it must be allocated with kmalloc and }(hjhhhNhNubj[)}(h**p**h]hp}(hj̎hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjubh" must be the first member element.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chMhjubh)}(hThis is the locked version of drm_event_reserve_init() for callers which already hold :c:type:`drm_device.event_lock `.h](hVThis is the locked version of drm_event_reserve_init() for callers which already hold }(hjhhhNhNubh)}(h,:c:type:`drm_device.event_lock `h]j)}(hjh]hdrm_device.event_lock}(hjhhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnj j$j drm_deviceuh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chMhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj hMhjubh)}(h **Return**h]j[)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chMhjubh)}(h10 on success or a negative error code on failure.h]h10 on success or a negative error code on failure.}(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&]uh1jPhjXahhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j#drm_event_reserve_init (C function)c.drm_event_reserve_inithNtauh1jhjXahhhNhNubj)}(hhh](j)}(hint drm_event_reserve_init (struct drm_device *dev, struct drm_file *file_priv, struct drm_pending_event *p, struct drm_event *e)h]j)}(hint drm_event_reserve_init(struct drm_device *dev, struct drm_file *file_priv, struct drm_pending_event *p, struct drm_event *e)h](j_%)}(hinth]hint}(hj^hhhNhNubah}(h]h ]jk%ah"]h$]h&]uh1j^%hjZhhh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chMubj)}(h h]h }(hjmhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZhhhjlhMubj)}(hdrm_event_reserve_inith]j)}(hdrm_event_reserve_inith]hdrm_event_reserve_init}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj{ubah}(h]h ](jjeh"]h$]h&]jAjBuh1jhjZhhhjlhMubj%)}(hf(struct drm_device *dev, struct drm_file *file_priv, struct drm_pending_event *p, struct drm_event *e)h](j%)}(hstruct drm_device *devh](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(h drm_deviceh]h drm_device}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj reftypej% reftargetjmodnameN classnameNj j#)}j&]j%)}j%jsbc.drm_event_reserve_initasbuh1hhjubj)}(h h]h }(hjُhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj%)}(hj%h]h*}(hjhhhNhNubah}(h]h ]j%ah"]h$]h&]uh1j%hjubj)}(hdevh]hdev}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjAjBuh1j%hjubj%)}(hstruct drm_file *file_privh](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)}(hdrm_fileh]hdrm_file}(hj+hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj(ubah}(h]h ]h"]h$]h&] refdomainj reftypej% reftargetj-modnameN classnameNj j#)}j&]jՏc.drm_event_reserve_initasbuh1hhj ubj)}(h h]h }(hjIhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj%)}(hj%h]h*}(hjWhhhNhNubah}(h]h ]j%ah"]h$]h&]uh1j%hj ubj)}(h file_privh]h file_priv}(hjdhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphjAjBuh1j%hjubj%)}(hstruct drm_pending_event *ph](j)}(hjh]hstruct}(hj}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyubh)}(hhh]j)}(hdrm_pending_eventh]hdrm_pending_event}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj reftypej% reftargetjmodnameN classnameNj j#)}j&]jՏc.drm_event_reserve_initasbuh1hhjyubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyubj%)}(hj%h]h*}(hjǐhhhNhNubah}(h]h ]j%ah"]h$]h&]uh1j%hjyubj)}(hj%h]hp}(hjԐhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjyubeh}(h]h ]h"]h$]h&]noemphjAjBuh1j%hjubj%)}(hstruct drm_event *eh](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(h drm_eventh]h drm_event}(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj reftypej% reftargetj modnameN classnameNj j#)}j&]jՏc.drm_event_reserve_initasbuh1hhjubj)}(h h]h }(hj(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj%)}(hj%h]h*}(hj6hhhNhNubah}(h]h ]j%ah"]h$]h&]uh1j%hjubj)}(hj>h]he}(hjChhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjAjBuh1j%hjubeh}(h]h ]h"]h$]h&]jAjBuh1j%hjZhhhjlhMubeh}(h]h ]h"]h$]h&]jAjBjuh1jjjhjVhhhjlhMubah}(h]jQah ](j!j"eh"]h$]h&]j&j')j(huh1jhjlhMhjShhubj*)}(hhh]h)}(h)init a DRM event and reserve space for ith]h)init a DRM event and reserve space for it}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chMhjihhubah}(h]h ]h"]h$]h&]uh1j)hjShhhjlhMubeh}(h]h ](j functioneh"]h$]h&]jJj jKjjLjjMjNjOuh1jhhhjXahNhNubjQ)}(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]j[)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chMhjubjq)}(hhh](jv)}(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&]uh1j{h]/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&]uh1juhj‘hMhjubjv)}(h5``struct drm_file *file_priv`` DRM file private data h](j|)}(h``struct drm_file *file_priv``h]j)}(hjh]hstruct drm_file *file_priv}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1j{h]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chMhjubj)}(hhh]h)}(hDRM file private datah]hDRM file private data}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1juhjhMhjubjv)}(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&]uh1j{h]/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}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj4hMhj5ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1juhj4hMhjubjv)}(hB``struct drm_event *e`` actual event data to deliver to userspace h](j|)}(h``struct drm_event *e``h]j)}(hjXh]hstruct drm_event *e}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjVubah}(h]h ]h"]h$]h&]uh1j{h]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chMhjRubj)}(hhh]h)}(h)actual event data to deliver to userspaceh]h)actual event data to deliver to userspace}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjmhMhjnubah}(h]h ]h"]h$]h&]uh1jhjRubeh}(h]h ]h"]h$]h&]uh1juhjmhMhjubeh}(h]h ]h"]h$]h&]uh1jphjubh)}(h**Description**h]j[)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chMhjubh)}(hXThis function prepares the passed in event for eventual delivery. If the event doesn't get delivered (because the IOCTL fails later on, before queuing up anything) then the even must be cancelled and freed using drm_event_cancel_free(). Successfully initialized events should be sent out using drm_send_event() or drm_send_event_locked() to signal completion of the asynchronous event to userspace.h]hXThis function prepares the passed in event for eventual delivery. If the event doesn’t get delivered (because the IOCTL fails later on, before queuing up anything) then the even must be cancelled and freed using drm_event_cancel_free(). Successfully initialized events should be sent out using drm_send_event() or drm_send_event_locked() to signal completion of the asynchronous event to userspace.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chMhjubh)}(hIf callers embedded **p** into a larger structure it must be allocated with kmalloc and **p** must be the first member element.h](hIf callers embedded }(hjhhhNhNubj[)}(h**p**h]hp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjubh? into a larger structure it must be allocated with kmalloc and }(hjhhhNhNubj[)}(h**p**h]hp}(hjҒhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjubh" must be the first member element.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chMhjubh)}(h{Callers which already hold :c:type:`drm_device.event_lock ` should use drm_event_reserve_init_locked() instead.h](hCallers which already hold }(hjhhhNhNubh)}(h,:c:type:`drm_device.event_lock `h]j)}(hjh]hdrm_device.event_lock}(hjhhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnj j$j drm_deviceuh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chMhjubh4 should use drm_event_reserve_init_locked() instead.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMhjubh)}(h **Return**h]j[)}(hjh]hReturn}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chMhjubh)}(h10 on success or a negative error code on failure.h]h10 on success or a negative error code on failure.}(hj5hhhNhNubah}(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&]uh1jPhjXahhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j"drm_event_cancel_free (C function)c.drm_event_cancel_freehNtauh1jhjXahhhNhNubj)}(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}(hjdhhhNhNubah}(h]h ]jk%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 }(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`hhhjrhMubj)}(hdrm_event_cancel_freeh]j)}(hdrm_event_cancel_freeh]hdrm_event_cancel_free}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jAjBuh1jhj`hhhjrhMubj%)}(h5(struct drm_device *dev, struct drm_pending_event *p)h](j%)}(hstruct drm_device *devh](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(h drm_deviceh]h drm_device}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj reftypej% reftargetjmodnameN classnameNj j#)}j&]j%)}j%jsbc.drm_event_cancel_freeasbuh1hhjubj)}(h h]h }(hjߓhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj%)}(hj%h]h*}(hjhhhNhNubah}(h]h ]j%ah"]h$]h&]uh1j%hjubj)}(hdevh]hdev}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjAjBuh1j%hjubj%)}(hstruct drm_pending_event *ph](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hdrm_pending_eventh]hdrm_pending_event}(hj1hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj.ubah}(h]h ]h"]h$]h&] refdomainj reftypej% reftargetj3modnameN classnameNj j#)}j&]jۓc.drm_event_cancel_freeasbuh1hhjubj)}(h h]h }(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj%)}(hj%h]h*}(hj]hhhNhNubah}(h]h ]j%ah"]h$]h&]uh1j%hjubj)}(hj%h]hp}(hjjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjAjBuh1j%hjubeh}(h]h ]h"]h$]h&]jAjBuh1j%hj`hhhjrhMubeh}(h]h ]h"]h$]h&]jAjBjuh1jjjhj\hhhjrhMubah}(h]jWah ](j!j"eh"]h$]h&]j&j')j(huh1jhjrhMhjYhhubj*)}(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)hjYhhhjrhMubeh}(h]h ](j functioneh"]h$]h&]jJj jKjjLjjMjNjOuh1jhhhjXahNhNubjQ)}(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]j[)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chMhjubjq)}(hhh](jv)}(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&]uh1j{h]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chMhjΔubj)}(hhh]h)}(h DRM deviceh]h DRM device}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjΔubeh}(h]h ]h"]h$]h&]uh1juhjhMhj˔ubjv)}(hI``struct drm_pending_event *p`` tracking structure for the pending event h](j|)}(h``struct drm_pending_event *p``h]j)}(hj h]hstruct drm_pending_event *p}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1j{h]/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&]uh1juhj"hMhj˔ubeh}(h]h ]h"]h$]h&]uh1jphjubh)}(h**Description**h]j[)}(hjHh]h Description}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjFubah}(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 }(hj^hhhNhNubj[)}(h**p**h]hp}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj^ubh initialized with drm_event_reserve_init() and releases any allocated space. It is used to cancel an event when the nonblocking operation could not be submitted and needed to be aborted.}(hj^hhhNhNubeh}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jPhjXahhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j,drm_send_event_timestamp_locked (C function)!c.drm_send_event_timestamp_lockedhNtauh1jhjXahhhNhNubj)}(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 ]jk%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 ]j ah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jAjBuh1jhjhhhjhM ubj%)}(hH(struct drm_device *dev, struct drm_pending_event *e, ktime_t timestamp)h](j%)}(hstruct drm_device *devh](j)}(hjh]hstruct}(hjܕhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjؕubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjؕubh)}(hhh]j)}(h drm_deviceh]h drm_device}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj reftypej% reftargetjmodnameN classnameNj j#)}j&]j%)}j%j•sb!c.drm_send_event_timestamp_lockedasbuh1hhjؕubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjؕubj%)}(hj%h]h*}(hj(hhhNhNubah}(h]h ]j%ah"]h$]h&]uh1j%hjؕubj)}(hdevh]hdev}(hj5hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjؕubeh}(h]h ]h"]h$]h&]noemphjAjBuh1j%hjԕubj%)}(hstruct drm_pending_event *eh](j)}(hjh]hstruct}(hjNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJubj)}(h h]h }(hj[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJubh)}(hhh]j)}(hdrm_pending_eventh]hdrm_pending_event}(hjlhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjiubah}(h]h ]h"]h$]h&] refdomainj reftypej% reftargetjnmodnameN classnameNj j#)}j&]j!c.drm_send_event_timestamp_lockedasbuh1hhjJubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJubj%)}(hj%h]h*}(hjhhhNhNubah}(h]h ]j%ah"]h$]h&]uh1j%hjJubj)}(hj>h]he}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjJubeh}(h]h ]h"]h$]h&]noemphjAjBuh1j%hjԕubj%)}(hktime_t timestamph](h)}(hhh]j)}(hktime_th]hktime_t}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj reftypej% reftargetj–modnameN classnameNj j#)}j&]j!c.drm_send_event_timestamp_lockedasbuh1hhjubj)}(h h]h }(hjޖhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h timestamph]h timestamp}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjAjBuh1j%hjԕ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.chMhjhhubah}(h]h ]h"]h$]h&]uh1j)hjhhhjhM ubeh}(h]h ](j functioneh"]h$]h&]jJj jKj.jLj.jMjNjOuh1jhhhjXahNhNubjQ)}(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]j[)}(hj8h]h Parameters}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj6ubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chMhj2ubjq)}(hhh](jv)}(h&``struct drm_device *dev`` DRM device h](j|)}(h``struct drm_device *dev``h]j)}(hjWh]hstruct drm_device *dev}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjUubah}(h]h ]h"]h$]h&]uh1j{h]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chMhjQubj)}(hhh]h)}(h DRM deviceh]h DRM device}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1hhjlhMhjmubah}(h]h ]h"]h$]h&]uh1jhjQubeh}(h]h ]h"]h$]h&]uh1juhjlhMhjNubjv)}(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&]uh1j{h]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chMhjubj)}(hhh]h)}(hDRM event to deliverh]hDRM event to deliver}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1juhjhMhjNubjv)}(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)}(hjɗh]hktime_t timestamp}(hj˗hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjǗubah}(h]h ]h"]h$]h&]uh1j{h]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chMhj×ubj)}(hhh]h)}(hLtimestamp to set for the fence event in kernel's CLOCK_MONOTONIC time domainh]hNtimestamp to set for the fence event in kernel’s CLOCK_MONOTONIC time domain}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chMhjߗubah}(h]h ]h"]h$]h&]uh1jhj×ubeh}(h]h ]h"]h$]h&]uh1juhjޗhMhjNubeh}(h]h ]h"]h$]h&]uh1jphj2ubh)}(h**Description**h]j[)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chMhj2ubh)}(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 }(hjhhhNhNubj[)}(h**e**h]he}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjubhm, initialized with drm_event_reserve_init(), to its associated userspace DRM file. Callers must already hold }(hjhhhNhNubh)}(h,:c:type:`drm_device.event_lock `h]j)}(hj7h]hdrm_device.event_lock}(hj9hhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhj5ubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnj j$j drm_deviceuh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chMhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjThMhj2ubh)}(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.chMhj2ubeh}(h]h ] kernelindentah"]h$]h&]uh1jPhjXahhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j"drm_send_event_locked (C function)c.drm_send_event_lockedhNtauh1jhjXahhhNhNubj)}(hhh](j)}(hPvoid drm_send_event_locked (struct drm_device *dev, struct drm_pending_event *e)h]j)}(hOvoid drm_send_event_locked(struct drm_device *dev, struct drm_pending_event *e)h](j_%)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jk%ah"]h$]h&]uh1j^%hjhhh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chM"ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhM"ubj)}(hdrm_send_event_lockedh]j)}(hdrm_send_event_lockedh]hdrm_send_event_locked}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jAjBuh1jhjhhhjhM"ubj%)}(h5(struct drm_device *dev, struct drm_pending_event *e)h](j%)}(hstruct drm_device *devh](j)}(hjh]hstruct}(hj˘hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjǘubj)}(h h]h }(hjؘhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjǘubh)}(hhh]j)}(h drm_deviceh]h drm_device}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj reftypej% reftargetjmodnameN classnameNj j#)}j&]j%)}j%jsbc.drm_send_event_lockedasbuh1hhjǘubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjǘubj%)}(hj%h]h*}(hjhhhNhNubah}(h]h ]j%ah"]h$]h&]uh1j%hjǘubj)}(hdevh]hdev}(hj$hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjǘubeh}(h]h ]h"]h$]h&]noemphjAjBuh1j%hjØubj%)}(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 ]j ah"]h$]h&]uh1jhjXubah}(h]h ]h"]h$]h&] refdomainj reftypej% reftargetj]modnameN classnameNj j#)}j&]jc.drm_send_event_lockedasbuh1hhj9ubj)}(h h]h }(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9ubj%)}(hj%h]h*}(hjhhhNhNubah}(h]h ]j%ah"]h$]h&]uh1j%hj9ubj)}(hj>h]he}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj9ubeh}(h]h ]h"]h$]h&]noemphjAjBuh1j%hjØ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.chMhjhhubah}(h]h ]h"]h$]h&]uh1j)hjhhhjhM"ubeh}(h]h ](j functioneh"]h$]h&]jJj jKjՙjLjՙjMjNjOuh1jhhhjXahNhNubjQ)}(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]j[)}(hjߙh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjݙubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chMhjٙubjq)}(hhh](jv)}(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&]uh1j{h]/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&]uh1juhjhMhjubjv)}(h5``struct drm_pending_event *e`` DRM event to deliver h](j|)}(h``struct drm_pending_event *e``h]j)}(hj7h]hstruct drm_pending_event *e}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5ubah}(h]h ]h"]h$]h&]uh1j{h]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chMhj1ubj)}(hhh]h)}(hDRM event to deliverh]hDRM event to deliver}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjLhMhjMubah}(h]h ]h"]h$]h&]uh1jhj1ubeh}(h]h ]h"]h$]h&]uh1juhjLhMhjubeh}(h]h ]h"]h$]h&]uh1jphjٙubh)}(h**Description**h]j[)}(hjrh]h Description}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjpubah}(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 `, see drm_send_event() for the unlocked version.h](hThis function sends the event }(hjhhhNhNubj[)}(h**e**h]he}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjubhm, initialized with drm_event_reserve_init(), to its associated userspace DRM file. Callers must already hold }(hjhhhNhNubh)}(h,:c:type:`drm_device.event_lock `h]j)}(hjh]hdrm_device.event_lock}(hjhhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnj j$j drm_deviceuh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chMhjubh0, see drm_send_event() for the unlocked version.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMhjٙ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.}(hj̚hhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chMhjٙubeh}(h]h ] kernelindentah"]h$]h&]uh1jPhjXahhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jdrm_send_event (C function)c.drm_send_eventhNtauh1jhjXahhhNhNubj)}(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 ]jk%ah"]h$]h&]uh1j^%hjhhh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chM7ubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhj hM7ubj)}(hdrm_send_eventh]j)}(hdrm_send_eventh]hdrm_send_event}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jAjBuh1jhjhhhj hM7ubj%)}(h5(struct drm_device *dev, struct drm_pending_event *e)h](j%)}(hstruct drm_device *devh](j)}(hjh]hstruct}(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4ubj)}(h h]h }(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4ubh)}(hhh]j)}(h drm_deviceh]h drm_device}(hjVhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjSubah}(h]h ]h"]h$]h&] refdomainj reftypej% reftargetjXmodnameN classnameNj j#)}j&]j%)}j%jsbc.drm_send_eventasbuh1hhj4ubj)}(h h]h }(hjvhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4ubj%)}(hj%h]h*}(hjhhhNhNubah}(h]h ]j%ah"]h$]h&]uh1j%hj4ubj)}(hdevh]hdev}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj4ubeh}(h]h ]h"]h$]h&]noemphjAjBuh1j%hj0ubj%)}(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}(hjțhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjśubah}(h]h ]h"]h$]h&] refdomainj reftypej% reftargetjʛmodnameN classnameNj j#)}j&]jrc.drm_send_eventasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj%)}(hj%h]h*}(hjhhhNhNubah}(h]h ]j%ah"]h$]h&]uh1j%hjubj)}(hj>h]he}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjAjBuh1j%hj0ubeh}(h]h ]h"]h$]h&]jAjBuh1j%hjhhhj hM7ubeh}(h]h ]h"]h$]h&]jAjBjuh1jjjhjhhhj hM7ubah}(h]jah ](j!j"eh"]h$]h&]j&j')j(huh1jhj hM7hjhhubj*)}(hhh]h)}(h!send DRM event to file descriptorh]h!send DRM event to file descriptor}(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'hhubah}(h]h ]h"]h$]h&]uh1j)hjhhhj hM7ubeh}(h]h ](j functioneh"]h$]h&]jJj jKjBjLjBjMjNjOuh1jhhhjXahNhNubjQ)}(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]j[)}(hjLh]h Parameters}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjJubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chM-hjFubjq)}(hhh](jv)}(h&``struct drm_device *dev`` DRM device h](j|)}(h``struct drm_device *dev``h]j)}(hjkh]hstruct drm_device *dev}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjiubah}(h]h ]h"]h$]h&]uh1j{h]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chM*hjeubj)}(hhh]h)}(h DRM deviceh]h DRM device}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM*hjubah}(h]h ]h"]h$]h&]uh1jhjeubeh}(h]h ]h"]h$]h&]uh1juhjhM*hjbubjv)}(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&]uh1j{h]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chM+hjubj)}(hhh]h)}(hDRM event to deliverh]hDRM event to deliver}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM+hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1juhjhM+hjbubeh}(h]h ]h"]h$]h&]uh1jphjFubh)}(h**Description**h]j[)}(hjߜh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjݜubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chM-hjFubh)}(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 }(hjhhhNhNubj[)}(h**e**h]he}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjubhj, 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 refexplicitrefwarnj j$j drm_deviceuh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chM-hjubhG, see drm_send_event_locked() for callers which already hold this lock.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj.hM-hjFubh)}(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.}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chM2hjFubeh}(h]h ] kernelindentah"]h$]h&]uh1jPhjXahhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j#drm_print_memory_stats (C function)c.drm_print_memory_statshNtauh1jhjXahhhNhNubj)}(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}(hjhhhhNhNubah}(h]h ]jk%ah"]h$]h&]uh1j^%hjdhhh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chMgubj)}(h h]h }(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdhhhjvhMgubj)}(hdrm_print_memory_statsh]j)}(hdrm_print_memory_statsh]hdrm_print_memory_stats}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jAjBuh1jhjdhhhjvhMgubj%)}(h~(struct drm_printer *p, const struct drm_memory_stats *stats, enum drm_gem_object_status supported_status, const char *region)h](j%)}(hstruct drm_printer *ph](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(h drm_printerh]h drm_printer}(hjÝhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj reftypej% reftargetjŝmodnameN classnameNj j#)}j&]j%)}j%jsbc.drm_print_memory_statsasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj%)}(hj%h]h*}(hjhhhNhNubah}(h]h ]j%ah"]h$]h&]uh1j%hjubj)}(hj%h]hp}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjAjBuh1j%hjubj%)}(h$const struct drm_memory_stats *statsh](j)}(hj:'h]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hj#hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]hstruct}(hj1hhhNhNubah}(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}(hjOhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjLubah}(h]h ]h"]h$]h&] refdomainj reftypej% reftargetjQmodnameN classnameNj j#)}j&]jߝc.drm_print_memory_statsasbuh1hhjubj)}(h h]h }(hjmhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj%)}(hj%h]h*}(hj{hhhNhNubah}(h]h ]j%ah"]h$]h&]uh1j%hjubj)}(hstatsh]hstats}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjAjBuh1j%hjubj%)}(h+enum drm_gem_object_status supported_statush](j)}(hjh]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 ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj reftypej% reftargetjmodnameN classnameNj j#)}j&]jߝc.drm_print_memory_statsasbuh1hhjubj)}(h h]h }(hjݞhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hsupported_statush]hsupported_status}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjAjBuh1j%hjubj%)}(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 ]jk%ah"]h$]h&]uh1j^%hjubj)}(h h]h }(hj-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj%)}(hj%h]h*}(hj;hhhNhNubah}(h]h ]j%ah"]h$]h&]uh1j%hjubj)}(hregionh]hregion}(hjHhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjAjBuh1j%hjubeh}(h]h ]h"]h$]h&]jAjBuh1j%hjdhhhjvhMgubeh}(h]h ]h"]h$]h&]jAjBjuh1jjjhj`hhhjvhMgubah}(h]j[ah ](j!j"eh"]h$]h&]j&j')j(huh1jhjvhMghj]hhubj*)}(hhh]h)}(hA helper to print memory statsh]hA helper to print memory stats}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chM`hjohhubah}(h]h ]h"]h$]h&]uh1j)hj]hhhjvhMgubeh}(h]h ](j functioneh"]h$]h&]jJj jKjjLjjMjNjOuh1jhhhjXahNhNubjQ)}(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]j[)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chMdhjubjq)}(hhh](jv)}(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&]uh1j{h]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chMahjubj)}(hhh]h)}(hThe printer to print output toh]hThe printer to print output to}(hj̟hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjȟhMahjɟubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1juhjȟhMahjubjv)}(hD``const struct drm_memory_stats *stats`` The collected memory stats h](j|)}(h(``const struct drm_memory_stats *stats``h]j)}(hjh]h$const struct drm_memory_stats *stats}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1j{h]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chMbhjubj)}(hhh]h)}(hThe collected memory statsh]hThe collected memory stats}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMbhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1juhjhMbhjubjv)}(h^``enum drm_gem_object_status supported_status`` Bitmask of optional stats which are available h](j|)}(h/``enum drm_gem_object_status supported_status``h]j)}(hj%h]h+enum drm_gem_object_status supported_status}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj#ubah}(h]h ]h"]h$]h&]uh1j{h]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chMchjubj)}(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:hMchj;ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1juhj:hMchjubjv)}(h(``const char *region`` The memory regionh](j|)}(h``const char *region``h]j)}(hj^h]hconst char *region}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj\ubah}(h]h ]h"]h$]h&]uh1j{h]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chMehjXubj)}(hhh]h)}(hThe memory regionh]hThe memory region}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chMdhjtubah}(h]h ]h"]h$]h&]uh1jhjXubeh}(h]h ]h"]h$]h&]uh1juhjshMehjubeh}(h]h ]h"]h$]h&]uh1jphjubeh}(h]h ] kernelindentah"]h$]h&]uh1jPhjXahhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j"drm_show_memory_stats (C function)c.drm_show_memory_statshNtauh1jhjXahhhNhNubj)}(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 ]jk%ah"]h$]h&]uh1j^%hjhhh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chMubj)}(h h]h }(hjǠhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjƠhMubj)}(hdrm_show_memory_statsh]j)}(hdrm_show_memory_statsh]hdrm_show_memory_stats}(hj٠hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjՠubah}(h]h ](jjeh"]h$]h&]jAjBuh1jhjhhhjƠhMubj%)}(h.(struct drm_printer *p, struct drm_file *file)h](j%)}(hstruct drm_printer *ph](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(h drm_printerh]h drm_printer}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj reftypej% reftargetjmodnameN classnameNj j#)}j&]j%)}j%j۠sbc.drm_show_memory_statsasbuh1hhjubj)}(h h]h }(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj%)}(hj%h]h*}(hjAhhhNhNubah}(h]h ]j%ah"]h$]h&]uh1j%hjubj)}(hj%h]hp}(hjNhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjAjBuh1j%hjubj%)}(hstruct drm_file *fileh](j)}(hjh]hstruct}(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbubj)}(h h]h }(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbubh)}(hhh]j)}(hdrm_fileh]hdrm_file}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj reftypej% reftargetjmodnameN classnameNj j#)}j&]j/c.drm_show_memory_statsasbuh1hhjbubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbubj%)}(hj%h]h*}(hjhhhNhNubah}(h]h ]j%ah"]h$]h&]uh1j%hjbubj)}(hfileh]hfile}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjbubeh}(h]h ]h"]h$]h&]noemphjAjBuh1j%hjubeh}(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)}(h7Helper to collect and show standard fdinfo memory statsh]h7Helper to collect and show standard fdinfo memory stats}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chMhjhhubah}(h]h ]h"]h$]h&]uh1j)hjhhhjƠhMubeh}(h]h ](j functioneh"]h$]h&]jJj jKjjLjjMjNjOuh1jhhhjXahNhNubjQ)}(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]j[)}(hj h]h Parameters}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chMhjubjq)}(hhh](jv)}(h9``struct drm_printer *p`` the printer to print output to h](j|)}(h``struct drm_printer *p``h]j)}(hj(h]hstruct drm_printer *p}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj&ubah}(h]h ]h"]h$]h&]uh1j{h]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chMhj"ubj)}(hhh]h)}(hthe printer to print output toh]hthe printer to print output to}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj=hMhj>ubah}(h]h ]h"]h$]h&]uh1jhj"ubeh}(h]h ]h"]h$]h&]uh1juhj=hMhjubjv)}(h'``struct drm_file *file`` the DRM file h](j|)}(h``struct drm_file *file``h]j)}(hjah]hstruct drm_file *file}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1jhj_ubah}(h]h ]h"]h$]h&]uh1j{h]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chMhj[ubj)}(hhh]h)}(h the DRM fileh]h the DRM file}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjvhMhjwubah}(h]h ]h"]h$]h&]uh1jhj[ubeh}(h]h ]h"]h$]h&]uh1juhjvhMhjubeh}(h]h ]h"]h$]h&]uh1jphjubh)}(h**Description**h]j[)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjubah}(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&]uh1jPhjXahhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jdrm_show_fdinfo (C function)c.drm_show_fdinfohNtauh1jhjXahhhNhNubj)}(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}(hjhhhNhNubah}(h]h ]jk%ah"]h$]h&]uh1j^%hjݢhhh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjݢhhhjhMubj)}(hdrm_show_fdinfoh]j)}(hdrm_show_fdinfoh]hdrm_show_fdinfo}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jAjBuh1jhjݢhhhjhMubj%)}(h$(struct seq_file *m, struct file *f)h](j%)}(hstruct seq_file *mh](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hj+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hseq_fileh]hseq_file}(hj<hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj9ubah}(h]h ]h"]h$]h&] refdomainj reftypej% reftargetj>modnameN classnameNj j#)}j&]j%)}j%jsbc.drm_show_fdinfoasbuh1hhjubj)}(h h]h }(hj\hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj%)}(hj%h]h*}(hjjhhhNhNubah}(h]h ]j%ah"]h$]h&]uh1j%hjubj)}(hmh]hm}(hjwhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjAjBuh1j%hjubj%)}(hstruct file *fh](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hfileh]hfile}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj reftypej% reftargetjmodnameN classnameNj j#)}j&]jXc.drm_show_fdinfoasbuh1hhjubj)}(h h]h }(hj̣hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj%)}(hj%h]h*}(hjڣhhhNhNubah}(h]h ]j%ah"]h$]h&]uh1j%hjubj)}(hfh]hf}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjAjBuh1j%hjubeh}(h]h ]h"]h$]h&]jAjBuh1j%hjݢhhhjhMubeh}(h]h ]h"]h$]h&]jAjBjuh1jjjhj٢hhhjhMubah}(h]jԢah ](j!j"eh"]h$]h&]j&j')j(huh1jhjhMhj֢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֢hhhjhMubeh}(h]h ](j functioneh"]h$]h&]jJj jKj)jLj)jMjNjOuh1jhhhjXahNhNubjQ)}(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]j[)}(hj3h]h Parameters}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj1ubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chMhj-ubjq)}(hhh](jv)}(h%``struct seq_file *m`` output stream h](j|)}(h``struct seq_file *m``h]j)}(hjRh]hstruct seq_file *m}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1jhjPubah}(h]h ]h"]h$]h&]uh1j{h]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chMhjLubj)}(hhh]h)}(h output streamh]h output stream}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjghMhjhubah}(h]h ]h"]h$]h&]uh1jhjLubeh}(h]h ]h"]h$]h&]uh1juhjghMhjIubjv)}(h,``struct file *f`` the device file instance h](j|)}(h``struct file *f``h]j)}(hjh]hstruct file *f}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1j{h]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chMhjubj)}(hhh]h)}(hthe device file instanceh]hthe device file instance}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1juhjhMhjIubeh}(h]h ]h"]h$]h&]uh1jphj-ubh)}(h**Description**h]j[)}(hjƤh]h Description}(hjȤhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjĤubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:152: ./drivers/gpu/drm/drm_file.chMhj-ubh)}(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)}(hjh]hdrm_driver.show_fdinfo}(hjhhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnj j$j 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&]uh1hhjhMhj-ubh)}(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.chMhj-ubeh}(h]h ] kernelindentah"]h$]h&]uh1jPhjXahhhNhNubeh}(h](file-operationsjWaeh ]h"](file operationsdrm_driver_fopseh$]h&]uh1hhj9ahhhhhKexpect_referenced_by_name}j*jLasexpect_referenced_by_id}jWajLasubeh}(h]%open-close-file-operations-and-ioctlsah ]h"]&open/close, file operations and ioctlsah$]h&]uh1hhhhhhhhKubh)}(hhh](h)}(hMisc Utilitiesh]hMisc Utilities}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj9hhhhhKubh)}(hhh](h)}(hPrinterh]hPrinter}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjJhhhhhKubh)}(h}A simple wrapper for dev_printk(), seq_printf(), etc. Allows same debug code to be used for both debugfs and printk logging.h]h}A simple wrapper for dev_printk(), seq_printf(), etc. Allows same debug code to be used for both debugfs and printk logging.}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:161: ./include/drm/drm_print.hhK-hjJhhubh)}(h For example::h]h For example:}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:161: ./include/drm/drm_print.hhK0hjJhhubj2)}(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); }}hjysbah}(h]h ]h"]h$]h&]jAjBuh1j1hZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:161: ./include/drm/drm_print.hhK2hjJhhubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jdrm_debug_category (C enum)c.drm_debug_categoryhNtauh1jhjJhhhNhNubj)}(hhh](j)}(hdrm_debug_categoryh]j)}(henum drm_debug_categoryh](j)}(hjh]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 ]j ah"]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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhKJhjhhubah}(h]h ]h"]h$]h&]uh1j)hjhhhjhKubeh}(h]h ](j enumeh"]h$]h&]jJj jKjjLjjMjNjOuh1jhhhjJhNhNubjQ)}(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]j[)}(hjh]h Constants}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhKNhjubjq)}(hhh](jv)}(hW``DRM_UT_CORE`` Used in the generic drm code: drm_ioctl.c, drm_mm.c, drm_memory.c, ... h](j|)}(h``DRM_UT_CORE``h]j)}(hj$h]h DRM_UT_CORE}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj"ubah}(h]h ]h"]h$]h&]uh1j{hZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhKRhjubj)}(hhh]h)}(hFUsed in the generic drm code: drm_ioctl.c, drm_mm.c, drm_memory.c, ...h]hFUsed in the generic drm code: drm_ioctl.c, drm_mm.c, drm_memory.c, ...}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhKQhj:ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1juhj9hKRhjubjv)}(h[``DRM_UT_DRIVER`` Used in the vendor specific part of the driver: i915, radeon, ... macro. h](j|)}(h``DRM_UT_DRIVER``h]j)}(hj^h]h DRM_UT_DRIVER}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj\ubah}(h]h ]h"]h$]h&]uh1j{hZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhKVhjXubj)}(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.}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhKUhjtubah}(h]h ]h"]h$]h&]uh1jhjXubeh}(h]h ]h"]h$]h&]uh1juhjshKVhjubjv)}(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&]uh1j{hZ/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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKYhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1juhjhKYhjubjv)}(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&]uh1j{hZ/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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhK\hjubah}(h]h ]h"]h$]h&]uh1jhj˦ubeh}(h]h ]h"]h$]h&]uh1juhjhK\hjubjv)}(h+``DRM_UT_ATOMIC`` Used in the atomic code. h](j|)}(h``DRM_UT_ATOMIC``h]j)}(hj h]h DRM_UT_ATOMIC}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1j{hZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhK_hjubj)}(hhh]h)}(hUsed in the atomic code.h]hUsed in the atomic code.}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhK_hj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1juhjhK_hjubjv)}(hB``DRM_UT_VBL`` Used for verbose debug message in the vblank code. h](j|)}(h``DRM_UT_VBL``h]j)}(hjCh]h DRM_UT_VBL}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjAubah}(h]h ]h"]h$]h&]uh1j{hZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhKbhj=ubj)}(hhh]h)}(h2Used for verbose debug message in the vblank code.h]h2Used for verbose debug message in the vblank code.}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjXhKbhjYubah}(h]h ]h"]h$]h&]uh1jhj=ubeh}(h]h ]h"]h$]h&]uh1juhjXhKbhjubjv)}(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&]uh1jhjzubah}(h]h ]h"]h$]h&]uh1j{hZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhKehjvubj)}(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&]uh1jhjvubeh}(h]h ]h"]h$]h&]uh1juhjhKehjubjv)}(h)``DRM_UT_LEASE`` Used in the lease code. h](j|)}(h``DRM_UT_LEASE``h]j)}(hjh]h DRM_UT_LEASE}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1j{hZ/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&]uh1juhjʧhKhhjubjv)}(h#``DRM_UT_DP`` Used in the DP code. h](j|)}(h ``DRM_UT_DP``h]j)}(hjh]h DRM_UT_DP}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1j{hZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhKkhjubj)}(hhh]h)}(hUsed in the DP code.h]hUsed in the DP code.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKkhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1juhjhKkhjubjv)}(h9``DRM_UT_DRMRES`` Used in the drm managed resources code.h](j|)}(h``DRM_UT_DRMRES``h]j)}(hj'h]h DRM_UT_DRMRES}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj%ubah}(h]h ]h"]h$]h&]uh1j{hZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhKmhj!ubj)}(hhh]h)}(h'Used in the drm managed resources code.h]h'Used in the drm managed resources code.}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhKnhj=ubah}(h]h ]h"]h$]h&]uh1jhj!ubeh}(h]h ]h"]h$]h&]uh1juhj<hKmhjubeh}(h]h ]h"]h$]h&]uh1jphjubeh}(h]h ] kernelindentah"]h$]h&]uh1jPhjJhhhNhNubh)}(h**Description**h]j[)}(hjjh]h Description}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhKqhjJhhubh)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhKKhjJhhubh)}(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.hhKOhjJhhubh)}(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.hhKRhjJhhubj")}(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]j)E)}(hhh](j.E)}(h'drm.debug=0x1 will enable CORE messagesh]h)}(hjh]h'drm.debug=0x1 will enable CORE messages}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhKUhjubah}(h]h ]h"]h$]h&]uh1j-Ehjubj.E)}(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&]uh1j-Ehjubj.E)}(h2drm.debug=0x3 will enable CORE and DRIVER messagesh]h)}(hjh]h2drm.debug=0x3 will enable CORE and DRIVER messages}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhKWhjubah}(h]h ]h"]h$]h&]uh1j-Ehjubj.E)}(h...h]h)}(hjh]h...}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhKXhjubah}(h]h ]h"]h$]h&]uh1j-Ehjubj.E)}(h)drm.debug=0x1ff will enable all messages h]h)}(h(drm.debug=0x1ff will enable all messagesh]h(drm.debug=0x1ff will enable all messages}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhKYhjubah}(h]h ]h"]h$]h&]uh1j-Ehjubeh}(h]h ]h"]h$]h&]j Fj Fuh1j(EhjŨhKUhjubah}(h]h ]h"]h$]h&]uh1j"hjŨhKUhjJhhubh)}(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:}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhK[hjJhhubj2)}(h-# echo 0xf > /sys/module/drm/parameters/debugh]h-# echo 0xf > /sys/module/drm/parameters/debug}hjHsbah}(h]h ]h"]h$]h&]jAjBuh1j1hZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhK^hjJhhubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jdrm_printer (C struct) c.drm_printerhNtauh1jhjJhhhNhNubj)}(hhh](j)}(h drm_printerh]j)}(hstruct drm_printerh](j)}(hjh]hstruct}(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlhhhZ/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&]uh1jhjlhhhj}hKcubj)}(h drm_printerh]j)}(hjjh]h drm_printer}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jAjBuh1jhjlhhhj}hKcubeh}(h]h ]h"]h$]h&]jAjBjuh1jjjhjhhhhj}hKcubah}(h]jcah ](j!j"eh"]h$]h&]j&j')j(huh1jhj}hKchjehhubj*)}(hhh]h)}(hdrm output "stream"h]hdrm output “stream”}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhKhjhhubah}(h]h ]h"]h$]h&]uh1j)hjehhhj}hKcubeh}(h]h ](j structeh"]h$]h&]jJj jKjʩjLjʩjMjNjOuh1jhhhjJhNhNubjQ)}(h:**Definition**:: struct drm_printer { }; **Members**h](h)}(h**Definition**::h](j[)}(h**Definition**h]h Definition}(hj֩hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjҩ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 { };}hjsbah}(h]h ]h"]h$]h&]jAjBuh1j1hZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhKhjΩubh)}(h **Members**h]j[)}(hjh]hMembers}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjubah}(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&]uh1jPhjJhhhNhNubh)}(h**Description**h]j[)}(hjh]h Description}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhKhjJhhubh)}(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.}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhKhjJhhubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jdrm_vprintf (C function) c.drm_vprintfhNtauh1jhjJhhhNhNubj)}(hhh](j)}(hFvoid drm_vprintf (struct drm_printer *p, const char *fmt, va_list *va)h]j)}(hEvoid drm_vprintf(struct drm_printer *p, const char *fmt, va_list *va)h](j_%)}(hvoidh]hvoid}(hj]hhhNhNubah}(h]h ]jk%ah"]h$]h&]uh1j^%hjYhhhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhKubj)}(h h]h }(hjlhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYhhhjkhKubj)}(h drm_vprintfh]j)}(h drm_vprintfh]h drm_vprintf}(hj~hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjzubah}(h]h ](jjeh"]h$]h&]jAjBuh1jhjYhhhjkhKubj%)}(h5(struct drm_printer *p, const char *fmt, va_list *va)h](j%)}(hstruct drm_printer *ph](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(h drm_printerh]h drm_printer}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj reftypej% reftargetjmodnameN classnameNj j#)}j&]j%)}j%jsb c.drm_vprintfasbuh1hhjubj)}(h h]h }(hjتhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj%)}(hj%h]h*}(hjhhhNhNubah}(h]h ]j%ah"]h$]h&]uh1j%hjubj)}(hj%h]hp}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjAjBuh1j%hjubj%)}(hconst char *fmth](j)}(hj:'h]hconst}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj_%)}(hcharh]hchar}(hj&hhhNhNubah}(h]h ]jk%ah"]h$]h&]uh1j^%hjubj)}(h h]h }(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj%)}(hj%h]h*}(hjBhhhNhNubah}(h]h ]j%ah"]h$]h&]uh1j%hjubj)}(hfmth]hfmt}(hjOhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjAjBuh1j%hjubj%)}(h va_list *vah](h)}(hhh]j)}(hva_listh]hva_list}(hjkhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjhubah}(h]h ]h"]h$]h&] refdomainj reftypej% reftargetjmmodnameN classnameNj j#)}j&]jԪ c.drm_vprintfasbuh1hhjdubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdubj%)}(hj%h]h*}(hjhhhNhNubah}(h]h ]j%ah"]h$]h&]uh1j%hjdubj)}(hvah]hva}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjdubeh}(h]h ]h"]h$]h&]noemphjAjBuh1j%hjubeh}(h]h ]h"]h$]h&]jAjBuh1j%hjYhhhjkhKubeh}(h]h ]h"]h$]h&]jAjBjuh1jjjhjUhhhjkhKubah}(h]jPah ](j!j"eh"]h$]h&]j&j')j(huh1jhjkhKhjRhhubj*)}(hhh]h)}(h'print to a :c:type:`drm_printer` streamh](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 refexplicitrefwarnj j#)}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)hjRhhhjkhKubeh}(h]h ](j functioneh"]h$]h&]jJj jKjjLjjMjNjOuh1jhhhjJhNhNubjQ)}(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]j[)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhKhjubjq)}(hhh](jv)}(h4``struct drm_printer *p`` the :c:type:`drm_printer` h](j|)}(h``struct drm_printer *p``h]j)}(hj8h]hstruct drm_printer *p}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6ubah}(h]h ]h"]h$]h&]uh1j{hZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhKhj2ubj)}(hhh]h)}(hthe :c:type:`drm_printer`h](hthe }(hjQhhhNhNubh)}(h:c:type:`drm_printer`h]j)}(hj[h]h drm_printer}(hj]hhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjYubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnj j$j drm_printeruh1hhjMhKhjQubeh}(h]h ]h"]h$]h&]uh1hhjMhKhjNubah}(h]h ]h"]h$]h&]uh1jhj2ubeh}(h]h ]h"]h$]h&]uh1juhjMhKhj/ubjv)}(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&]uh1j{hZ/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&]uh1juhjhKhj/ubjv)}(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&]uh1jhjǬubah}(h]h ]h"]h$]h&]uh1j{hZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhKhjìubj)}(hhh]h)}(h the va_listh]h the va_list}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhKhj߬ubah}(h]h ]h"]h$]h&]uh1jhjìubeh}(h]h ]h"]h$]h&]uh1juhjެhKhj/ubeh}(h]h ]h"]h$]h&]uh1jphjubeh}(h]h ] kernelindentah"]h$]h&]uh1jPhjJhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jdrm_printf_indent (C macro)c.drm_printf_indenthNtauh1jhjJhhhNhNubj)}(hhh](j)}(hdrm_printf_indenth]j)}(hdrm_printf_indenth]j)}(hdrm_printf_indenth]j)}(hjh]hdrm_printf_indent}(hj'hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj#ubah}(h]h ](jjeh"]h$]h&]jAjBuh1jhjhhhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhKubah}(h]h ]h"]h$]h&]jAjBjuh1jjjhjhhhj:hKubah}(h]jah ](j!j"eh"]h$]h&]j&j')j(huh1jhj:hKhjhhubj*)}(hhh]h}(h]h ]h"]h$]h&]uh1j)hjhhhj:hKubeh}(h]h ](j macroeh"]h$]h&]jJj jKjSjLjSjMjNjOuh1jhhhjJhNhNubh)}(h1``drm_printf_indent (printer, indent, fmt, ...)``h]j)}(hjYh]h-drm_printf_indent (printer, indent, fmt, ...)}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjWubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhKhjJhhubj")}(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 }(hjshhhNhNubh)}(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 refexplicitrefwarnj j$j drm_printeruh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhKhjsubh stream with indentation}(hjshhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhKhjoubah}(h]h ]h"]h$]h&]uh1j"hjhKhjJhhubjQ)}(h**Parameters** ``printer`` DRM printer ``indent`` Tab indentation level (max 5) ``fmt`` Format string ``...`` variable argumentsh](h)}(h**Parameters**h]j[)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhKhjubjq)}(hhh](jv)}(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&]uh1j{hZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhKhjʭubj)}(hhh]h)}(h DRM printerh]h DRM printer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjʭubeh}(h]h ]h"]h$]h&]uh1juhjhKhjǭubjv)}(h)``indent`` Tab indentation level (max 5) h](j|)}(h ``indent``h]j)}(hj h]hindent}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1j{hZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhKhjubj)}(hhh]h)}(hTab indentation level (max 5)h]hTab indentation level (max 5)}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1juhjhKhjǭubjv)}(h``fmt`` Format string h](j|)}(h``fmt``h]j)}(hjBh]hfmt}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj@ubah}(h]h ]h"]h$]h&]uh1j{hZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhKhj<ubj)}(hhh]h)}(h Format stringh]h Format string}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjWhKhjXubah}(h]h ]h"]h$]h&]uh1jhj<ubeh}(h]h ]h"]h$]h&]uh1juhjWhKhjǭubjv)}(h``...`` variable argumentsh](j|)}(h``...``h]j)}(hj{h]h...}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjyubah}(h]h ]h"]h$]h&]uh1j{hZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhKhjuubj)}(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&]uh1jhjuubeh}(h]h ]h"]h$]h&]uh1juhjhKhjǭubeh}(h]h ]h"]h$]h&]uh1jphjubeh}(h]h ] kernelindentah"]h$]h&]uh1jPhjJhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jdrm_print_iterator (C struct)c.drm_print_iteratorhNtauh1jhjJhhhNhNubj)}(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 }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjѮhhhjhKubj)}(hdrm_print_iteratorh]j)}(hjϮh]hdrm_print_iterator}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jAjBuh1jhjѮhhhjhKubeh}(h]h ]h"]h$]h&]jAjBjuh1jjjhjͮhhhjhKubah}(h]jȮah ](j!j"eh"]h$]h&]j&j')j(huh1jhjhKhjʮhhubj*)}(hhh]h)}(h+local struct used with drm_printer_coredumph]h+local struct used with drm_printer_coredump}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhKhjhhubah}(h]h ]h"]h$]h&]uh1j)hjʮhhhjhKubeh}(h]h ](j structeh"]h$]h&]jJj jKj/jLj/jMjNjOuh1jhhhjJhNhNubjQ)}(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](j[)}(h**Definition**h]h Definition}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj7ubh:}(hj7hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhKhj3ubj2)}(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; };}hjTsbah}(h]h ]h"]h$]h&]jAjBuh1j1hZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhKhj3ubh)}(h **Members**h]j[)}(hjeh]hMembers}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjcubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhKhj3ubjq)}(hhh](jv)}(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)}(hjh]hdata}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1j{hZ/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&]uh1juhjhKhj{ubjv)}(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&]uh1j{hZ/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&]uh1juhjӯhKhj{ubjv)}(h:``remain`` The number of bytes to write for this iterationh](j|)}(h ``remain``h]j)}(hjh]hremain}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1j{hZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhKhjubj)}(hhh]h)}(h/The number of bytes to write for this iterationh]h/The number of bytes to write for this iteration}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhKhj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1juhj hKhj{ubeh}(h]h ]h"]h$]h&]uh1jphj3ubeh}(h]h ] kernelindentah"]h$]h&]uh1jPhjJhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j!drm_coredump_printer (C function)c.drm_coredump_printerhNtauh1jhjJhhhNhNubj)}(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}(hjQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMhhhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhMLubj)}(h h]h }(hj_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMhhhj^hMLubh)}(hhh]j)}(h drm_printerh]h drm_printer}(hjphhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjmubah}(h]h ]h"]h$]h&] refdomainj reftypej% reftargetjrmodnameN classnameNj j#)}j&]j%)}j%drm_coredump_printersbc.drm_coredump_printerasbuh1hhjMhhhj^hMLubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMhhhj^hMLubj)}(hdrm_coredump_printerh]j)}(hjh]hdrm_coredump_printer}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jAjBuh1jhjMhhhj^hMLubj%)}(h!(struct drm_print_iterator *iter)h]j%)}(hstruct drm_print_iterator *iterh](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hj˰hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hdrm_print_iteratorh]hdrm_print_iterator}(hjܰhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjٰubah}(h]h ]h"]h$]h&] refdomainj reftypej% reftargetjްmodnameN classnameNj j#)}j&]jc.drm_coredump_printerasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj%)}(hj%h]h*}(hjhhhNhNubah}(h]h ]j%ah"]h$]h&]uh1j%hjubj)}(hiterh]hiter}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjAjBuh1j%hjubah}(h]h ]h"]h$]h&]jAjBuh1j%hjMhhhj^hMLubeh}(h]h ]h"]h$]h&]jAjBjuh1jjjhjIhhhj^hMLubah}(h]jDah ](j!j"eh"]h$]h&]j&j')j(huh1jhj^hMLhjFhhubj*)}(hhh]h)}(hdconstruct a :c:type:`drm_printer` that can output to a buffer from the read function for devcoredumph](h construct a }(hj?hhhNhNubh)}(h:c:type:`drm_printer`h]j)}(hjIh]h drm_printer}(hjKhhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjGubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnj j#)}j&]jc.drm_coredump_printerasbj drm_printeruh1hhjhKhj?ubhC that can output to a buffer from the read function for devcoredump}(hj?hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhKhj<hhubah}(h]h ]h"]h$]h&]uh1j)hjFhhhj^hMLubeh}(h]h ](j functioneh"]h$]h&]jJj jKjjLjjMjNjOuh1jhhhjJhNhNubjQ)}(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]j[)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhKhjubjq)}(hhh]jv)}(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&]uh1j{hZ/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&]uh1juhjhKhjubah}(h]h ]h"]h$]h&]uh1jphjubh)}(h**Description**h]j[)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjubah}(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.}(hjhhhNhNubah}(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:}(hjhhhNhNubah}(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, ...) }}hjsbah}(h]h ]h"]h$]h&]jAjBuh1j1hZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhMhjubh)}(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.}(hj5hhhNhNubah}(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:}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhM hjubj2)}(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); ... }}hjSsbah}(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.}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhMEhjubh)}(h **Return**h]j[)}(hjsh]hReturn}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjqubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhMIhjubh)}(h The :c:type:`drm_printer` objecth](hThe }(hjhhhNhNubh)}(h:c:type:`drm_printer`h]j)}(hjh]h drm_printer}(hjhhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnj j$j 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&]uh1jPhjJhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j!drm_seq_file_printer (C function)c.drm_seq_file_printerhNtauh1jhjJhhhNhNubj)}(hhh](j)}(h` to output to **Return** The :c:type:`drm_printer` objecth](h)}(h**Parameters**h]j[)}(hj1h]h Parameters}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj/ubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhM`hj+ubjq)}(hhh]jv)}(hM``struct seq_file *f`` the :c:type:`struct seq_file ` to output to h](j|)}(h``struct seq_file *f``h]j)}(hjPh]hstruct seq_file *f}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjNubah}(h]h ]h"]h$]h&]uh1j{hZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhM]hjJubj)}(hhh]h)}(h5the :c:type:`struct seq_file ` to output toh](hthe }(hjihhhNhNubh)}(h$:c:type:`struct seq_file `h]j)}(hjsh]hstruct seq_file}(hjuhhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjqubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnj j$jseq_fileuh1hhjehM]hjiubh to output to}(hjihhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjehM]hjfubah}(h]h ]h"]h$]h&]uh1jhjJubeh}(h]h ]h"]h$]h&]uh1juhjehM]hjGubah}(h]h ]h"]h$]h&]uh1jphj+ubh)}(h **Return**h]j[)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhM_hj+ubh)}(h The :c:type:`drm_printer` objecth](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 refexplicitrefwarnj j$j drm_printeruh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhM_hjĴubh object}(hjĴhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhM_hj+ubeh}(h]h ] kernelindentah"]h$]h&]uh1jPhjJhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jdrm_info_printer (C function)c.drm_info_printerhNtauh1jhjJhhhNhNubj)}(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.hhMsubj)}(h h]h }(hj$hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhj#hMsubh)}(hhh]j)}(h drm_printerh]h drm_printer}(hj5hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj2ubah}(h]h ]h"]h$]h&] refdomainj reftypej% reftargetj7modnameN classnameNj j#)}j&]j%)}j%drm_info_printersbc.drm_info_printerasbuh1hhjhhhj#hMsubj)}(h h]h }(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhj#hMsubj)}(hdrm_info_printerh]j)}(hjSh]hdrm_info_printer}(hjhhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjdubah}(h]h ](jjeh"]h$]h&]jAjBuh1jhjhhhj#hMsubj%)}(h(struct device *dev)h]j%)}(hstruct device *devh](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hdeviceh]hdevice}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj reftypej% reftargetjmodnameN classnameNj j#)}j&]jQc.drm_info_printerasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj%)}(hj%h]h*}(hj͵hhhNhNubah}(h]h ]j%ah"]h$]h&]uh1j%hjubj)}(hdevh]hdev}(hjڵhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjAjBuh1j%hj{ubah}(h]h ]h"]h$]h&]jAjBuh1j%hjhhhj#hMsubeh}(h]h ]h"]h$]h&]jAjBjuh1jjjhjhhhj#hMsubah}(h]j ah ](j!j"eh"]h$]h&]j&j')j(huh1jhj#hMshj 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)}(hjh]h drm_printer}(hjhhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnj j#)}j&]jQc.drm_info_printerasbj drm_printeruh1hhjhKhjubh 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.hhMmhjhhubah}(h]h ]h"]h$]h&]uh1j)hj hhhj#hMsubeh}(h]h ](j functioneh"]h$]h&]jJj jKjDjLjDjMjNjOuh1jhhhjJhNhNubjQ)}(h**Parameters** ``struct device *dev`` the :c:type:`struct device ` pointer **Return** The :c:type:`drm_printer` objecth](h)}(h**Parameters**h]j[)}(hjNh]h Parameters}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjLubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhMqhjHubjq)}(hhh]jv)}(hD``struct device *dev`` the :c:type:`struct device ` pointer h](j|)}(h``struct device *dev``h]j)}(hjmh]hstruct device *dev}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jhjkubah}(h]h ]h"]h$]h&]uh1j{hZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhMnhjgubj)}(hhh]h)}(h,the :c:type:`struct device ` pointerh](hthe }(hjhhhNhNubh)}(h :c:type:`struct device `h]j)}(hjh]h struct device}(hjhhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnj j$jdeviceuh1hhjhMnhjubh pointer}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMnhjubah}(h]h ]h"]h$]h&]uh1jhjgubeh}(h]h ]h"]h$]h&]uh1juhjhMnhjdubah}(h]h ]h"]h$]h&]uh1jphjHubh)}(h **Return**h]j[)}(hj˶h]hReturn}(hjͶhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjɶubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhMphjHubh)}(h The :c:type:`drm_printer` objecth](hThe }(hjhhhNhNubh)}(h:c:type:`drm_printer`h]j)}(hjh]h drm_printer}(hjhhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnj j$j drm_printeruh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhMphjubh object}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMphjHubeh}(h]h ] kernelindentah"]h$]h&]uh1jPhjJhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jdrm_dbg_printer (C function)c.drm_dbg_printerhNtauh1jhjJhhhNhNubj)}(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}(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 ]j ah"]h$]h&]uh1jhjOubah}(h]h ]h"]h$]h&] refdomainj reftypej% reftargetjTmodnameN classnameNj j#)}j&]j%)}j%drm_dbg_printersbc.drm_dbg_printerasbuh1hhj/hhhj@hMubj)}(h h]h }(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/hhhj@hMubj)}(hdrm_dbg_printerh]j)}(hjph]hdrm_dbg_printer}(hjhhhNhNubah}(h]h ]j ah"]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](j%)}(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 ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj reftypej% reftargetjmodnameN classnameNj j#)}j&]jnc.drm_dbg_printerasbuh1hhjubj)}(h h]h }(hjܷhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj%)}(hj%h]h*}(hjhhhNhNubah}(h]h ]j%ah"]h$]h&]uh1j%hjubj)}(hdrmh]hdrm}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjAjBuh1j%hjubj%)}(h enum drm_debug_category categoryh](j)}(hjh]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 ]j ah"]h$]h&]uh1jhj+ubah}(h]h ]h"]h$]h&] refdomainj reftypej% reftargetj0modnameN classnameNj j#)}j&]jnc.drm_dbg_printerasbuh1hhj ubj)}(h h]h }(hjLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(hcategoryh]hcategory}(hjZhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphjAjBuh1j%hjubj%)}(hconst char *prefixh](j)}(hj:'h]hconst}(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjoubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjoubj_%)}(hcharh]hchar}(hjhhhNhNubah}(h]h ]jk%ah"]h$]h&]uh1j^%hjoubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjoubj%)}(hj%h]h*}(hjhhhNhNubah}(h]h ]j%ah"]h$]h&]uh1j%hjoubj)}(hprefixh]hprefix}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjoubeh}(h]h ]h"]h$]h&]noemphjAjBuh1j%hjubeh}(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 refexplicitrefwarnj j#)}j&]jnc.drm_dbg_printerasbj drm_printeruh1hhjhKhjubh 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.hhM}hj޸hhubah}(h]h ]h"]h$]h&]uh1j)hj(hhhj@hMubeh}(h]h ](j functioneh"]h$]h&]jJj jKj!jLj!jMjNjOuh1jhhhjJhNhNubjQ)}(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]j[)}(hj+h]h Parameters}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj)ubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhMhj%ubjq)}(hhh](jv)}(hY``struct drm_device *drm`` the :c:type:`struct drm_device ` pointer, or NULL h](j|)}(h``struct drm_device *drm``h]j)}(hjJh]hstruct drm_device *drm}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjHubah}(h]h ]h"]h$]h&]uh1j{hZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhM~hjDubj)}(hhh]h)}(h=the :c:type:`struct drm_device ` pointer, or NULLh](hthe }(hjchhhNhNubh)}(h(:c:type:`struct drm_device `h]j)}(hjmh]hstruct drm_device}(hjohhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjkubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnj j$j drm_deviceuh1hhj_hM~hjcubh pointer, or NULL}(hjchhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj_hM~hj`ubah}(h]h ]h"]h$]h&]uh1jhjDubeh}(h]h ]h"]h$]h&]uh1juhj_hM~hjAubjv)}(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&]uh1j{hZ/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&]uh1juhjhMhjAubjv)}(hB``const char *prefix`` debug output prefix, or NULL for no prefix h](j|)}(h``const char *prefix``h]j)}(hj߹h]hconst char *prefix}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjݹubah}(h]h ]h"]h$]h&]uh1j{hZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhMhjٹubj)}(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&]uh1jhjٹubeh}(h]h ]h"]h$]h&]uh1juhjhMhjAubeh}(h]h ]h"]h$]h&]uh1jphj%ubh)}(h **Return**h]j[)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjubah}(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 }(hj0hhhNhNubh)}(h:c:type:`drm_printer`h]j)}(hj:h]h drm_printer}(hj<hhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhj8ubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnj j$j drm_printeruh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhMhj0ubh object}(hj0hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjWhMhj%ubeh}(h]h ] kernelindentah"]h$]h&]uh1jPhjJhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jdrm_err_printer (C function)c.drm_err_printerhNtauh1jhjJhhhNhNubj)}(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 ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj reftypej% reftargetjmodnameN classnameNj j#)}j&]j%)}j%drm_err_printersbc.drm_err_printerasbuh1hhj~hhhjhMubj)}(h h]h }(hjºhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~hhhjhMubj)}(hdrm_err_printerh]j)}(hjh]hdrm_err_printer}(hjԺhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjкubah}(h]h ](jjeh"]h$]h&]jAjBuh1jhj~hhhjhMubj%)}(h,(struct drm_device *drm, const char *prefix)h](j%)}(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 ]j ah"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&] refdomainj reftypej% reftargetjmodnameN classnameNj j#)}j&]jc.drm_err_printerasbuh1hhjubj)}(h h]h }(hj+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj%)}(hj%h]h*}(hj9hhhNhNubah}(h]h ]j%ah"]h$]h&]uh1j%hjubj)}(hdrmh]hdrm}(hjFhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjAjBuh1j%hjubj%)}(hconst char *prefixh](j)}(hj:'h]hconst}(hj_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj[ubj)}(h h]h }(hjlhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj[ubj_%)}(hcharh]hchar}(hjzhhhNhNubah}(h]h ]jk%ah"]h$]h&]uh1j^%hj[ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj[ubj%)}(hj%h]h*}(hjhhhNhNubah}(h]h ]j%ah"]h$]h&]uh1j%hj[ubj)}(hprefixh]hprefix}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj[ubeh}(h]h ]h"]h$]h&]noemphjAjBuh1j%hjubeh}(h]h ]h"]h$]h&]jAjBuh1j%hj~hhhjhMubeh}(h]h ]h"]h$]h&]jAjBjuh1jjjhjzhhhjhMubah}(h]juah ](j!j"eh"]h$]h&]j&j')j(huh1jhjhMhjwhhubj*)}(hhh]h)}(h;construct a :c:type:`drm_printer` that outputs to drm_err()h](h construct a }(hjͻhhhNhNubh)}(h:c:type:`drm_printer`h]j)}(hj׻h]h drm_printer}(hjٻhhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjջubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnj j#)}j&]jc.drm_err_printerasbj drm_printeruh1hhjhKhjͻubh that outputs to drm_err()}(hjͻhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhMhjʻhhubah}(h]h ]h"]h$]h&]uh1j)hjwhhhjhMubeh}(h]h ](j functioneh"]h$]h&]jJj jKj jLj jMjNjOuh1jhhhjJhNhNubjQ)}(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]j[)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhMhjubjq)}(hhh](jv)}(hP``struct drm_device *drm`` the :c:type:`struct drm_device ` pointer h](j|)}(h``struct drm_device *drm``h]j)}(hj6h]hstruct drm_device *drm}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj4ubah}(h]h ]h"]h$]h&]uh1j{hZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhMhj0ubj)}(hhh]h)}(h4the :c:type:`struct drm_device ` pointerh](hthe }(hjOhhhNhNubh)}(h(:c:type:`struct drm_device `h]j)}(hjYh]hstruct drm_device}(hj[hhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjWubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnj j$j drm_deviceuh1hhjKhMhjOubh pointer}(hjOhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjKhMhjLubah}(h]h ]h"]h$]h&]uh1jhj0ubeh}(h]h ]h"]h$]h&]uh1juhjKhMhj-ubjv)}(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&]uh1j{hZ/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&]uh1juhjhMhj-ubeh}(h]h ]h"]h$]h&]uh1jphjubh)}(h **Return**h]j[)}(hjͼh]hReturn}(hjϼhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj˼ubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhMhjubh)}(h The :c:type:`drm_printer` objecth](hThe }(hjhhhNhNubh)}(h:c:type:`drm_printer`h]j)}(hjh]h drm_printer}(hjhhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnj j$j drm_printeruh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhMhjubh object}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj hMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jPhjJhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jdrm_line_printer (C function)c.drm_line_printerhNtauh1jhjJhhhNhNubj)}(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}(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1hhhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhMubj)}(h h]h }(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1hhhjBhMubh)}(hhh]j)}(h drm_printerh]h drm_printer}(hjThhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjQubah}(h]h ]h"]h$]h&] refdomainj reftypej% reftargetjVmodnameN classnameNj j#)}j&]j%)}j%drm_line_printersbc.drm_line_printerasbuh1hhj1hhhjBhMubj)}(h h]h }(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1hhhjBhMubj)}(hdrm_line_printerh]j)}(hjrh]hdrm_line_printer}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jAjBuh1jhj1hhhjBhMubj%)}(h@(struct drm_printer *p, const char *prefix, unsigned int series)h](j%)}(hstruct drm_printer *ph](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(h drm_printerh]h drm_printer}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj reftypej% reftargetj½modnameN classnameNj j#)}j&]jpc.drm_line_printerasbuh1hhjubj)}(h h]h }(hj޽hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj%)}(hj%h]h*}(hjhhhNhNubah}(h]h ]j%ah"]h$]h&]uh1j%hjubj)}(hj%h]hp}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjAjBuh1j%hjubj%)}(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 ]jk%ah"]h$]h&]uh1j^%hj ubj)}(h h]h }(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj%)}(hj%h]h*}(hjHhhhNhNubah}(h]h ]j%ah"]h$]h&]uh1j%hj ubj)}(hprefixh]hprefix}(hjUhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphjAjBuh1j%hjubj%)}(hunsigned int seriesh](j_%)}(hunsignedh]hunsigned}(hjnhhhNhNubah}(h]h ]jk%ah"]h$]h&]uh1j^%hjjubj)}(h h]h }(hj|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjubj_%)}(hinth]hint}(hjhhhNhNubah}(h]h ]jk%ah"]h$]h&]uh1j^%hjjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjubj)}(hseriesh]hseries}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjjubeh}(h]h ]h"]h$]h&]noemphjAjBuh1j%hjubeh}(h]h ]h"]h$]h&]jAjBuh1j%hj1hhhjBhMubeh}(h]h ]h"]h$]h&]jAjBjuh1jjjhj-hhhjBhMubah}(h]j(ah ](j!j"eh"]h$]h&]j&j')j(huh1jhjBhMhj*hhubj*)}(hhh]h)}(hIconstruct a :c:type:`drm_printer` that prefixes outputs with line numbersh](h construct a }(hjоhhhNhNubh)}(h:c:type:`drm_printer`h]j)}(hjھh]h drm_printer}(hjܾhhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjؾubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnj j#)}j&]jpc.drm_line_printerasbj drm_printeruh1hhjhKhjоubh( that prefixes outputs with line numbers}(hjоhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhMhj;hhubah}(h]h ]h"]h$]h&]uh1j)hj*hhhjBhMubeh}(h]h ](j functioneh"]h$]h&]jJj jKjjLjjMjNjOuh1jhhhjJhNhNubjQ)}(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]j[)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhMhjubjq)}(hhh](jv)}(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)}(hj9h]hstruct drm_printer *p}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7ubah}(h]h ]h"]h$]h&]uh1j{hZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhMhj3ubj)}(hhh]h)}(hRthe :c:type:`struct drm_printer ` which actually generates the outputh](hthe }(hjRhhhNhNubh)}(h*:c:type:`struct drm_printer `h]j)}(hj\h]hstruct drm_printer}(hj^hhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjZubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnj j$j drm_printeruh1hhjNhMhjRubh$ which actually generates the output}(hjRhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjNhMhjOubah}(h]h ]h"]h$]h&]uh1jhj3ubeh}(h]h ]h"]h$]h&]uh1juhjNhMhj0ubjv)}(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&]uh1j{hZ/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&]uh1juhjhMhj0ubjv)}(ha``unsigned int series`` optional unique series identifier, or 0 to omit identifier in the output h](j|)}(h``unsigned int series``h]j)}(hjοh]hunsigned int series}(hjпhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj̿ubah}(h]h ]h"]h$]h&]uh1j{hZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhMhjȿubj)}(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&]uh1jhjȿubeh}(h]h ]h"]h$]h&]uh1juhjhMhj0ubeh}(h]h ]h"]h$]h&]uh1jphjubh)}(h**Description**h]j[)}(hj h]h Description}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjubah}(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:}(hjLhhhNhNubah}(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}hj[sbah}(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:}(hjjhhhNhNubah}(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"); }}hjysbah}(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]j[)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhMhjubh)}(h The :c:type:`drm_printer` objecth](hThe }(hjhhhNhNubh)}(h:c:type:`drm_printer`h]j)}(hjh]h drm_printer}(hjhhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnj j$j 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&]uh1jPhjJhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jDRM_DEV_ERROR (C macro)c.DRM_DEV_ERRORhNtauh1jhjJhhhNhNubj)}(hhh](j)}(h DRM_DEV_ERRORh]j)}(h DRM_DEV_ERRORh]j)}(h DRM_DEV_ERRORh]j)}(hj h]h DRM_DEV_ERROR}(hjhhhNhNubah}(h]h ]j ah"]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&]jJj jKj@jLj@jMjNjOuh1jhhhjJhNhNubh)}(h!``DRM_DEV_ERROR (dev, fmt, ...)``h]j)}(hjFh]hDRM_DEV_ERROR (dev, fmt, ...)}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjDubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhMhjJhhubj")}(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.hhMhj\ubah}(h]h ]h"]h$]h&]uh1j"hjnhMhjJhhubjQ)}(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]j[)}(hj{h]h Parameters}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjyubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhMhjuubjq)}(hhh](jv)}(h``dev`` device pointer h](j|)}(h``dev``h]j)}(hjh]hdev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1j{hZ/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&]uh1juhjhMhjubjv)}(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&]uh1j{hZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhMhjubj)}(hhh]h)}(hprintf() like format string.h]hprintf() like format string.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1juhjhMhjubjv)}(h``...`` variable arguments h](j|)}(h``...``h]j)}(hj h]h...}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1j{hZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhMhjubj)}(hhh]h)}(hvariable argumentsh]hvariable arguments}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj!hMhj"ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1juhj!hMhjubeh}(h]h ]h"]h$]h&]uh1jphjuubh)}(h**NOTE**h]j[)}(hjGh]hNOTE}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjEubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhMhjuubh)}(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.hhMhjuubeh}(h]h ] kernelindentah"]h$]h&]uh1jPhjJhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j#DRM_DEV_ERROR_RATELIMITED (C macro)c.DRM_DEV_ERROR_RATELIMITEDhNtauh1jhjJhhhNhNubj)}(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 ]j ah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jAjBuh1jhjhhhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhMubah}(h]h ]h"]h$]h&]jAjBjuh1jjjhjhhhjhMubah}(h]jah ](j!j"eh"]h$]h&]j&j')j(huh1jhjhMhjhhubj*)}(hhh]h}(h]h ]h"]h$]h&]uh1j)hjhhhjhMubeh}(h]h ](j macroeh"]h$]h&]jJj jKjjLjjMjNjOuh1jhhhjJhNhNubh)}(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.hhMhjJhhubj")}(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"hjhMhjJhhubjQ)}(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]j[)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhMhjubjq)}(hhh](jv)}(h``dev`` device pointer h](j|)}(h``dev``h]j)}(hjh]hdev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1j{hZ/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&]uh1juhj+hMhj ubjv)}(h%``fmt`` printf() like format string. h](j|)}(h``fmt``h]j)}(hjOh]hfmt}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjMubah}(h]h ]h"]h$]h&]uh1j{hZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhMhjIubj)}(hhh]h)}(hprintf() like format string.h]hprintf() like format string.}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjdhMhjeubah}(h]h ]h"]h$]h&]uh1jhjIubeh}(h]h ]h"]h$]h&]uh1juhjdhMhj ubjv)}(h``...`` variable arguments h](j|)}(h``...``h]j)}(hjh]h...}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1j{hZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhMhjubj)}(hhh]h)}(hvariable argumentsh]hvariable arguments}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1juhjhMhj ubeh}(h]h ]h"]h$]h&]uh1jphjubh)}(h**NOTE**h]j[)}(hjh]hNOTE}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhMhjubh)}(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]j[)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjubah}(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&]uh1jPhjJhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jDRM_DEV_DEBUG (C macro)c.DRM_DEV_DEBUGhNtauh1jhjJhhhNhNubj)}(hhh](j)}(h DRM_DEV_DEBUGh]j)}(h DRM_DEV_DEBUGh]j)}(h DRM_DEV_DEBUGh]j)}(hj)h]h DRM_DEV_DEBUG}(hj3hhhNhNubah}(h]h ]j ah"]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'hhhjFhM.ubah}(h]j"ah ](j!j"eh"]h$]h&]j&j')j(huh1jhjFhM.hj$hhubj*)}(hhh]h}(h]h ]h"]h$]h&]uh1j)hj$hhhjFhM.ubeh}(h]h ](j macroeh"]h$]h&]jJj jKj_jLj_jMjNjOuh1jhhhjJhNhNubh)}(h!``DRM_DEV_DEBUG (dev, fmt, ...)``h]j)}(hjeh]hDRM_DEV_DEBUG (dev, fmt, ...)}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1jhjcubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhM0hjJhhubj")}(h"Debug output for generic drm code h]h)}(h!Debug output for generic drm codeh]h!Debug output for generic drm code}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhM'hj{ubah}(h]h ]h"]h$]h&]uh1j"hjhM'hjJhhubjQ)}(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]j[)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhM+hjubjq)}(hhh](jv)}(h``dev`` device pointer h](j|)}(h``dev``h]j)}(hjh]hdev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1j{hZ/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&]uh1juhjhM+hjubjv)}(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&]uh1j{hZ/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&]uh1juhjhM,hjubjv)}(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&]uh1j{hZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhM/hj%ubj)}(hhh]h)}(hvariable argumentsh]hvariable arguments}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj@hM/hjAubah}(h]h ]h"]h$]h&]uh1jhj%ubeh}(h]h ]h"]h$]h&]uh1juhj@hM/hjubeh}(h]h ]h"]h$]h&]uh1jphjubh)}(h**NOTE**h]j[)}(hjfh]hNOTE}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjdubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhM1hjubh)}(h.this is deprecated in favor of drm_dbg_core().h]h.this is deprecated in favor of drm_dbg_core().}(hj|hhhNhNubah}(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&]uh1jPhjJhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jDRM_DEV_DEBUG_DRIVER (C macro)c.DRM_DEV_DEBUG_DRIVERhNtauh1jhjJhhhNhNubj)}(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 ]j ah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jAjBuh1jhjhhhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhM8ubah}(h]h ]h"]h$]h&]jAjBjuh1jjjhjhhhjhM8ubah}(h]jah ](j!j"eh"]h$]h&]j&j')j(huh1jhjhM8hjhhubj*)}(hhh]h}(h]h ]h"]h$]h&]uh1j)hjhhhjhM8ubeh}(h]h ](j macroeh"]h$]h&]jJj jKjjLjjMjNjOuh1jhhhjJhNhNubh)}(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.hhM:hjJhhubj")}(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.hhM1hjubah}(h]h ]h"]h$]h&]uh1j"hj hM1hjJhhubjQ)}(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]j[)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhM5hjubjq)}(hhh](jv)}(h``dev`` device pointer h](j|)}(h``dev``h]j)}(hj5h]hdev}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3ubah}(h]h ]h"]h$]h&]uh1j{hZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhM5hj/ubj)}(hhh]h)}(hdevice pointerh]hdevice pointer}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjJhM5hjKubah}(h]h ]h"]h$]h&]uh1jhj/ubeh}(h]h ]h"]h$]h&]uh1juhjJhM5hj,ubjv)}(h%``fmt`` printf() like format string. h](j|)}(h``fmt``h]j)}(hjnh]hfmt}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jhjlubah}(h]h ]h"]h$]h&]uh1j{hZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhM6hjhubj)}(hhh]h)}(hprintf() like format string.h]hprintf() like format string.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM6hjubah}(h]h ]h"]h$]h&]uh1jhjhubeh}(h]h ]h"]h$]h&]uh1juhjhM6hj,ubjv)}(h``...`` variable arguments h](j|)}(h``...``h]j)}(hjh]h...}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1j{hZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhM9hjubj)}(hhh]h)}(hvariable argumentsh]hvariable arguments}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM9hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1juhjhM9hj,ubeh}(h]h ]h"]h$]h&]uh1jphjubh)}(h**NOTE**h]j[)}(hjh]hNOTE}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhM;hjubh)}(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.hhM3hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jPhjJhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jDRM_DEV_DEBUG_KMS (C macro)c.DRM_DEV_DEBUG_KMShNtauh1jhjJhhhNhNubj)}(hhh](j)}(hDRM_DEV_DEBUG_KMSh]j)}(hDRM_DEV_DEBUG_KMSh]j)}(hDRM_DEV_DEBUG_KMSh]j)}(hj!h]hDRM_DEV_DEBUG_KMS}(hj+hhhNhNubah}(h]h ]j ah"]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.hhMBubah}(h]h ]h"]h$]h&]jAjBjuh1jjjhjhhhj>hMBubah}(h]jah ](j!j"eh"]h$]h&]j&j')j(huh1jhj>hMBhjhhubj*)}(hhh]h}(h]h ]h"]h$]h&]uh1j)hjhhhj>hMBubeh}(h]h ](j macroeh"]h$]h&]jJj jKjWjLjWjMjNjOuh1jhhhjJhNhNubh)}(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&]uh1jhj[ubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhMDhjJhhubj")}(h"Debug output for modesetting code h]h)}(h!Debug output for modesetting codeh]h!Debug output for modesetting code}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhM;hjsubah}(h]h ]h"]h$]h&]uh1j"hjhM;hjJhhubjQ)}(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]j[)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhM?hjubjq)}(hhh](jv)}(h``dev`` device pointer h](j|)}(h``dev``h]j)}(hjh]hdev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1j{hZ/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&]uh1juhjhM?hjubjv)}(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&]uh1j{hZ/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&]uh1juhjhM@hjubjv)}(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&]uh1j{hZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhMChjubj)}(hhh]h)}(hvariable argumentsh]hvariable arguments}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj8hMChj9ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1juhj8hMChjubeh}(h]h ]h"]h$]h&]uh1jphjubh)}(h**NOTE**h]j[)}(hj^h]hNOTE}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj\ubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:164: ./include/drm/drm_print.hhMEhjubh)}(h-this is deprecated in favor of drm_dbg_kms().h]h-this is deprecated in favor of drm_dbg_kms().}(hjthhhNhNubah}(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&]uh1jPhjJhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jdrm_puts (C function) c.drm_putshNtauh1jhjJhhhNhNubj)}(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 ]jk%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_putsh]j)}(hdrm_putsh]hdrm_puts}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jAjBuh1jhjhhhjhMubj%)}(h((struct drm_printer *p, const char *str)h](j%)}(hstruct drm_printer *ph](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(h drm_printerh]h drm_printer}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj reftypej% reftargetjmodnameN classnameNj j#)}j&]j%)}j%jsb c.drm_putsasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj%)}(hj%h]h*}(hj,hhhNhNubah}(h]h ]j%ah"]h$]h&]uh1j%hjubj)}(hj%h]hp}(hj9hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjAjBuh1j%hjubj%)}(hconst char *strh](j)}(hj:'h]hconst}(hjQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMubj)}(h h]h }(hj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMubj_%)}(hcharh]hchar}(hjlhhhNhNubah}(h]h ]jk%ah"]h$]h&]uh1j^%hjMubj)}(h h]h }(hjzhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMubj%)}(hj%h]h*}(hjhhhNhNubah}(h]h ]j%ah"]h$]h&]uh1j%hjMubj)}(hstrh]hstr}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjMubeh}(h]h ]h"]h$]h&]noemphjAjBuh1j%hjubeh}(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)}(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$]3h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnj j#)}j&]j c.drm_putsasbj drm_printeruh1hhjhMhjubh 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)hjhhhjhMubeh}(h]h ](j functioneh"]h$]h&]jJj jKjjLjjMjNjOuh1jhhhjJhNhNubjQ)}(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]j[)}(hj h]h Parameters}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjubah}(h]h ]h"]h$]h&]uh1hh^/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:167: ./drivers/gpu/drm/drm_print.chMhjubjq)}(hhh](jv)}(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&]uh1j{h^/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 }(hjAhhhNhNubh)}(h :c:type:`drm`h]j)}(hjKh]hdrm}(hjMhhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjIubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnj j$jdrmuh1hhj=hKhjAubh printer}(hjAhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj=hKhj>ubah}(h]h ]h"]h$]h&]uh1jhj"ubeh}(h]h ]h"]h$]h&]uh1juhj=hKhjubjv)}(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&]uh1j{h^/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:167: ./drivers/gpu/drm/drm_print.chKhj~ubj)}(hhh]h)}(h const stringh]h const string}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhj~ubeh}(h]h ]h"]h$]h&]uh1juhjhKhjubeh}(h]h ]h"]h$]h&]uh1jphjubh)}(h**Description**h]j[)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjubah}(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 refexplicitrefwarnj j$j 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&]uh1jPhjJhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jdrm_printf (C function) c.drm_printfhNtauh1jhjJhhhNhNubj)}(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 ]jk%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 }(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj#hhhj5hMubj)}(h drm_printfh]j)}(h drm_printfh]h drm_printf}(hjHhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjDubah}(h]h ](jjeh"]h$]h&]jAjBuh1jhj#hhhj5hMubj%)}(h+(struct drm_printer *p, const char *f, ...)h](j%)}(hstruct drm_printer *ph](j)}(hjh]hstruct}(hjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`ubj)}(h h]h }(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`ubh)}(hhh]j)}(h drm_printerh]h drm_printer}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj reftypej% reftargetjmodnameN classnameNj j#)}j&]j%)}j%jJsb c.drm_printfasbuh1hhj`ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`ubj%)}(hj%h]h*}(hjhhhNhNubah}(h]h ]j%ah"]h$]h&]uh1j%hj`ubj)}(hj%h]hp}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj`ubeh}(h]h ]h"]h$]h&]noemphjAjBuh1j%hj\ubj%)}(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 ]jk%ah"]h$]h&]uh1j^%hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj%)}(hj%h]h*}(hj hhhNhNubah}(h]h ]j%ah"]h$]h&]uh1j%hjubj)}(hjh]hf}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjAjBuh1j%hj\ubj%)}(h...h]j%)}(h...h]h...}(hj1hhhNhNubah}(h]h ]j%ah"]h$]h&]uh1j%hj-ubah}(h]h ]h"]h$]h&]noemphjAjBuh1j%hj\ubeh}(h]h ]h"]h$]h&]jAjBuh1j%hj#hhhj5hMubeh}(h]h ]h"]h$]h&]jAjBjuh1jjjhjhhhj5hMubah}(h]jah ](j!j"eh"]h$]h&]j&j')j(huh1jhj5hMhjhhubj*)}(hhh]h)}(h'print to a :c:type:`drm_printer` streamh](h print to a }(hj[hhhNhNubh)}(h:c:type:`drm_printer`h]j)}(hjeh]h drm_printer}(hjghhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjcubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnj j#)}j&]j c.drm_printfasbj drm_printeruh1hhjhMhj[ubh stream}(hj[hhhNhNubeh}(h]h ]h"]h$]h&]uh1hh^/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:167: ./drivers/gpu/drm/drm_print.chMhjXhhubah}(h]h ]h"]h$]h&]uh1j)hjhhhj5hMubeh}(h]h ](j functioneh"]h$]h&]jJj jKjjLjjMjNjOuh1jhhhjJhNhNubjQ)}(h**Parameters** ``struct drm_printer *p`` the :c:type:`drm_printer` ``const char *f`` format string ``...`` variable argumentsh](h)}(h**Parameters**h]j[)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjubah}(h]h ]h"]h$]h&]uh1hh^/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:167: ./drivers/gpu/drm/drm_print.chMhjubjq)}(hhh](jv)}(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&]uh1j{h^/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:167: ./drivers/gpu/drm/drm_print.chMhjubj)}(hhh]h)}(hthe :c:type:`drm_printer`h](hthe }(hjhhhNhNubh)}(h:c:type:`drm_printer`h]j)}(hjh]h drm_printer}(hjhhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnj j$j drm_printeruh1hhjhMhjubeh}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1juhjhMhjubjv)}(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&]uh1j{h^/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:167: ./drivers/gpu/drm/drm_print.chMhjubj)}(hhh]h)}(h format stringh]h format string}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj1hMhj2ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1juhj1hMhjubjv)}(h``...`` variable argumentsh](j|)}(h``...``h]j)}(hjUh]h...}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjSubah}(h]h ]h"]h$]h&]uh1j{h^/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:167: ./drivers/gpu/drm/drm_print.chMhjOubj)}(hhh]h)}(hvariable argumentsh]hvariable arguments}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1hh^/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:167: ./drivers/gpu/drm/drm_print.chMhjkubah}(h]h ]h"]h$]h&]uh1jhjOubeh}(h]h ]h"]h$]h&]uh1juhjjhMhjubeh}(h]h ]h"]h$]h&]uh1jphjubeh}(h]h ] kernelindentah"]h$]h&]uh1jPhjJhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jdrm_print_bits (C function)c.drm_print_bitshNtauh1jhjJhhhNhNubj)}(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 ]jk%ah"]h$]h&]uh1j^%hjhhh^/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:167: ./drivers/gpu/drm/drm_print.chM&ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhM&ubj)}(hdrm_print_bitsh]j)}(hdrm_print_bitsh]hdrm_print_bits}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jAjBuh1jhjhhhjhM&ubj%)}(hZ(struct drm_printer *p, unsigned long value, const char *const bits[], unsigned int nbits)h](j%)}(hstruct drm_printer *ph](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(h drm_printerh]h drm_printer}(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj reftypej% reftargetj modnameN classnameNj j#)}j&]j%)}j%jsbc.drm_print_bitsasbuh1hhjubj)}(h h]h }(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj%)}(hj%h]h*}(hj8hhhNhNubah}(h]h ]j%ah"]h$]h&]uh1j%hjubj)}(hj%h]hp}(hjEhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjAjBuh1j%hjubj%)}(hunsigned long valueh](j_%)}(hunsignedh]hunsigned}(hj]hhhNhNubah}(h]h ]jk%ah"]h$]h&]uh1j^%hjYubj)}(h h]h }(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubj_%)}(hlongh]hlong}(hjyhhhNhNubah}(h]h ]jk%ah"]h$]h&]uh1j^%hjYubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubj)}(hvalueh]hvalue}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjYubeh}(h]h ]h"]h$]h&]noemphjAjBuh1j%hjubj%)}(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 ]jk%ah"]h$]h&]uh1j^%hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj%)}(hj%h]h*}(hjhhhNhNubah}(h]h ]j%ah"]h$]h&]uh1j%hjubj)}(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 ]j ah"]h$]h&]uh1jhjubj%)}(h[h]h[}(hjhhhNhNubah}(h]h ]j%ah"]h$]h&]uh1j%hjubj%)}(h]h]h]}(hj)hhhNhNubah}(h]h ]j%ah"]h$]h&]uh1j%hjubeh}(h]h ]h"]h$]h&]noemphjAjBuh1j%hjubj%)}(hunsigned int nbitsh](j_%)}(hunsignedh]hunsigned}(hjBhhhNhNubah}(h]h ]jk%ah"]h$]h&]uh1j^%hj>ubj)}(h h]h }(hjPhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>ubj_%)}(hinth]hint}(hj^hhhNhNubah}(h]h ]jk%ah"]h$]h&]uh1j^%hj>ubj)}(h h]h }(hjlhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>ubj)}(hnbitsh]hnbits}(hjzhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj>ubeh}(h]h ]h"]h$]h&]noemphjAjBuh1j%hjubeh}(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,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 refexplicitrefwarnj j#)}j&]j&c.drm_print_bitsasbj drm_printeruh1hhjhMhjubh 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)hjhhhjhM&ubeh}(h]h ](j functioneh"]h$]h&]jJj jKjjLjjMjNjOuh1jhhhjJhNhNubjQ)}(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]j[)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjubah}(h]h ]h"]h$]h&]uh1hh^/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:167: ./drivers/gpu/drm/drm_print.chM!hjubjq)}(hhh](jv)}(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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1j{h^/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)}(hj0h]h drm_printer}(hj2hhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhj.ubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnj j$j drm_printeruh1hhj"hM!hj&ubeh}(h]h ]h"]h$]h&]uh1hhj"hM!hj#ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1juhj"hM!hjubjv)}(h%``unsigned long value`` field value. h](j|)}(h``unsigned long value``h]j)}(hjeh]hunsigned long value}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1jhjcubah}(h]h ]h"]h$]h&]uh1j{h^/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&]uh1hhjzhM"hj{ubah}(h]h ]h"]h$]h&]uh1jhj_ubeh}(h]h ]h"]h$]h&]uh1juhjzhM"hjubjv)}(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&]uh1j{h^/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&]uh1juhjhM#hjubjv)}(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&]uh1j{h^/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&]uh1juhjhM$hjubeh}(h]h ]h"]h$]h&]uh1jphjubh)}(h**Description**h]j[)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjubah}(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&]uh1jPhjJhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jdrm_print_regset32 (C function)c.drm_print_regset32hNtauh1jhjJhhhNhNubj)}(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}(hjWhhhNhNubah}(h]h ]jk%ah"]h$]h&]uh1j^%hjShhh^/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:167: ./drivers/gpu/drm/drm_print.chMzubj)}(h h]h }(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjShhhjehMzubj)}(hdrm_print_regset32h]j)}(hdrm_print_regset32h]hdrm_print_regset32}(hjxhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjtubah}(h]h ](jjeh"]h$]h&]jAjBuh1jhjShhhjehMzubj%)}(h8(struct drm_printer *p, struct debugfs_regset32 *regset)h](j%)}(hstruct drm_printer *ph](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(h drm_printerh]h drm_printer}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj reftypej% reftargetjmodnameN classnameNj j#)}j&]j%)}j%jzsbc.drm_print_regset32asbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj%)}(hj%h]h*}(hjhhhNhNubah}(h]h ]j%ah"]h$]h&]uh1j%hjubj)}(hj%h]hp}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjAjBuh1j%hjubj%)}(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 ]j ah"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&] refdomainj reftypej% reftargetj%modnameN classnameNj j#)}j&]jc.drm_print_regset32asbuh1hhjubj)}(h h]h }(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj%)}(hj%h]h*}(hjOhhhNhNubah}(h]h ]j%ah"]h$]h&]uh1j%hjubj)}(hregseth]hregset}(hj\hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjAjBuh1j%hjubeh}(h]h ]h"]h$]h&]jAjBuh1j%hjShhhjehMzubeh}(h]h ]h"]h$]h&]jAjBjuh1jjjhjOhhhjehMzubah}(h]jJah ](j!j"eh"]h$]h&]j&j')j(huh1jhjehMzhjLhhubj*)}(hhh]h)}(hBprint the contents of registers to a :c:type:`drm_printer` stream.h](h%print the contents of registers to a }(hjhhhNhNubh)}(h:c:type:`drm_printer`h]j)}(hjh]h drm_printer}(hjhhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnj j#)}j&]jc.drm_print_regset32asbj drm_printeruh1hhjhMhjubh stream.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh^/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:167: ./drivers/gpu/drm/drm_print.chMohjhhubah}(h]h ]h"]h$]h&]uh1j)hjLhhhjehMzubeh}(h]h ](j functioneh"]h$]h&]jJj jKjjLjjMjNjOuh1jhhhjJhNhNubjQ)}(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]j[)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjubah}(h]h ]h"]h$]h&]uh1hh^/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:167: ./drivers/gpu/drm/drm_print.chMshjubjq)}(hhh](jv)}(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&]uh1j{h^/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:167: ./drivers/gpu/drm/drm_print.chMrhjubj)}(hhh]h)}(hthe :c:type:`drm` printerh](hthe }(hjhhhNhNubh)}(h :c:type:`drm`h]j)}(hjh]hdrm}(hjhhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnj j$jdrmuh1hhjhMrhjubh printer}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMrhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1juhjhMrhjubjv)}(hD``struct debugfs_regset32 *regset`` the list of registers to print. h](j|)}(h#``struct debugfs_regset32 *regset``h]j)}(hjKh]hstruct debugfs_regset32 *regset}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjIubah}(h]h ]h"]h$]h&]uh1j{h^/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:167: ./drivers/gpu/drm/drm_print.chMshjEubj)}(hhh]h)}(hthe list of registers to print.h]hthe list of registers to print.}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj`hMshjaubah}(h]h ]h"]h$]h&]uh1jhjEubeh}(h]h ]h"]h$]h&]uh1juhj`hMshjubeh}(h]h ]h"]h$]h&]uh1jphjubh)}(h**Description**h]j[)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjubah}(h]h ]h"]h$]h&]uh1hh^/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:167: ./drivers/gpu/drm/drm_print.chMuhjubh)}(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&]uh1jPhjJhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jdrm_print_hex_dump (C function)c.drm_print_hex_dumphNtauh1jhjJhhhNhNubj)}(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 ]jk%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 ]j ah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jAjBuh1jhjhhhjhMubj%)}(hF(struct drm_printer *p, const char *prefix, const u8 *buf, size_t len)h](j%)}(hstruct drm_printer *ph](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(h drm_printerh]h drm_printer}(hj&hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj#ubah}(h]h ]h"]h$]h&] refdomainj reftypej% reftargetj(modnameN classnameNj j#)}j&]j%)}j%jsbc.drm_print_hex_dumpasbuh1hhjubj)}(h h]h }(hjFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj%)}(hj%h]h*}(hjThhhNhNubah}(h]h ]j%ah"]h$]h&]uh1j%hjubj)}(hj%h]hp}(hjahhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjAjBuh1j%hjubj%)}(hconst char *prefixh](j)}(hj:'h]hconst}(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuubj_%)}(hcharh]hchar}(hjhhhNhNubah}(h]h ]jk%ah"]h$]h&]uh1j^%hjuubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuubj%)}(hj%h]h*}(hjhhhNhNubah}(h]h ]j%ah"]h$]h&]uh1j%hjuubj)}(hprefixh]hprefix}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjuubeh}(h]h ]h"]h$]h&]noemphjAjBuh1j%hjubj%)}(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 ]j ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj reftypej% reftargetjmodnameN classnameNj j#)}j&]jBc.drm_print_hex_dumpasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj%)}(hj%h]h*}(hj hhhNhNubah}(h]h ]j%ah"]h$]h&]uh1j%hjubj)}(hbufh]hbuf}(hj-hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjAjBuh1j%hjubj%)}(h size_t lenh](h)}(hhh]j)}(hsize_th]hsize_t}(hjIhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjFubah}(h]h ]h"]h$]h&] refdomainj reftypej% reftargetjKmodnameN classnameNj j#)}j&]jBc.drm_print_hex_dumpasbuh1hhjBubj)}(h h]h }(hjghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBubj)}(hlenh]hlen}(hjuhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjBubeh}(h]h ]h"]h$]h&]noemphjAjBuh1j%hjubeh}(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 refexplicitrefwarnj j#)}j&]jBc.drm_print_hex_dumpasbj drm_printeruh1hhjhMhjubh 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&]jJj jKjjLjjMjNjOuh1jhhhjJhNhNubjQ)}(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]j[)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjubah}(h]h ]h"]h$]h&]uh1hh^/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:167: ./drivers/gpu/drm/drm_print.chMhjubjq)}(hhh](jv)}(h4``struct drm_printer *p`` The :c:type:`drm_printer` h](j|)}(h``struct drm_printer *p``h]j)}(hjh]hstruct drm_printer *p}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1j{h^/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:167: ./drivers/gpu/drm/drm_print.chMhjubj)}(hhh]h)}(hThe :c:type:`drm_printer`h](hThe }(hj!hhhNhNubh)}(h:c:type:`drm_printer`h]j)}(hj+h]h drm_printer}(hj-hhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhj)ubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnj j$j drm_printeruh1hhjhMhj!ubeh}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1juhjhMhjubjv)}(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}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj^ubah}(h]h ]h"]h$]h&]uh1j{h^/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:167: ./drivers/gpu/drm/drm_print.chMhjZubj)}(hhh]h)}(h/Prefix for each line, may be NULL for no prefixh]h/Prefix for each line, may be NULL for no prefix}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjuhMhjvubah}(h]h ]h"]h$]h&]uh1jhjZubeh}(h]h ]h"]h$]h&]uh1juhjuhMhjubjv)}(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&]uh1j{h^/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&]uh1juhjhMhjubjv)}(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&]uh1j{h^/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&]uh1juhjhMhjubeh}(h]h ]h"]h$]h&]uh1jphjubh)}(h**Description**h]j[)}(hj h]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj ubah}(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 refexplicitrefwarnj j$j 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&]uh1hhjJhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jPhjJhhhNhNubeh}(h]printerah ]h"]printerah$]h&]uh1hhj9hhhhhKubh)}(hhh](h)}(h Utilitiesh]h Utilities}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1hhjdhhhhhKubh)}(hJMacros and inline functions that does not naturally belong in other placesh]hJMacros and inline functions that does not naturally belong in other places}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:173: ./include/drm/drm_util.hhKhjdhhubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jdrm_can_sleep (C function)c.drm_can_sleephNtauh1jhjdhhhNhNubj)}(hhh](j)}(hbool drm_can_sleep (void)h]j)}(hbool drm_can_sleep(void)h](j_%)}(hjb%h]hbool}(hjhhhNhNubah}(h]h ]jk%ah"]h$]h&]uh1j^%hjhhhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:176: ./include/drm/drm_util.hhK>ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhK>ubj)}(h drm_can_sleeph]j)}(h drm_can_sleeph]h drm_can_sleep}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jAjBuh1jhjhhhjhK>ubj%)}(h(void)h]j%)}(hvoidh]j_%)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jk%ah"]h$]h&]uh1j^%hjubah}(h]h ]h"]h$]h&]noemphjAjBuh1j%hjubah}(h]h ]h"]h$]h&]jAjBuh1j%hjhhhjhK>ubeh}(h]h ]h"]h$]h&]jAjBjuh1jjjhjhhhjhK>ubah}(h]jah ](j!j"eh"]h$]h&]j&j')j(huh1jhjhK>hjhhubj*)}(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)hjhhhjhK>ubeh}(h]h ](j functioneh"]h$]h&]jJj jKjjLjjMjNjOuh1jhhhjdhNhNubjQ)}(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]j[)}(hj%h]h Parameters}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj#ubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:176: ./include/drm/drm_util.hhK8hjubjq)}(hhh]jv)}(h``void`` no arguments h](j|)}(h``void``h]j)}(hjDh]hvoid}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjBubah}(h]h ]h"]h$]h&]uh1j{hY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:176: ./include/drm/drm_util.hhK;hj>ubj)}(hhh]h)}(h no argumentsh]h no arguments}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjYhK;hjZubah}(h]h ]h"]h$]h&]uh1jhj>ubeh}(h]h ]h"]h$]h&]uh1juhjYhK;hj;ubah}(h]h ]h"]h$]h&]uh1jphjubh)}(h**Description**h]j[)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj}ubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/gpu/drm-internals:176: ./include/drm/drm_util.hhK=hjubh)}(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]j[)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjubah}(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&]uh1jPhjdhhhNhNubeh}(h] utilitiesah ]h"] utilitiesah$]h&]uh1hhj9hhhhhKubeh}(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.}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjhhubh)}(hhh](h)}(hHow to run the tests?h]hHow to run the tests?}(hj2hhhNhNubah}(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}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj@ubh. It can be used by }(hj@hhhNhNubj)}(h ``kunit.py``h]hkunit.py}(hjZhhhNhNubah}(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}hjrsbah}(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.}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjhhubh)}(hhh](h)}(hLegacy Suspend/Resumeh]hLegacy Suspend/Resume}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj0hhhhhKubh)}(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.}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj0hhubh)}(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 }(hjOhhhNhNubj;)}(h*only*h]honly}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1j;hjOubh 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 }(hjOhhhNhNubh)}(h.:c:type:`struct device_driver `h]j)}(hjkh]hstruct device_driver}(hjmhhhNhNubah}(h]h ](j j c-typeeh"]h$]h&]uh1jhjiubah}(h]h ]h"]h$]h&]refdocj refdomainj reftypetype refexplicitrefwarnj j$j device_driveruh1hhhhKhjOubh+ dev_pm_ops) and set these methods to NULL.}(hjOhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhKhj0hhubeh}(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}jWa]jLaasnameids}(jjj6aj3ajjjjjjj\jYjDjDjjjoFjlFjFjFj@Fj=FjgFjdFj.aj+aj6j3j*jWaj)j&jjjaj^jjjj jjjjjjjjjjjju nametypes}(jj6ajjjj\jDjjoFjFj@FjgFj.aj6j*j)jjajjjjjjjjuh}(jhj3ahjjjjjjjYjjDj_jjjjjjyj~jjjjj"j"jQ%jV%j&j&j)j)j{,j,j-j.j/j/j1j1j3j3j4j4jF7jK7j:j:j;j;jk=jp=jP@jU@j"Cj'CjlFjDjFjDj=FjFjdFjCFj+ajrFj%Gj*GjJj!JjLjLjOjOj4Rj9Rj7Tj