summaryrefslogtreecommitdiff
path: root/security
diff options
context:
space:
mode:
authorLogan Gunthorpe <logang@deltatee.com>2016-06-20 13:15:10 -0600
committerJon Mason <jdmason@kudzu.us>2016-08-05 10:21:07 -0400
commitbfcaa39652bf64294261415e5fa18ef0445a4d74 (patch)
tree7bfc6fd71823bdf697dc64d3ed51e76c3eae7fea /security
parent717146a2a8cbf6dbcb8fdf4ae7cddd2d6074161c (diff)
ntb_tool: Add link status and files to debugfs
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>
Diffstat (limited to 'security')
0 files changed, 0 insertions, 0 deletions