blk_pre_runtime_suspend man page on OpenSuSE

Man page or keyword search:  
man Server   25941 pages
apropos Keyword Search (all sections)
Output format
OpenSuSE logo
[printable version]

BLK_PRE_RUNTIME_SUSP(9)		 Block Devices	       BLK_PRE_RUNTIME_SUSP(9)

NAME
       blk_pre_runtime_suspend - Pre runtime suspend check

SYNOPSIS
       int blk_pre_runtime_suspend(struct request_queue * q);

ARGUMENTS
       q
	   the queue of the device

DESCRIPTION
       This function will check if runtime suspend is allowed for the device
       by examining if there are any requests pending in the queue. If there
       are requests pending, the device can not be runtime suspended;
       otherwise, the queue's status will be updated to SUSPENDING and the
       driver can proceed to suspend the device.

       For the not allowed case, we mark last busy for the device so that
       runtime PM core will try to autosuspend it some time later.

       This function should be called near the start of the device's
       runtime_suspend callback.

RETURN
       0 - OK to runtime suspend the device -EBUSY - Device should not be
       runtime suspended

COPYRIGHT
Kernel Hackers Manual 3.11	 November 2013	       BLK_PRE_RUNTIME_SUSP(9)
[top]

List of man pages available for OpenSuSE

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net