https://github.com/torvalds/linux
Revision bfcaa39652bf64294261415e5fa18ef0445a4d74 authored by Logan Gunthorpe on 20 June 2016, 19:15:10 UTC, committed by Jon Mason on 05 August 2016, 14:21:07 UTC
In order to more successfully script with ntb_tool it's useful to
have a link file to check the link status so that the script
doesn't use the other files until the link is up.

This commit adds a 'link' file to the debugfs directory which reads
boolean (Y or N) depending on the link status. Writing to the file
change the link state using ntb_link_enable or ntb_link_disable.

A 'link_event' file is also provided so an application can block until
the link changes to the desired state. If the user writes a 1, it will
block until the link is up. If the user writes a 0, it will block until
the link is down.

Signed-off-by: Logan Gunthorpe <logang@deltatee.com>
Acked-by: Allen Hubbe <Allen.Hubbe@emc.com>
Signed-off-by: Jon Mason <jdmason@kudzu.us>
1 parent 717146a
Raw File
Tip revision: bfcaa39652bf64294261415e5fa18ef0445a4d74 authored by Logan Gunthorpe on 20 June 2016, 19:15:10 UTC
ntb_tool: Add link status and files to debugfs
Tip revision: bfcaa39
Kconfig
#
# For a description of the syntax of this configuration file,
# see Documentation/kbuild/kconfig-language.txt.
#
mainmenu "Linux/$ARCH $KERNELVERSION Kernel Configuration"

config SRCARCH
	string
	option env="SRCARCH"

source "arch/$SRCARCH/Kconfig"
back to top