Bluetooth: Create debugfs directory for each connection handle
For every internal representation of a Bluetooth connection which is identified by hci_conn, create a debugfs directory with the handle number as directory name. Signed-off-by: Marcel Holtmann <marcel@holtmann.org> Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
This commit is contained in:

committed by
Johan Hedberg

parent
a8e1bfaa55
commit
23b9ceb74f
@@ -1062,3 +1062,15 @@ void hci_debugfs_create_le(struct hci_dev *hdev)
|
||||
debugfs_create_u16("discov_interleaved_timeout", 0644, hdev->debugfs,
|
||||
&hdev->discov_interleaved_timeout);
|
||||
}
|
||||
|
||||
void hci_debugfs_create_conn(struct hci_conn *conn)
|
||||
{
|
||||
struct hci_dev *hdev = conn->hdev;
|
||||
char name[6];
|
||||
|
||||
if (IS_ERR_OR_NULL(hdev->debugfs))
|
||||
return;
|
||||
|
||||
snprintf(name, sizeof(name), "%u", conn->handle);
|
||||
conn->debugfs = debugfs_create_dir(name, hdev->debugfs);
|
||||
}
|
||||
|
Reference in New Issue
Block a user