# /sys/bus Device Usage Information¶

A parser to parse the usage information of devices connected on sys/bus.

Parsers included in this module are:

## CdcWDM - file /sys/bus/usb/drivers/cdc_wdm/module/refcnt¶

class insights.parsers.sys_bus.CdcWDM(context)[source]

This file /sys/bus/usb/drivers/cdc_wdm/module/refcnt contains device usage count, i.e if a device is in use then the non-zero value will be present in the file.

Sample Content:

0 - Not in use.
1 - Device is opened and it is in use.


Examples:

>>> type(device_usage)
<class 'insights.parsers.sys_bus.CdcWDM'>
>>> device_usage.device_usage_cnt
1
>>> device_usage.device_in_use
True

Raises
property device_in_use

True when device in use else False.

Type

Returns (bool)

property device_usage_cnt

device usage count.

Type

Returns (int)

parse_content(content)[source]

This method must be implemented by classes based on this class.