aboutsummaryrefslogtreecommitdiff
path: root/scripts/gdb/linux/modules.py
diff options
context:
space:
mode:
authorLogan Gunthorpe <[email protected]>2016-06-20 13:15:10 -0600
committerJon Mason <[email protected]>2016-08-05 10:21:07 -0400
commitbfcaa39652bf64294261415e5fa18ef0445a4d74 (patch)
tree7bfc6fd71823bdf697dc64d3ed51e76c3eae7fea /scripts/gdb/linux/modules.py
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 <[email protected]> Acked-by: Allen Hubbe <[email protected]> Signed-off-by: Jon Mason <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/modules.py')
0 files changed, 0 insertions, 0 deletions