id
stringlengths
4
63
text
stringlengths
153
8.81M
device_for_each_child(9)
NAME device_for_each_child - device child iterator. SYNOPSIS int device_for_each_child (struct device *parent , void *data , device_iter_t fn ); ARGUMENTS parent parent struct device. data data for the callback. fn function to be called for each device. DESCRIPTION Iterate over p...
device_for_each_child_reverse(9)
NAME device_for_each_child_reverse - device child iterator in reversed order. SYNOPSIS int device_for_each_child_reverse (struct device *parent , void *data , device_iter_t fn ); ARGUMENTS parent parent struct device. data data for the callback. fn function to be called for each d...
device_for_each_child_reverse_from(9)
NAME device_for_each_child_reverse_from - device child iterator in reversed order. SYNOPSIS int device_for_each_child_reverse_from (struct device *parent , struct device *from , void *data , device_iter_t fn ); ARGUMENTS parent parent struct device. from optional starting point in child list ...
device_get_devnode(9)
NAME device_get_devnode - path of device node file SYNOPSIS const char * device_get_devnode (const struct device *dev , umode_t *mode , kuid_t *uid , kgid_t *gid , const char **tmp ); ARGUMENTS dev device mode returned file access mode uid returned file owner gid ...
device_get_ethdev_address(9)
NAME device_get_ethdev_address - Set netdev's MAC address from a given device SYNOPSIS int device_get_ethdev_address (struct device *dev , struct net_device *netdev ); ARGUMENTS dev Pointer to the device netdev Pointer to netdev to write the address to DESCRIPTION Wrapper around device_get_mac_a...
device_get_mac_address(9)
NAME device_get_mac_address - Get the MAC for a given device SYNOPSIS int device_get_mac_address (struct device *dev , char *addr ); ARGUMENTS dev Pointer to the device addr Address of buffer to store the MAC in SEE ALSO Kernel file ./net/ethernet/eth.c eth_header(9), eth_get_headlen(9...
device_get_named_child_node(9)
NAME device_get_named_child_node - Return first matching named child node handle SYNOPSIS struct fwnode_handle * device_get_named_child_node (const struct device *dev , const char *childname ); ARGUMENTS dev Device to find the named child node for. childname String to match child node name against. ...
device_get_next_child_node(9)
NAME device_get_next_child_node - Return the next child node handle for a device SYNOPSIS struct fwnode_handle * device_get_next_child_node (const struct device *dev , struct fwnode_handle *child ); ARGUMENTS dev Device to find the next child node for. child Handle to one of the device's child n...
device_get_phy_mode(9)
NAME device_get_phy_mode - Get phy mode for given device SYNOPSIS int device_get_phy_mode (struct device *dev ); ARGUMENTS dev Pointer to the given device DESCRIPTION The function gets phy interface string from property 'phy-mode' or error case. SEE ALSO Kernel file ./drivers/base/property.c device_prope...
device_handle_show(9)
NAME device_handle_show - SysFS callback for device handle display SYNOPSIS ssize_t device_handle_show (struct device *dev , struct device_attribute *attr , char *buf ); ARGUMENTS dev class device attr Device attributes buf Buffer to copy RETURN sysfs_emit return after copying ...
device_has_driver_override(9)
NAME device_has_driver_override - Check if a driver override has been set. SYNOPSIS bool device_has_driver_override (struct device *dev ); ARGUMENTS dev device to check DESCRIPTION Returns true if a driver override has been set for this device. SEE ALSO Kernel file ./include/linux/device.h struct subsys...
device_init_wakeup(9)
NAME device_init_wakeup - Device wakeup initialization. SYNOPSIS int device_init_wakeup (struct device *dev , bool enable ); ARGUMENTS dev Device to handle. enable Whether or not to enable dev as a wakeup device. DESCRIPTION By default, most devices should leave wakeup disabled. The exceptions ...
device_initialize(9)
NAME device_initialize - init device structure. SYNOPSIS void device_initialize (struct device *dev ); ARGUMENTS dev device. DESCRIPTION This prepares the device for use by other layers by initializing its fields. It is the first half of device_register, if called by that function, though it can also be c...
device_iommu_capable(9)
NAME device_iommu_capable - check for a general IOMMU capability SYNOPSIS bool device_iommu_capable (struct device *dev , enum iommu_cap cap ); ARGUMENTS dev device to which the capability would be relevant, if available cap IOMMU capability RETURN true if an IOMMU is present and supports the...
device_iommu_mapped(9)
NAME device_iommu_mapped - Returns true when the device DMA is translated by an IOMMU SYNOPSIS bool device_iommu_mapped (struct device *dev ); ARGUMENTS dev Device to perform the check on SEE ALSO Kernel file ./include/linux/device.h struct subsys_interface(9), struct device_attribute(9), struct dev_...
device_is_big_endian(9)
NAME device_is_big_endian - check if a device has BE registers SYNOPSIS bool device_is_big_endian (const struct device *dev ); ARGUMENTS dev Pointer to the struct device RETURN true if the device has a "big-endian" property, or if the kernel was compiled for BE *and* the device has a "native-endian" property...
device_is_bound(9)
NAME device_is_bound - Check if device is bound to a driver SYNOPSIS bool device_is_bound (struct device *dev ); ARGUMENTS dev device to check DESCRIPTION Returns true if passed device has already finished probing successfully against a driver. This function must be called with the device lock held. SEE AL...
device_is_compatible(9)
NAME device_is_compatible - match 'compatible' property of the device with a given string SYNOPSIS bool device_is_compatible (const struct device *dev , const char *compat ); ARGUMENTS dev Pointer to the struct device compat The string to match 'compatible' property with RETURN true if matches, ...
device_is_dependent(9)
NAME device_is_dependent - Check if one device depends on another one SYNOPSIS int device_is_dependent (struct device *dev , void *target ); ARGUMENTS dev Device to check dependencies for. target Device to check against. DESCRIPTION Check if target depends on dev or any device dependent on it (i...
device_link_add(9)
NAME device_link_add - Create a link between two devices. SYNOPSIS struct device_link * device_link_add (struct device *consumer , struct device *supplier , u32 flags ); ARGUMENTS consumer Consumer end of the link. supplier Supplier end of the link. flags Link flags. RETURN On success, a ...
device_link_del(9)
NAME device_link_del - Delete a stateless link between two devices. SYNOPSIS void device_link_del (struct device_link *link ); ARGUMENTS link Device link to delete. DESCRIPTION The caller must ensure proper synchronization of this function with runtime PM. If the link was added multiple times, it needs to b...
device_link_remove(9)
NAME device_link_remove - Delete a stateless link between two devices. SYNOPSIS void device_link_remove (void *consumer , struct device *supplier ); ARGUMENTS consumer Consumer end of the link. supplier Supplier end of the link. DESCRIPTION The caller must ensure proper synchronization of this function...
device_link_wait_removal(9)
NAME device_link_wait_removal - Wait for ongoing devlink removal jobs to terminate SYNOPSIS void device_link_wait_removal (void ); ARGUMENTS void no arguments SEE ALSO Kernel file ./drivers/base/core.c __fwnode_link_add(9), __fwnode_link_del(9), __fwnode_link_cycle(9), fwnode_links_purge_suppliers(9), f...
device_links_busy(9)
NAME device_links_busy - Check if there are any busy links to consumers. SYNOPSIS bool device_links_busy (struct device *dev ); ARGUMENTS dev Device to check. DESCRIPTION Check each consumer of the device and return 'true' if its link's status is one of "consumer probe" or "active" (meaning that the given c...
device_links_check_suppliers(9)
NAME device_links_check_suppliers - Check presence of supplier drivers. SYNOPSIS int device_links_check_suppliers (struct device *dev ); ARGUMENTS dev Consumer device. DESCRIPTION Check links from this device to any suppliers. Walk the list of the device's links to suppliers and see if all of them are avail...
device_links_driver_bound(9)
NAME device_links_driver_bound - Update device links after probing its driver. SYNOPSIS void device_links_driver_bound (struct device *dev ); ARGUMENTS dev Device to update the links for. DESCRIPTION The probe has been successful, so update links from this device to any consumers by changing their status to ...
device_links_driver_cleanup(9)
NAME device_links_driver_cleanup - Update links after driver removal. SYNOPSIS void device_links_driver_cleanup (struct device *dev ); ARGUMENTS dev Device whose driver has just gone away. DESCRIPTION Update links to consumers for dev by changing their status to "dormant" and invoke __device_links_no_driver ...
device_links_flush_sync_list(9)
NAME device_links_flush_sync_list - Call sync_state() on a list of devices SYNOPSIS void device_links_flush_sync_list (struct list_head *list , struct device *dont_lock_dev ); ARGUMENTS list List of devices to call sync_state on dont_lock_dev Device for which lock is already held by ...
device_links_force_bind(9)
NAME device_links_force_bind - Prepares device to be force bound SYNOPSIS void device_links_force_bind (struct device *dev ); ARGUMENTS dev Consumer device. DESCRIPTION device_bind_driver force binds a device to a driver without calling any driver probe functions. So the consumer really isn't going to wai...
device_links_no_driver(9)
NAME device_links_no_driver - Update links after failing driver probe. SYNOPSIS void device_links_no_driver (struct device *dev ); ARGUMENTS dev Device whose driver has just failed to probe. DESCRIPTION Clean up leftover links to consumers for dev and invoke __device_links_no_driver to update links to suppli...
device_links_purge(9)
NAME device_links_purge - Delete existing links to other devices. SYNOPSIS void device_links_purge (struct device *dev ); ARGUMENTS dev Target device. SEE ALSO Kernel file ./drivers/base/core.c __fwnode_link_add(9), __fwnode_link_del(9), __fwnode_link_cycle(9), fwnode_links_purge_suppliers(9), fwnode_l...
device_links_unbind_consumers(9)
NAME device_links_unbind_consumers - Force unbind consumers of the given device. SYNOPSIS void device_links_unbind_consumers (struct device *dev ); ARGUMENTS dev Device to unbind the consumers of. DESCRIPTION Walk the list of links to consumers for dev and if any of them is in the "consumer probe" state, wai...
device_lock_reset_class(9)
NAME device_lock_reset_class - Return a device to the default lockdep novalidate state SYNOPSIS device_lock_reset_class (dev ); ARGUMENTS dev device to modify DESCRIPTION This must be called with the device_lock already held, for example from driver ->remove. SEE ALSO Kernel file ./include/linux/device.h ...
device_lock_set_class(9)
NAME device_lock_set_class - Specify a temporary lock class while a device is attached to a driver SYNOPSIS device_lock_set_class (dev , key ); ARGUMENTS dev device to modify key lock class key data DESCRIPTION This must be called with the device_lock already held, for example from driver ->p...
device_match_driver_override(9)
NAME device_match_driver_override - Match a driver against the device's driver_override. SYNOPSIS int device_match_driver_override (struct device *dev , const struct device_driver *drv ); ARGUMENTS dev device to check drv driver to match against DESCRIPTION Returns > 0 if a driver override is...
device_move(9)
NAME device_move - moves a device to a new parent SYNOPSIS int device_move (struct device *dev , struct device *new_parent , enum dpm_order dpm_order ); ARGUMENTS dev the pointer to the struct device to be moved new_parent the new parent of the device (can be NULL) dpm_order how to reorder ...
device_node_to_regmap(9)
NAME device_node_to_regmap - Get or create a regmap for specified device node SYNOPSIS struct regmap * device_node_to_regmap (struct device_node *np ); ARGUMENTS np Device tree node DESCRIPTION Get a regmap for the specified device node. If there's not an existing regmap, then one is instantiated. This fun...
device_offline(9)
NAME device_offline - Prepare the device for hot-removal. SYNOPSIS int device_offline (struct device *dev ); ARGUMENTS dev Device to be put offline. DESCRIPTION Execute the device bus type's .offline callback, if present, to prepare the device for a subsequent hot-removal. If that succeeds, the device must ...
device_online(9)
NAME device_online - Put the device back online after successful device_offline(). SYNOPSIS int device_online (struct device *dev ); ARGUMENTS dev Device to be put back online. DESCRIPTION If device_offline has been successfully executed for dev, but the device has not been removed subsequently, execute i...
device_param_cb(9)
NAME device_param_cb - general callback for a module/cmdline parameter to be evaluated before device initcall level SYNOPSIS device_param_cb (name , ops , arg , perm ); ARGUMENTS name a valid C identifier which is the parameter name. ops the set & get operations for this parameter. arg ...
device_pm_add(9)
NAME device_pm_add - Add a device to the PM core's list of active devices. SYNOPSIS void device_pm_add (struct device *dev ); ARGUMENTS dev Device to add to the list. SEE ALSO Kernel file ./drivers/base/power/main.c pm_hibernate_is_recovering(9), device_pm_sleep_init(9), device_pm_lock(9), device_pm_un...
device_pm_lock(9)
NAME device_pm_lock - Lock the list of active devices used by the PM core. SYNOPSIS void device_pm_lock (void ); ARGUMENTS void no arguments SEE ALSO Kernel file ./drivers/base/power/main.c pm_hibernate_is_recovering(9), device_pm_sleep_init(9), device_pm_unlock(9), device_pm_add(9), device_pm_remove(9)...
device_pm_move_after(9)
NAME device_pm_move_after - Move device in the PM core's list of active devices. SYNOPSIS void device_pm_move_after (struct device *deva , struct device *devb ); ARGUMENTS deva Device to move in dpm_list. devb Device deva should come after. SEE ALSO Kernel file ./drivers/base/power/main.c ...
device_pm_move_before(9)
NAME device_pm_move_before - Move device in the PM core's list of active devices. SYNOPSIS void device_pm_move_before (struct device *deva , struct device *devb ); ARGUMENTS deva Device to move in dpm_list. devb Device deva should come before. SEE ALSO Kernel file ./drivers/base/power/main....
device_pm_move_last(9)
NAME device_pm_move_last - Move device to end of the PM core's list of devices. SYNOPSIS void device_pm_move_last (struct device *dev ); ARGUMENTS dev Device to move in dpm_list. SEE ALSO Kernel file ./drivers/base/power/main.c pm_hibernate_is_recovering(9), device_pm_sleep_init(9), device_pm_lock(9), devi...
device_pm_move_to_tail(9)
NAME device_pm_move_to_tail - Move set of devices to the end of device lists SYNOPSIS void device_pm_move_to_tail (struct device *dev ); ARGUMENTS dev Device to move DESCRIPTION This is a device_reorder_to_tail wrapper taking the requisite locks. It moves the dev along with all of its children and all of it...
device_pm_remove(9)
NAME device_pm_remove - Remove a device from the PM core's list of active devices. SYNOPSIS void device_pm_remove (struct device *dev ); ARGUMENTS dev Device to be removed from the list. SEE ALSO Kernel file ./drivers/base/power/main.c pm_hibernate_is_recovering(9), device_pm_sleep_init(9), device_pm...
device_pm_sleep_init(9)
NAME device_pm_sleep_init - Initialize system suspend-related device fields. SYNOPSIS void device_pm_sleep_init (struct device *dev ); ARGUMENTS dev Device object being initialized. SEE ALSO Kernel file ./drivers/base/power/main.c pm_hibernate_is_recovering(9), device_pm_lock(9), device_pm_unlock(9...
device_pm_unlock(9)
NAME device_pm_unlock - Unlock the list of active devices used by the PM core. SYNOPSIS void device_pm_unlock (void ); ARGUMENTS void no arguments SEE ALSO Kernel file ./drivers/base/power/main.c pm_hibernate_is_recovering(9), device_pm_sleep_init(9), device_pm_lock(9), device_pm_add(9), device_pm_r...
device_pm_wait_for_dev(9)
NAME device_pm_wait_for_dev - Wait for suspend/resume of a device to complete. SYNOPSIS int device_pm_wait_for_dev (struct device *subordinate , struct device *dev ); ARGUMENTS subordinate Device that needs to wait for dev. dev Device to wait for. SEE ALSO Kernel file ./drivers/base/power/main.c pm...
device_prepare(9)
NAME device_prepare - Prepare a device for system power transition. SYNOPSIS int device_prepare (struct device *dev , pm_message_t state ); ARGUMENTS dev Device to handle. state PM transition of the system being carried out. DESCRIPTION Execute the ->prepare callback(s) for given device. No ne...
device_property_match_string(9)
NAME device_property_match_string - find a string in an array and return index SYNOPSIS int device_property_match_string (const struct device *dev , const char *propname , const char *string ); ARGUMENTS dev Device to get the property of propname Name of the property holding the array strin...
device_property_present(9)
NAME device_property_present - check if a property of a device is present SYNOPSIS bool device_property_present (const struct device *dev , const char *propname ); ARGUMENTS dev Device whose property is being checked propname Name of the property DESCRIPTION Check if property propname is present i...
device_property_read_bool(9)
NAME device_property_read_bool - Return the value for a boolean property of a device SYNOPSIS bool device_property_read_bool (const struct device *dev , const char *propname ); ARGUMENTS dev Device whose property is being checked propname Name of the property DESCRIPTION Return if property propnam...
device_property_read_string(9)
NAME device_property_read_string - return a string property of a device SYNOPSIS int device_property_read_string (const struct device *dev , const char *propname , const char **val ); ARGUMENTS dev Device to get the property of propname Name of the property val The value is stored h...
device_property_read_string_array(9)
NAME device_property_read_string_array - return a string array property of device SYNOPSIS int device_property_read_string_array (const struct device *dev , const char *propname , const char **val , size_t nval ); ARGUMENTS dev Device to get the property of propname Name of the property val...
device_property_read_u16_array(9)
NAME device_property_read_u16_array - return a u16 array property of a device SYNOPSIS int device_property_read_u16_array (const struct device *dev , const char *propname , u16 *val , size_t nval ); ARGUMENTS dev Device to get the property of propname Name of the property val The va...
device_property_read_u32_array(9)
NAME device_property_read_u32_array - return a u32 array property of a device SYNOPSIS int device_property_read_u32_array (const struct device *dev , const char *propname , u32 *val , size_t nval ); ARGUMENTS dev Device to get the property of propname Name of the property val The va...
device_property_read_u64_array(9)
NAME device_property_read_u64_array - return a u64 array property of a device SYNOPSIS int device_property_read_u64_array (const struct device *dev , const char *propname , u64 *val , size_t nval ); ARGUMENTS dev Device to get the property of propname Name of the property val The va...
device_property_read_u8_array(9)
NAME device_property_read_u8_array - return a u8 array property of a device SYNOPSIS int device_property_read_u8_array (const struct device *dev , const char *propname , u8 *val , size_t nval ); ARGUMENTS dev Device to get the property of propname Name of the property val The values...
device_register(9)
NAME device_register - register a device with the system. SYNOPSIS int device_register (struct device *dev ); ARGUMENTS dev pointer to the device structure DESCRIPTION This happens in two clean steps - initialize the device and add it to the system. The two steps can be called separately, but this is the e...
device_release(9)
NAME device_release - free device structure. SYNOPSIS void device_release (struct kobject *kobj ); ARGUMENTS kobj device's kobject. DESCRIPTION This is called once the reference count for the object reaches 0. We forward the call to the device's release method, which should handle actually freeing the structu...
device_release_driver(9)
NAME device_release_driver - manually detach device from driver. SYNOPSIS void device_release_driver (struct device *dev ); ARGUMENTS dev device. DESCRIPTION Manually detach device from driver. When called for a USB interface, dev->parent lock must be held. If this function is to be called with dev->paren...
device_remove_bin_file(9)
NAME device_remove_bin_file - remove sysfs binary attribute file SYNOPSIS void device_remove_bin_file (struct device *dev , const struct bin_attribute *attr ); ARGUMENTS dev device. attr device binary attribute descriptor. SEE ALSO Kernel file ./drivers/base/core.c __fwnode_link_add(9), __...
device_remove_file(9)
NAME device_remove_file - remove sysfs attribute file. SYNOPSIS void device_remove_file (struct device *dev , const struct device_attribute *attr ); ARGUMENTS dev device. attr device attribute descriptor. SEE ALSO Kernel file ./drivers/base/core.c __fwnode_link_add(9), __fwnode_link_del(9)...
device_remove_file_self(9)
NAME device_remove_file_self - remove sysfs attribute file from its own method. SYNOPSIS bool device_remove_file_self (struct device *dev , const struct device_attribute *attr ); ARGUMENTS dev device. attr device attribute descriptor. DESCRIPTION See kernfs_remove_self for details. SEE ALSO K...
device_remove_of_node(9)
NAME device_remove_of_node - Remove an of_node from a device SYNOPSIS void device_remove_of_node (struct device *dev ); ARGUMENTS dev device whose device tree node is being removed SEE ALSO Kernel file ./drivers/base/core.c __fwnode_link_add(9), __fwnode_link_del(9), __fwnode_link_cycle(9), fwnode_link...
device_remove_software_node(9)
NAME device_remove_software_node - Remove device's software node SYNOPSIS void device_remove_software_node (struct device *dev ); ARGUMENTS dev The device with the software node. DESCRIPTION This function will unregister the software node of dev. SEE ALSO Kernel file ./drivers/base/swnode.c property_entr...
device_rename(9)
NAME device_rename - renames a device SYNOPSIS int device_rename (struct device *dev , const char *new_name ); ARGUMENTS dev the pointer to the struct device to be renamed new_name the new name of the device DESCRIPTION It is the responsibility of the caller to provide mutual exclusion between two...
device_reprobe(9)
NAME device_reprobe - remove driver for a device and probe for a new driver SYNOPSIS int device_reprobe (struct device *dev ); ARGUMENTS dev the device to reprobe DESCRIPTION This function detaches the attached driver (if any) for the given device and restarts the driver probing process. It is intended to...
device_resume(9)
NAME device_resume - Execute "resume" callbacks for given device. SYNOPSIS void device_resume (struct device *dev , pm_message_t state , bool async ); ARGUMENTS dev Device to handle. state PM transition of the system being carried out. async If true, the device is being resumed asy...
device_resume_early(9)
NAME device_resume_early - Execute an "early resume" callback for given device. SYNOPSIS void device_resume_early (struct device *dev , pm_message_t state , bool async ); ARGUMENTS dev Device to handle. state PM transition of the system being carried out. async If true, the device ...
device_resume_noirq(9)
NAME device_resume_noirq - Execute a "noirq resume" callback for given device. SYNOPSIS void device_resume_noirq (struct device *dev , pm_message_t state , bool async ); ARGUMENTS dev Device to handle. state PM transition of the system being carried out. async If true, the device i...
device_rmrr_is_relaxable(9)
NAME device_rmrr_is_relaxable - Test whether the RMRR of this device is relaxable (ie. is allowed to be not enforced under some conditions) SYNOPSIS bool device_rmrr_is_relaxable (struct device *dev ); ARGUMENTS dev device handle DESCRIPTION We assume that PCI USB devices with RMRRs have them largely for ...
device_set_deferred_probe_reason(9)
NAME device_set_deferred_probe_reason - Set defer probe reason message for device SYNOPSIS void device_set_deferred_probe_reason (const struct device *dev , struct va_format *vaf ); ARGUMENTS dev the pointer to the struct device vaf the pointer to va_format structure with message SEE ALSO Ker...
device_set_driver_override(9)
NAME device_set_driver_override - Helper to set or clear driver override. SYNOPSIS int device_set_driver_override (struct device *dev , const char *s ); ARGUMENTS dev Device to change s NUL-terminated string, new driver name to force a match, pass empty string to clear it ("" or "0, where th...
device_set_of_node_from_dev(9)
NAME device_set_of_node_from_dev - reuse device-tree node of another device SYNOPSIS void device_set_of_node_from_dev (struct device *dev , const struct device *dev2 ); ARGUMENTS dev device whose device-tree node is being set dev2 device whose device-tree node is being reused DESCRIPTION Takes...
device_set_wakeup_capable(9)
NAME device_set_wakeup_capable - Set/reset device wakeup capability flag. SYNOPSIS void device_set_wakeup_capable (struct device *dev , bool capable ); ARGUMENTS dev Device to handle. capable Whether or not dev is capable of waking up the system from sleep. DESCRIPTION If capable is set, set th...
device_set_wakeup_enable(9)
NAME device_set_wakeup_enable - Enable or disable a device to wake up the system. SYNOPSIS int device_set_wakeup_enable (struct device *dev , bool enable ); ARGUMENTS dev Device to handle. enable enable/disable flag SEE ALSO Kernel file ./drivers/base/power/wakeup.c wakeup_source_create(9)...
device_shutdown(9)
NAME device_shutdown - call ->shutdown() on each device to shutdown. SYNOPSIS void device_shutdown (void ); ARGUMENTS void no arguments SEE ALSO Kernel file ./drivers/base/core.c __fwnode_link_add(9), __fwnode_link_del(9), __fwnode_link_cycle(9), fwnode_links_purge_suppliers(9), fwnode_links_purge_consu...
device_suspend(9)
NAME device_suspend - Execute "suspend" callbacks for given device. SYNOPSIS void device_suspend (struct device *dev , pm_message_t state , bool async ); ARGUMENTS dev Device to handle. state PM transition of the system being carried out. async If true, the device is being suspende...
device_suspend_late(9)
NAME device_suspend_late - Execute a "late suspend" callback for given device. SYNOPSIS void device_suspend_late (struct device *dev , pm_message_t state , bool async ); ARGUMENTS dev Device to handle. state PM transition of the system being carried out. async If true, the device i...
device_suspend_noirq(9)
NAME device_suspend_noirq - Execute a "noirq suspend" callback for given device. SYNOPSIS void device_suspend_noirq (struct device *dev , pm_message_t state , bool async ); ARGUMENTS dev Device to handle. state PM transition of the system being carried out. async If true, the devic...
device_to_hwpath(9)
NAME device_to_hwpath - Populates the hwpath corresponding to the given device. SYNOPSIS void device_to_hwpath (struct device *dev , struct hardware_path *path ); ARGUMENTS dev the target device path pointer to a previously allocated hwpath struct to be filled in SEE ALSO Kernel file ./ar...
device_unblock_probing(9)
NAME device_unblock_probing - Unblock/enable device's probes SYNOPSIS void device_unblock_probing (void ); ARGUMENTS void no arguments DESCRIPTION It will restore normal behavior and trigger re-probing of deferred devices. SEE ALSO Kernel file ./drivers/base/dd.c driver_deferred_probe_trigger(9), device_...
device_uncache_fw_images(9)
NAME device_uncache_fw_images - uncache devices' firmware SYNOPSIS void device_uncache_fw_images (void ); ARGUMENTS void no arguments DESCRIPTION uncache all firmwares which have been cached successfully by device_uncache_fw_images earlier SEE ALSO Kernel file ./drivers/base/firmware_loader/main.c request...
device_uncache_fw_images_delay(9)
NAME device_uncache_fw_images_delay - uncache devices firmwares SYNOPSIS void device_uncache_fw_images_delay (unsigned long delay ); ARGUMENTS delay number of milliseconds to delay uncache device firmwares DESCRIPTION uncache all devices's firmwares which has been cached successfully by device_cache_fw_images ...
device_unregister(9)
NAME device_unregister - unregister device from system. SYNOPSIS void device_unregister (struct device *dev ); ARGUMENTS dev device going away. DESCRIPTION We do this in two parts, like we do device_register. First, we remove it from all the subsystems with device_del, then we decrement the reference count v...
device_wakeup_arm_wake_irqs(9)
NAME device_wakeup_arm_wake_irqs - SYNOPSIS void device_wakeup_arm_wake_irqs (void ); ARGUMENTS void no arguments DESCRIPTION Iterates over the list of device wakeirqs to arm them. SEE ALSO Kernel file ./drivers/base/power/wakeup.c wakeup_source_create(9), wakeup_source_destroy(9), wakeup_so...
device_wakeup_attach(9)
NAME device_wakeup_attach - Attach a wakeup source object to a device object. SYNOPSIS int device_wakeup_attach (struct device *dev , struct wakeup_source *ws ); ARGUMENTS dev Device to handle. ws Wakeup source object to attach to dev. DESCRIPTION This causes dev to be treated as a wakeup de...
device_wakeup_attach_irq(9)
NAME device_wakeup_attach_irq - Attach a wakeirq to a wakeup source SYNOPSIS void device_wakeup_attach_irq (struct device *dev , struct wake_irq *wakeirq ); ARGUMENTS dev Device to handle wakeirq Device specific wakeirq entry DESCRIPTION Attach a device wakeirq to the wakeup source so the device ...
device_wakeup_detach(9)
NAME device_wakeup_detach - Detach a device's wakeup source object from it. SYNOPSIS struct wakeup_source * device_wakeup_detach (struct device *dev ); ARGUMENTS dev Device to detach the wakeup source object from. DESCRIPTION After it returns, dev will not be treated as a wakeup device any more. SEE ALSO Ke...
device_wakeup_detach_irq(9)
NAME device_wakeup_detach_irq - Detach a wakeirq from a wakeup source SYNOPSIS void device_wakeup_detach_irq (struct device *dev ); ARGUMENTS dev Device to handle DESCRIPTION Removes a device wakeirq from the wakeup source. Call under the device's power.lock lock. SEE ALSO Kernel file ./drivers/bas...
device_wakeup_disable(9)
NAME device_wakeup_disable - Do not regard a device as a wakeup source any more. SYNOPSIS void device_wakeup_disable (struct device *dev ); ARGUMENTS dev Device to handle. DESCRIPTION Detach the dev's wakeup source object from it, unregister this wakeup source object and destroy it. SEE ALSO Kernel file...
device_wakeup_disarm_wake_irqs(9)
NAME device_wakeup_disarm_wake_irqs - SYNOPSIS void device_wakeup_disarm_wake_irqs (void ); ARGUMENTS void no arguments DESCRIPTION Iterates over the list of device wakeirqs to disarm them. SEE ALSO Kernel file ./drivers/base/power/wakeup.c wakeup_source_create(9), wakeup_source_destroy(9), ...
device_wakeup_enable(9)
NAME device_wakeup_enable - Enable given device to be a wakeup source. SYNOPSIS int device_wakeup_enable (struct device *dev ); ARGUMENTS dev Device to handle. DESCRIPTION Create a wakeup source object, register it and attach it to dev. SEE ALSO Kernel file ./drivers/base/power/wakeup.c wakeup_so...
devices_kset_move_after(9)
NAME devices_kset_move_after - Move device in the devices_kset's list. SYNOPSIS void devices_kset_move_after (struct device *deva , struct device *devb ); ARGUMENTS deva Device to move devb Device deva should come after. SEE ALSO Kernel file ./drivers/base/core.c __fwnode_link_add(9), __fwn...
devices_kset_move_before(9)
NAME devices_kset_move_before - Move device in the devices_kset's list. SYNOPSIS void devices_kset_move_before (struct device *deva , struct device *devb ); ARGUMENTS deva Device to move. devb Device deva should come before. SEE ALSO Kernel file ./drivers/base/core.c __fwnode_link_add(9), _...
devices_kset_move_last(9)
NAME devices_kset_move_last - move the device to the end of devices_kset's list. SYNOPSIS void devices_kset_move_last (struct device *dev ); ARGUMENTS dev device to move SEE ALSO Kernel file ./drivers/base/core.c __fwnode_link_add(9), __fwnode_link_del(9), __fwnode_link_cycle(9), fwnode_links_purge_sup...
devl_dpipe_headers_register(9)
NAME devl_dpipe_headers_register - register dpipe headers SYNOPSIS void devl_dpipe_headers_register (struct devlink *devlink , struct devlink_dpipe_headers *dpipe_headers ); ARGUMENTS devlink devlink dpipe_headers dpipe header array DESCRIPTION Register the headers supported by hardwar...