Commit a5b85279 authored by Kamaljit Singh's avatar Kamaljit Singh Committed by Keith Busch
Browse files

nvme-core: add method to check for an I/O controller



Add nvme_is_io_ctrl() to check if the controller is of type I/O
controller. Uses negative logic by excluding an administrative
controller and a discovery controller.

Signed-off-by: default avatarKamaljit Singh <kamaljit.singh@opensource.wdc.com>
Reviewed-by: default avatarHannes Reinecke <hare@suse.de>
Signed-off-by: default avatarKeith Busch <kbusch@kernel.org>
parent eeaed489
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment