id
stringlengths
4
63
text
stringlengths
153
8.81M
pm_generic_complete(9)
NAME pm_generic_complete - Generic routine completing a device power transition. SYNOPSIS void pm_generic_complete (struct device *dev ); ARGUMENTS dev Device to handle. DESCRIPTION Complete a device power transition during a system-wide power transition. SEE ALSO Kernel file ./drivers/base/power/generi...
pm_generic_freeze(9)
NAME pm_generic_freeze - Generic freeze callback for subsystems. SYNOPSIS int pm_generic_freeze (struct device *dev ); ARGUMENTS dev Device to freeze. SEE ALSO Kernel file ./drivers/base/power/generic_ops.c pm_generic_runtime_suspend(9), pm_generic_runtime_resume(9), pm_generic_prepare(9), ...
pm_generic_freeze_noirq(9)
NAME pm_generic_freeze_noirq - Generic freeze_noirq callback for subsystems. SYNOPSIS int pm_generic_freeze_noirq (struct device *dev ); ARGUMENTS dev Device to freeze. SEE ALSO Kernel file ./drivers/base/power/generic_ops.c pm_generic_runtime_suspend(9), pm_generic_runtime_resume(9), pm_generic_prep...
pm_generic_poweroff(9)
NAME pm_generic_poweroff - Generic poweroff callback for subsystems. SYNOPSIS int pm_generic_poweroff (struct device *dev ); ARGUMENTS dev Device to handle. SEE ALSO Kernel file ./drivers/base/power/generic_ops.c pm_generic_runtime_suspend(9), pm_generic_runtime_resume(9), pm_generic_prepare(9), pm_...
pm_generic_poweroff_late(9)
NAME pm_generic_poweroff_late - Generic poweroff_late callback for subsystems. SYNOPSIS int pm_generic_poweroff_late (struct device *dev ); ARGUMENTS dev Device to handle. SEE ALSO Kernel file ./drivers/base/power/generic_ops.c pm_generic_runtime_suspend(9), pm_generic_runtime_resume(9), pm_generic_p...
pm_generic_poweroff_noirq(9)
NAME pm_generic_poweroff_noirq - Generic poweroff_noirq callback for subsystems. SYNOPSIS int pm_generic_poweroff_noirq (struct device *dev ); ARGUMENTS dev Device to handle. SEE ALSO Kernel file ./drivers/base/power/generic_ops.c pm_generic_runtime_suspend(9), pm_generic_runtime_resume(9), pm_generi...
pm_generic_prepare(9)
NAME pm_generic_prepare - Generic routine preparing a device for power transition. SYNOPSIS int pm_generic_prepare (struct device *dev ); ARGUMENTS dev Device to prepare. DESCRIPTION Prepare a device for a system-wide power transition. SEE ALSO Kernel file ./drivers/base/power/generic_ops.c pm_generic_ru...
pm_generic_restore(9)
NAME pm_generic_restore - Generic restore callback for subsystems. SYNOPSIS int pm_generic_restore (struct device *dev ); ARGUMENTS dev Device to restore. SEE ALSO Kernel file ./drivers/base/power/generic_ops.c pm_generic_runtime_suspend(9), pm_generic_runtime_resume(9), pm_generic_prepare(9...
pm_generic_restore_early(9)
NAME pm_generic_restore_early - Generic restore_early callback for subsystems. SYNOPSIS int pm_generic_restore_early (struct device *dev ); ARGUMENTS dev Device to resume. SEE ALSO Kernel file ./drivers/base/power/generic_ops.c pm_generic_runtime_suspend(9), pm_generic_runtime_resume(9), pm_generic_p...
pm_generic_restore_noirq(9)
NAME pm_generic_restore_noirq - Generic restore_noirq callback for subsystems. SYNOPSIS int pm_generic_restore_noirq (struct device *dev ); ARGUMENTS dev Device to restore. SEE ALSO Kernel file ./drivers/base/power/generic_ops.c pm_generic_runtime_suspend(9), pm_generic_runtime_resume(9), pm...
pm_generic_resume(9)
NAME pm_generic_resume - Generic resume callback for subsystems. SYNOPSIS int pm_generic_resume (struct device *dev ); ARGUMENTS dev Device to resume. SEE ALSO Kernel file ./drivers/base/power/generic_ops.c pm_generic_runtime_suspend(9), pm_generic_runtime_resume(9), pm_generic_prepare(9), pm_generi...
pm_generic_resume_early(9)
NAME pm_generic_resume_early - Generic resume_early callback for subsystems. SYNOPSIS int pm_generic_resume_early (struct device *dev ); ARGUMENTS dev Device to resume. SEE ALSO Kernel file ./drivers/base/power/generic_ops.c pm_generic_runtime_suspend(9), pm_generic_runtime_resume(9), pm_generic_prep...
pm_generic_resume_noirq(9)
NAME pm_generic_resume_noirq - Generic resume_noirq callback for subsystems. SYNOPSIS int pm_generic_resume_noirq (struct device *dev ); ARGUMENTS dev Device to resume. SEE ALSO Kernel file ./drivers/base/power/generic_ops.c pm_generic_runtime_suspend(9), pm_generic_runtime_resume(9), pm_gen...
pm_generic_runtime_resume(9)
NAME pm_generic_runtime_resume - Generic runtime resume callback for subsystems. SYNOPSIS int pm_generic_runtime_resume (struct device *dev ); ARGUMENTS dev Device to resume. DESCRIPTION If PM operations are defined for the dev's driver and they include ->runtime_resume, execute it and return its error code....
pm_generic_runtime_suspend(9)
NAME pm_generic_runtime_suspend - Generic runtime suspend callback for subsystems. SYNOPSIS int pm_generic_runtime_suspend (struct device *dev ); ARGUMENTS dev Device to suspend. DESCRIPTION If PM operations are defined for the dev's driver and they include ->runtime_suspend, execute it and return its error ...
pm_generic_suspend(9)
NAME pm_generic_suspend - Generic suspend callback for subsystems. SYNOPSIS int pm_generic_suspend (struct device *dev ); ARGUMENTS dev Device to suspend. SEE ALSO Kernel file ./drivers/base/power/generic_ops.c pm_generic_runtime_suspend(9), pm_generic_runtime_resume(9), pm_generic_prepare(9), pm_gener...
pm_generic_suspend_late(9)
NAME pm_generic_suspend_late - Generic suspend_late callback for subsystems. SYNOPSIS int pm_generic_suspend_late (struct device *dev ); ARGUMENTS dev Device to suspend. SEE ALSO Kernel file ./drivers/base/power/generic_ops.c pm_generic_runtime_suspend(9), pm_generic_runtime_resume(9), pm_generic_pre...
pm_generic_suspend_noirq(9)
NAME pm_generic_suspend_noirq - Generic suspend_noirq callback for subsystems. SYNOPSIS int pm_generic_suspend_noirq (struct device *dev ); ARGUMENTS dev Device to suspend. SEE ALSO Kernel file ./drivers/base/power/generic_ops.c pm_generic_runtime_suspend(9), pm_generic_runtime_resume(9), pm_generic...
pm_generic_thaw(9)
NAME pm_generic_thaw - Generic thaw callback for subsystems. SYNOPSIS int pm_generic_thaw (struct device *dev ); ARGUMENTS dev Device to thaw. SEE ALSO Kernel file ./drivers/base/power/generic_ops.c pm_generic_runtime_suspend(9), pm_generic_runtime_resume(9), pm_generic_prepare(9), pm_generic_suspen...
pm_generic_thaw_noirq(9)
NAME pm_generic_thaw_noirq - Generic thaw_noirq callback for subsystems. SYNOPSIS int pm_generic_thaw_noirq (struct device *dev ); ARGUMENTS dev Device to thaw. SEE ALSO Kernel file ./drivers/base/power/generic_ops.c pm_generic_runtime_suspend(9), pm_generic_runtime_resume(9), pm_generic_prepare(9), ...
pm_genpd_add_device(9)
NAME pm_genpd_add_device - Add a device to an I/O PM domain. SYNOPSIS int pm_genpd_add_device (struct generic_pm_domain *genpd , struct device *dev ); ARGUMENTS genpd PM domain to add the device to. dev Device to be added. SEE ALSO Kernel file ./drivers/pmdomain/core.c dev_pm_genpd_set_perform...
pm_genpd_add_subdomain(9)
NAME pm_genpd_add_subdomain - Add a subdomain to an I/O PM domain. SYNOPSIS int pm_genpd_add_subdomain (struct generic_pm_domain *genpd , struct generic_pm_domain *subdomain ); ARGUMENTS genpd Leader PM domain to add the subdomain to. subdomain Subdomain to be added. SEE ALSO Kernel file ./drivers/p...
pm_genpd_inc_rejected(9)
NAME pm_genpd_inc_rejected - Adjust the rejected/usage counts for an idle-state. SYNOPSIS void pm_genpd_inc_rejected (struct generic_pm_domain *genpd , unsigned int state_idx ); ARGUMENTS genpd The PM domain the idle-state belongs to. state_idx The index of the idle-state that failed. DESCRIPTION In ...
pm_genpd_init(9)
NAME pm_genpd_init - Initialize a generic I/O PM domain object. SYNOPSIS int pm_genpd_init (struct generic_pm_domain *genpd , struct dev_power_governor *gov , bool is_off ); ARGUMENTS genpd PM domain object to initialize. gov PM domain governor to associate with the domain (may be NULL). ...
pm_genpd_remove(9)
NAME pm_genpd_remove - Remove a generic I/O PM domain SYNOPSIS int pm_genpd_remove (struct generic_pm_domain *genpd ); ARGUMENTS genpd Pointer to PM domain that is to be removed. DESCRIPTION To remove the PM domain, this function: - Removes the PM domain as a subdomain to any parent domains, if it was added. ...
pm_genpd_remove_device(9)
NAME pm_genpd_remove_device - Remove a device from an I/O PM domain. SYNOPSIS int pm_genpd_remove_device (struct device *dev ); ARGUMENTS dev Device to be removed. SEE ALSO Kernel file ./drivers/pmdomain/core.c dev_pm_genpd_set_performance_state(9), dev_pm_genpd_set_next_wakeup(9), dev_pm_genpd_get_next_hrt...
pm_genpd_remove_subdomain(9)
NAME pm_genpd_remove_subdomain - Remove a subdomain from an I/O PM domain. SYNOPSIS int pm_genpd_remove_subdomain (struct generic_pm_domain *genpd , struct generic_pm_domain *subdomain ); ARGUMENTS genpd Leader PM domain to remove the subdomain from. subdomain Subdomain to be removed. SEE ALSO Kernel...
pm_get_wakeup_count(9)
NAME pm_get_wakeup_count - Read the number of registered wakeup events. SYNOPSIS bool pm_get_wakeup_count (unsigned int *count , bool block ); ARGUMENTS count Address to store the value at. block Whether or not to block. DESCRIPTION Store the number of registered wakeup events at the address in c...
pm_hibernate_is_recovering(9)
NAME pm_hibernate_is_recovering - if recovering from hibernate due to error. SYNOPSIS bool pm_hibernate_is_recovering (void ); ARGUMENTS void no arguments DESCRIPTION Used to query if dev_pm_ops.thaw is called for normal hibernation case or recovering from some error. RETURN true for error case, false for no...
pm_hibernation_mode_is_suspend(9)
NAME pm_hibernation_mode_is_suspend - Check if hibernation has been set to suspend SYNOPSIS bool pm_hibernation_mode_is_suspend (void ); ARGUMENTS void no arguments SEE ALSO Kernel file ./kernel/power/hibernate.c hibernation_set_ops(9), platform_begin(9), platform_end(9), platform_pre_snapshot(9), platfor...
pm_late_early_op(9)
NAME pm_late_early_op - Return the PM operation appropriate for given PM event. SYNOPSIS pm_callback_t pm_late_early_op (const struct dev_pm_ops *ops , pm_message_t state ); ARGUMENTS ops PM operations to choose from. state PM transition of the system being carried out. DESCRIPTION Runtime PM i...
pm_noirq_op(9)
NAME pm_noirq_op - Return the PM operation appropriate for given PM event. SYNOPSIS pm_callback_t pm_noirq_op (const struct dev_pm_ops *ops , pm_message_t state ); ARGUMENTS ops PM operations to choose from. state PM transition of the system being carried out. DESCRIPTION The driver of dev will...
pm_num_pages(9)
NAME pm_num_pages - calculate the number of pages of the payload memory SYNOPSIS unsigned int pm_num_pages (unsigned int mem_size , unsigned int pg_size ); ARGUMENTS mem_size the size of the payload memory pg_size the size of each payload memory page DESCRIPTION Calculate the number of pages, each of ...
pm_op(9)
NAME pm_op - Return the PM operation appropriate for given PM event. SYNOPSIS pm_callback_t pm_op (const struct dev_pm_ops *ops , pm_message_t state ); ARGUMENTS ops PM operations to choose from. state PM transition of the system being carried out. SEE ALSO Kernel file ./drivers/base/power/ma...
pm_pr_dbg(9)
NAME pm_pr_dbg - print pm sleep debug messages SYNOPSIS pm_pr_dbg (fmt , ... ); ARGUMENTS fmt -- undescribed -- ... variable arguments DESCRIPTION If pm_debug_messages_on is enabled and the system is entering/leaving suspend, print message. If pm_debug_messages_on is disabled and CONFIG_DYN...
pm_qos_enable_show(9)
NAME pm_qos_enable_show - sysfs handler to show pm qos enable value SYNOPSIS ssize_t pm_qos_enable_show (struct device *dev , struct device_attribute *attr , char *buf ); ARGUMENTS dev device associated with the UFS controller attr sysfs attribute handle buf buffer for sysfs fil...
pm_qos_enable_store(9)
NAME pm_qos_enable_store - sysfs handler to store value SYNOPSIS ssize_t pm_qos_enable_store (struct device *dev , struct device_attribute *attr , const char *buf , size_t count ); ARGUMENTS dev device associated with the UFS controller attr sysfs attribute handle buf buffer for...
pm_qos_flags_remove_req(9)
NAME pm_qos_flags_remove_req - Remove device PM QoS flags request. SYNOPSIS void pm_qos_flags_remove_req (struct pm_qos_flags *pqf , struct pm_qos_flags_request *req ); ARGUMENTS pqf Device PM QoS flags set to remove the request from. req Request to remove from the set. SEE ALSO Kernel file ...
pm_qos_read_value(9)
NAME pm_qos_read_value - Return the current effective constraint value. SYNOPSIS s32 pm_qos_read_value (struct pm_qos_constraints *c ); ARGUMENTS c List of PM QoS constraint requests. SEE ALSO Kernel file ./kernel/power/qos.c pm_qos_update_target(9), pm_qos_flags_remove_req(9), pm_qos_update_flags(9...
pm_qos_update_flags(9)
NAME pm_qos_update_flags - Update a set of PM QoS flags. SYNOPSIS bool pm_qos_update_flags (struct pm_qos_flags *pqf , struct pm_qos_flags_request *req , enum pm_qos_req_action action , s32 val ); ARGUMENTS pqf Set of PM QoS flags to update. req Request to add to the set, to modify, or to remo...
pm_qos_update_target(9)
NAME pm_qos_update_target - Update a list of PM QoS constraint requests. SYNOPSIS int pm_qos_update_target (struct pm_qos_constraints *c , struct plist_node *node , enum pm_qos_req_action action , int value ); ARGUMENTS c List of PM QoS requests. node Target list entry. action Ac...
pm_relax(9)
NAME pm_relax - Notify the PM core that processing of a wakeup event has ended. SYNOPSIS void pm_relax (struct device *dev ); ARGUMENTS dev Device that signaled the event. DESCRIPTION Execute __pm_relax for the dev's wakeup source object. SEE ALSO Kernel file ./drivers/base/power/wakeup.c wakeup_...
pm_request_autosuspend(9)
NAME pm_request_autosuspend - Update the last access time and queue up autosuspend of a device. SYNOPSIS int pm_request_autosuspend (struct device *dev ); ARGUMENTS dev Target device. DESCRIPTION Update the last access time of a device and queue up a work item to run an equivalent pm_runtime_autosuspend for ...
pm_request_idle(9)
NAME pm_request_idle - Queue up "idle check" execution for a device. SYNOPSIS int pm_request_idle (struct device *dev ); ARGUMENTS dev Target device. DESCRIPTION Queue up a work item to run an equivalent of pm_runtime_idle for dev asynchronously. RETURN * 0: Success. * -EINVAL: Runtime PM error. *...
pm_request_resume(9)
NAME pm_request_resume - Queue up runtime-resume of a device. SYNOPSIS int pm_request_resume (struct device *dev ); ARGUMENTS dev Target device. SEE ALSO Kernel file ./include/linux/pm_runtime.h pm_suspend_ignore_children(9), pm_runtime_get_noresume(9), pm_runtime_put_noidle(9), pm_runtime_suspended(9), pm...
pm_resume_via_firmware(9)
NAME pm_resume_via_firmware - Check if platform firmware has woken up the system. SYNOPSIS bool pm_resume_via_firmware (void ); ARGUMENTS void no arguments DESCRIPTION To be called during system-wide power management transitions from sleep states. Return 'true' if the platform firmware has passed control t...
pm_runtime_active(9)
NAME pm_runtime_active - Check whether or not a device is runtime-active. SYNOPSIS bool pm_runtime_active (struct device *dev ); ARGUMENTS dev Target device. DESCRIPTION Return true if runtime PM is disabled for dev or its runtime PM status is RPM_ACTIVE, or false otherwise. Note that the return value of ...
pm_runtime_allow(9)
NAME pm_runtime_allow - Unblock runtime PM of a device. SYNOPSIS void pm_runtime_allow (struct device *dev ); ARGUMENTS dev Device to handle. DESCRIPTION Unblock runtime suspend of dev after it has been blocked by pm_runtime_forbid (for instance, if it has been blocked via the /sys/devices/.../power/contro...
pm_runtime_autosuspend(9)
NAME pm_runtime_autosuspend - Update the last access time and set up autosuspend of a device. SYNOPSIS int pm_runtime_autosuspend (struct device *dev ); ARGUMENTS dev Target device. DESCRIPTION First update the last access time, then set up autosuspend of dev or suspend it (depending on whether or not autosu...
pm_runtime_barrier(9)
NAME pm_runtime_barrier - Flush pending requests and wait for completions. SYNOPSIS void pm_runtime_barrier (struct device *dev ); ARGUMENTS dev Device to handle. DESCRIPTION Prevent the device from being suspended by incrementing its usage counter and if there's a pending resume request for the device, ...
pm_runtime_blocked(9)
NAME pm_runtime_blocked - Check if runtime PM enabling is blocked. SYNOPSIS bool pm_runtime_blocked (struct device *dev ); ARGUMENTS dev Target device. DESCRIPTION Do not call this function outside system suspend/resume code paths. SEE ALSO Kernel file ./include/linux/pm_runtime.h pm_suspend_ignore_childr...
pm_runtime_cancel_pending(9)
NAME pm_runtime_cancel_pending - Deactivate suspend timer and cancel requests. SYNOPSIS void pm_runtime_cancel_pending (struct device *dev ); ARGUMENTS dev Device to handle. SEE ALSO Kernel file ./drivers/base/power/runtime.c update_pm_runtime_accounting(9), pm_runtime_deactivate_timer(9), rpm_check_suspe...
pm_runtime_deactivate_timer(9)
NAME pm_runtime_deactivate_timer - Deactivate given device's suspend timer. SYNOPSIS void pm_runtime_deactivate_timer (struct device *dev ); ARGUMENTS dev Device to handle. SEE ALSO Kernel file ./drivers/base/power/runtime.c update_pm_runtime_accounting(9), pm_runtime_cancel_pending(9), rpm_check_suspen...
pm_runtime_disable(9)
NAME pm_runtime_disable - Disable runtime PM for a device. SYNOPSIS void pm_runtime_disable (struct device *dev ); ARGUMENTS dev Target device. DESCRIPTION Prevent the runtime PM framework from working with dev by incrementing its "disable" counter. If the counter is zero when this function runs and there ...
pm_runtime_dont_use_autosuspend(9)
NAME pm_runtime_dont_use_autosuspend - Prevent autosuspend from being used. SYNOPSIS void pm_runtime_dont_use_autosuspend (struct device *dev ); ARGUMENTS dev Target device. DESCRIPTION Prevent the runtime PM autosuspend mechanism from being used for dev which means that "autosuspend" will be handled as dire...
pm_runtime_drop_link(9)
NAME pm_runtime_drop_link - Prepare for device link removal. SYNOPSIS void pm_runtime_drop_link (struct device_link *link ); ARGUMENTS link Device link going away. DESCRIPTION Drop the link count of the consumer end of link and decrement the supplier device's runtime PM usage counter as many times as needed t...
pm_runtime_enable(9)
NAME pm_runtime_enable - Enable runtime PM of a device. SYNOPSIS void pm_runtime_enable (struct device *dev ); ARGUMENTS dev Device to handle. SEE ALSO Kernel file ./drivers/base/power/runtime.c update_pm_runtime_accounting(9), pm_runtime_deactivate_timer(9), pm_runtime_cancel_pending(9), rpm_check_suspen...
pm_runtime_enabled(9)
NAME pm_runtime_enabled - Check if runtime PM is enabled. SYNOPSIS bool pm_runtime_enabled (struct device *dev ); ARGUMENTS dev Target device. DESCRIPTION Return true if runtime PM is enabled for dev or false otherwise. Note that the return value of this function can only be trusted if it is called under...
pm_runtime_forbid(9)
NAME pm_runtime_forbid - Block runtime PM of a device. SYNOPSIS void pm_runtime_forbid (struct device *dev ); ARGUMENTS dev Device to handle. DESCRIPTION Resume dev if already suspended and block runtime suspend of dev in such a way that it can be unblocked via the /sys/devices/.../power/control interface,...
pm_runtime_force_resume(9)
NAME pm_runtime_force_resume - Force a device into resume state if needed. SYNOPSIS int pm_runtime_force_resume (struct device *dev ); ARGUMENTS dev Device to resume. DESCRIPTION This function expects that either pm_runtime_force_suspend has put the device into a low-power state prior to calling it, or the d...
pm_runtime_force_suspend(9)
NAME pm_runtime_force_suspend - Force a device into suspend state if needed. SYNOPSIS int pm_runtime_force_suspend (struct device *dev ); ARGUMENTS dev Device to suspend. DESCRIPTION Disable runtime PM so we safely can check the device's runtime PM status and if it is active, invoke its ->runtime_suspend ca...
pm_runtime_get(9)
NAME pm_runtime_get - Bump up usage counter and queue up resume of a device. SYNOPSIS int pm_runtime_get (struct device *dev ); ARGUMENTS dev Target device. DESCRIPTION Bump up the runtime PM usage counter of dev and queue up a work item to carry out runtime-resume of it. SEE ALSO Kernel file ./include/li...
pm_runtime_get_conditional(9)
NAME pm_runtime_get_conditional - Conditionally bump up device usage counter. SYNOPSIS int pm_runtime_get_conditional (struct device *dev , bool ign_usage_count ); ARGUMENTS dev Device to handle. ign_usage_count Whether or not to look at the current usage counter value. DESCRIPTION...
pm_runtime_get_if_active(9)
NAME pm_runtime_get_if_active - Bump up runtime PM usage counter if the device is in active state SYNOPSIS int pm_runtime_get_if_active (struct device *dev ); ARGUMENTS dev Target device. DESCRIPTION Increment the runtime PM usage counter of dev if its runtime PM status is RPM_ACTIVE, in which case it return...
pm_runtime_get_if_in_use(9)
NAME pm_runtime_get_if_in_use - Conditionally bump up runtime PM usage counter. SYNOPSIS int pm_runtime_get_if_in_use (struct device *dev ); ARGUMENTS dev Target device. DESCRIPTION Increment the runtime PM usage counter of dev if its runtime PM status is RPM_ACTIVE and its runtime PM usage counter is great...
pm_runtime_get_noresume(9)
NAME pm_runtime_get_noresume - Bump up runtime PM usage counter of a device. SYNOPSIS void pm_runtime_get_noresume (struct device *dev ); ARGUMENTS dev Target device. SEE ALSO Kernel file ./include/linux/pm_runtime.h pm_suspend_ignore_children(9), pm_runtime_put_noidle(9), pm_runtime_suspended(9), ...
pm_runtime_get_suppliers(9)
NAME pm_runtime_get_suppliers - Resume and reference-count supplier devices. SYNOPSIS void pm_runtime_get_suppliers (struct device *dev ); ARGUMENTS dev Consumer device. SEE ALSO Kernel file ./drivers/base/power/runtime.c update_pm_runtime_accounting(9), pm_runtime_deactivate_timer(9), pm_runtime_cancel_p...
pm_runtime_get_sync(9)
NAME pm_runtime_get_sync - Bump up usage counter of a device and resume it. SYNOPSIS int pm_runtime_get_sync (struct device *dev ); ARGUMENTS dev Target device. DESCRIPTION Bump up the runtime PM usage counter of dev and carry out runtime-resume of it synchronously. The possible return values of this funct...
pm_runtime_has_no_callbacks(9)
NAME pm_runtime_has_no_callbacks - Check if runtime PM callbacks may be present. SYNOPSIS bool pm_runtime_has_no_callbacks (struct device *dev ); ARGUMENTS dev Target device. DESCRIPTION Return true if dev is a special device without runtime PM callbacks or false otherwise. SEE ALSO Kernel file ./include/...
pm_runtime_idle(9)
NAME pm_runtime_idle - Conditionally set up autosuspend of a device or suspend it. SYNOPSIS int pm_runtime_idle (struct device *dev ); ARGUMENTS dev Target device. DESCRIPTION Invoke the "idle check" callback of dev and, depending on its return value, set up autosuspend of dev or suspend it (depending on whe...
pm_runtime_init(9)
NAME pm_runtime_init - Initialize runtime PM fields in given device object. SYNOPSIS void pm_runtime_init (struct device *dev ); ARGUMENTS dev Device object to initialize. SEE ALSO Kernel file ./drivers/base/power/runtime.c update_pm_runtime_accounting(9), pm_runtime_deactivate_timer(9), pm_runtime_cancel...
pm_runtime_irq_safe(9)
NAME pm_runtime_irq_safe - Leave interrupts disabled during callbacks. SYNOPSIS void pm_runtime_irq_safe (struct device *dev ); ARGUMENTS dev Device to handle DESCRIPTION Set the power.irq_safe flag, which tells the PM core that the ->runtime_suspend and ->runtime_resume callbacks for this device should al...
pm_runtime_is_irq_safe(9)
NAME pm_runtime_is_irq_safe - Check if runtime PM can work in interrupt context. SYNOPSIS bool pm_runtime_is_irq_safe (struct device *dev ); ARGUMENTS dev Target device. DESCRIPTION Return true if dev has been marked as an "IRQ-safe" device (with respect to runtime PM), in which case its runtime PM callabcks...
pm_runtime_mark_last_busy(9)
NAME pm_runtime_mark_last_busy - Update the last access time of a device. SYNOPSIS void pm_runtime_mark_last_busy (struct device *dev ); ARGUMENTS dev Target device. DESCRIPTION Update the last access time of dev used by the runtime PM autosuspend mechanism to the current time as returned by ktime_get_mono_f...
pm_runtime_no_callbacks(9)
NAME pm_runtime_no_callbacks - Ignore runtime PM callbacks for a device. SYNOPSIS void pm_runtime_no_callbacks (struct device *dev ); ARGUMENTS dev Device to handle. DESCRIPTION Set the power.no_callbacks flag, which tells the PM core that this device is power-managed through its parent and has no runtime PM...
pm_runtime_put(9)
NAME pm_runtime_put - Drop device usage counter and queue up "idle check" if 0. SYNOPSIS void pm_runtime_put (struct device *dev ); ARGUMENTS dev Target device. DESCRIPTION Decrement the runtime PM usage counter of dev and if it turns out to be equal to 0, queue up a work item for dev like in pm_request_idle...
pm_runtime_put_autosuspend(9)
NAME pm_runtime_put_autosuspend - Update the last access time of a device, drop its usage counter and queue autosuspend if the usage counter becomes 0. SYNOPSIS int pm_runtime_put_autosuspend (struct device *dev ); ARGUMENTS dev Target device. DESCRIPTION Update the last access time of dev, decrement runtime...
pm_runtime_put_noidle(9)
NAME pm_runtime_put_noidle - Drop runtime PM usage counter of a device. SYNOPSIS void pm_runtime_put_noidle (struct device *dev ); ARGUMENTS dev Target device. DESCRIPTION Decrement the runtime PM usage counter of dev unless it is 0 already. SEE ALSO Kernel file ./include/linux/pm_runtime.h pm_suspend...
pm_runtime_put_suppliers(9)
NAME pm_runtime_put_suppliers - Drop references to supplier devices. SYNOPSIS void pm_runtime_put_suppliers (struct device *dev ); ARGUMENTS dev Consumer device. SEE ALSO Kernel file ./drivers/base/power/runtime.c update_pm_runtime_accounting(9), pm_runtime_deactivate_timer(9), pm_runtime_cancel_pending(9...
pm_runtime_put_sync(9)
NAME pm_runtime_put_sync - Drop device usage counter and run "idle check" if 0. SYNOPSIS int pm_runtime_put_sync (struct device *dev ); ARGUMENTS dev Target device. DESCRIPTION Decrement the runtime PM usage counter of dev and if it turns out to be equal to 0, invoke the "idle check" callback of dev and, dep...
pm_runtime_put_sync_autosuspend(9)
NAME pm_runtime_put_sync_autosuspend - Update the last access time of a device, drop device usage counter and autosuspend if 0. SYNOPSIS int pm_runtime_put_sync_autosuspend (struct device *dev ); ARGUMENTS dev Target device. DESCRIPTION Update the last access time of dev, decrement the runtime PM usage co...
pm_runtime_put_sync_suspend(9)
NAME pm_runtime_put_sync_suspend - Drop device usage counter and suspend if 0. SYNOPSIS int pm_runtime_put_sync_suspend (struct device *dev ); ARGUMENTS dev Target device. DESCRIPTION Decrement the runtime PM usage counter of dev and if it turns out to be equal to 0, carry out runtime-suspend of dev synchron...
pm_runtime_reinit(9)
NAME pm_runtime_reinit - Re-initialize runtime PM fields in given device object. SYNOPSIS void pm_runtime_reinit (struct device *dev ); ARGUMENTS dev Device object to re-initialize. SEE ALSO Kernel file ./drivers/base/power/runtime.c update_pm_runtime_accounting(9), pm_runtime_deactivate_timer(9), pm_runtim...
pm_runtime_release_supplier(9)
NAME pm_runtime_release_supplier - Drop references to device link's supplier. SYNOPSIS void pm_runtime_release_supplier (struct device_link *link ); ARGUMENTS link Target device link. DESCRIPTION Drop all runtime PM references associated with link to its supplier device. SEE ALSO Kernel file ./drivers/base...
pm_runtime_remove(9)
NAME pm_runtime_remove - Prepare for removing a device from device hierarchy. SYNOPSIS void pm_runtime_remove (struct device *dev ); ARGUMENTS dev Device object being removed from device hierarchy. SEE ALSO Kernel file ./drivers/base/power/runtime.c update_pm_runtime_accounting(9), pm_runtime_deactivate_t...
pm_runtime_resume(9)
NAME pm_runtime_resume - Resume a device synchronously. SYNOPSIS int pm_runtime_resume (struct device *dev ); ARGUMENTS dev Target device. SEE ALSO Kernel file ./include/linux/pm_runtime.h pm_suspend_ignore_children(9), pm_runtime_get_noresume(9), pm_runtime_put_noidle(9), pm_runtime_suspended(9), pm_runtim...
pm_runtime_resume_and_get(9)
NAME pm_runtime_resume_and_get - Bump up usage counter of a device and resume it. SYNOPSIS int pm_runtime_resume_and_get (struct device *dev ); ARGUMENTS dev Target device. DESCRIPTION Resume dev synchronously and if that is successful, increment its runtime PM usage counter. Return 0 if the runtime PM usage...
pm_runtime_set_active(9)
NAME pm_runtime_set_active - Set runtime PM status to "active". SYNOPSIS int pm_runtime_set_active (struct device *dev ); ARGUMENTS dev Target device. DESCRIPTION Set the runtime PM status of dev to RPM_ACTIVE and ensure that dependencies of it will be taken into account. It is not valid to call this functi...
pm_runtime_set_autosuspend_delay(9)
NAME pm_runtime_set_autosuspend_delay - Set a device's autosuspend_delay value. SYNOPSIS void pm_runtime_set_autosuspend_delay (struct device *dev , int delay ); ARGUMENTS dev Device to handle. delay Value of the new delay in milliseconds. DESCRIPTION Set the device's power.autosuspend_delay va...
pm_runtime_set_suspended(9)
NAME pm_runtime_set_suspended - Set runtime PM status to "suspended". SYNOPSIS int pm_runtime_set_suspended (struct device *dev ); ARGUMENTS dev Target device. DESCRIPTION Set the runtime PM status of dev to RPM_SUSPENDED and ensure that dependencies of it will be taken into account. It is not valid to call...
pm_runtime_status_suspended(9)
NAME pm_runtime_status_suspended - Check if runtime PM status is "suspended". SYNOPSIS bool pm_runtime_status_suspended (struct device *dev ); ARGUMENTS dev Target device. DESCRIPTION Return true if the runtime PM status of dev is RPM_SUSPENDED, or false otherwise, regardless of whether or not runtime PM has...
pm_runtime_suspend(9)
NAME pm_runtime_suspend - Suspend a device synchronously. SYNOPSIS int pm_runtime_suspend (struct device *dev ); ARGUMENTS dev Target device. RETURN * 1: Success; device was already suspended. * 0: Success. * -EINVAL: Runtime PM error. * -EACCES: Runtime PM disabled. * -EAGAIN: Runtime PM usage counter ...
pm_runtime_suspended(9)
NAME pm_runtime_suspended - Check whether or not a device is runtime-suspended. SYNOPSIS bool pm_runtime_suspended (struct device *dev ); ARGUMENTS dev Target device. DESCRIPTION Return true if runtime PM is enabled for dev and its runtime PM status is RPM_SUSPENDED, or false otherwise. Note that the ret...
pm_runtime_use_autosuspend(9)
NAME pm_runtime_use_autosuspend - Allow autosuspend to be used for a device. SYNOPSIS void pm_runtime_use_autosuspend (struct device *dev ); ARGUMENTS dev Target device. DESCRIPTION Allow the runtime PM autosuspend mechanism to be used for dev whenever requested (or "autosuspend" will be handled as direct ru...
pm_runtime_work(9)
NAME pm_runtime_work - Universal runtime PM work function. SYNOPSIS void pm_runtime_work (struct work_struct *work ); ARGUMENTS work Work structure used for scheduling the execution of this function. DESCRIPTION Use work to get the device object the work is to be done for, determine what is to be done and exe...
pm_save_wakeup_count(9)
NAME pm_save_wakeup_count - Save the current number of registered wakeup events. SYNOPSIS bool pm_save_wakeup_count (unsigned int count ); ARGUMENTS count Value to compare with the current number of registered wakeup events. DESCRIPTION If count is equal to the current number of registered wakeup events an...
pm_schedule_suspend(9)
NAME pm_schedule_suspend - Set up a timer to submit a suspend request in future. SYNOPSIS int pm_schedule_suspend (struct device *dev , unsigned int delay ); ARGUMENTS dev Device to suspend. delay Time to wait before submitting a suspend request, in milliseconds. SEE ALSO Kernel file ./driver...
pm_sleep_fs_sync(9)
NAME pm_sleep_fs_sync - Sync file systems in an interruptible way SYNOPSIS int pm_sleep_fs_sync (void ); ARGUMENTS void no arguments RETURN 0 on successful file system sync, or -EBUSY if the file system sync was aborted. SEE ALSO Kernel file ./kernel/power/main.c April 2026 ...
pm_stay_awake(9)
NAME pm_stay_awake - Notify the PM core that a wakeup event is being processed. SYNOPSIS void pm_stay_awake (struct device *dev ); ARGUMENTS dev Device the wakeup event is related to. DESCRIPTION Notify the PM core of a wakeup event (signaled by dev) by calling __pm_stay_awake for the dev's wakeup source ob...
pm_suspend(9)
NAME pm_suspend - Externally visible function for suspending the system. SYNOPSIS int pm_suspend (suspend_state_t state ); ARGUMENTS state System sleep state to enter. DESCRIPTION Check if the value of state represents one of the supported states, execute enter_state and update system suspend statistics. SEE ...