Code:
$ udevadm info --attribute-walk -n /dev/cdrom
Udevadm info starts with the device specified by the devpath and then
walks up the chain of parent devices. It prints for every device
found, all possible attributes in the udev rules key format.
A rule to match, can be composed by the attributes of the device
and the attributes from one single parent device.
looking at device '/devices/pci0000:00/0000:00:1c.4/0000:03:00.0/host4/target4:0:0/4:0:0:0/block/sr0':
KERNEL=="sr0"
SUBSYSTEM=="block"
DRIVER==""
ATTR{range}=="1"
ATTR{ext_range}=="1"
ATTR{removable}=="1"
ATTR{ro}=="0"
ATTR{size}=="9191552"
ATTR{alignment_offset}=="0"
ATTR{capability}=="19"
ATTR{stat}==" 28 166 1508 20200 0 0 0 0 0 12233 20200"
ATTR{inflight}==" 0 0"
looking at parent device '/devices/pci0000:00/0000:00:1c.4/0000:03:00.0/host4/target4:0:0/4:0:0:0':
KERNELS=="4:0:0:0"
SUBSYSTEMS=="scsi"
DRIVERS=="sr"
ATTRS{device_blocked}=="0"
ATTRS{type}=="5"
ATTRS{scsi_level}=="6"
ATTRS{vendor}=="HL-DT-ST"
ATTRS{model}=="DVD-RAM GSA-H58N"
ATTRS{rev}=="1.03"
ATTRS{state}=="running"
ATTRS{timeout}=="30"
ATTRS{iocounterbits}=="32"
ATTRS{iorequest_cnt}=="0x1f5c6"
ATTRS{iodone_cnt}=="0x1f59b"
ATTRS{ioerr_cnt}=="0x0"
ATTRS{modalias}=="scsi:t-0x05"
ATTRS{evt_media_change}=="0"
ATTRS{dh_state}=="detached"
ATTRS{queue_depth}=="1"
ATTRS{queue_type}=="none"
looking at parent device '/devices/pci0000:00/0000:00:1c.4/0000:03:00.0/host4/target4:0:0':
KERNELS=="target4:0:0"
SUBSYSTEMS=="scsi"
DRIVERS==""
looking at parent device '/devices/pci0000:00/0000:00:1c.4/0000:03:00.0/host4':
KERNELS=="host4"
SUBSYSTEMS=="scsi"
DRIVERS==""
looking at parent device '/devices/pci0000:00/0000:00:1c.4/0000:03:00.0':
KERNELS=="0000:03:00.0"
SUBSYSTEMS=="pci"
DRIVERS=="pata_marvell"
ATTRS{vendor}=="0x11ab"
ATTRS{device}=="0x6121"
ATTRS{subsystem_vendor}=="0x11ab"
ATTRS{subsystem_device}=="0x6121"
ATTRS{class}=="0x01018f"
ATTRS{irq}=="16"
ATTRS{local_cpus}=="ffffffff"
ATTRS{local_cpulist}=="0-31"
ATTRS{modalias}=="pci:v000011ABd00006121sv000011ABsd00006121bc01sc01i8f"
ATTRS{broken_parity_status}=="0"
ATTRS{msi_bus}==""
looking at parent device '/devices/pci0000:00/0000:00:1c.4':
KERNELS=="0000:00:1c.4"
SUBSYSTEMS=="pci"
DRIVERS=="pcieport"
ATTRS{vendor}=="0x8086"
ATTRS{device}=="0x2948"
ATTRS{subsystem_vendor}=="0x0000"
ATTRS{subsystem_device}=="0x0000"
ATTRS{class}=="0x060400"
ATTRS{irq}=="26"
ATTRS{local_cpus}=="ffffffff"
ATTRS{local_cpulist}=="0-31"
ATTRS{modalias}=="pci:v00008086d00002948sv00000000sd00000000bc06sc04i00"
ATTRS{broken_parity_status}=="0"
ATTRS{msi_bus}=="1"
looking at parent device '/devices/pci0000:00':
KERNELS=="pci0000:00"
SUBSYSTEMS==""
DRIVERS==""
Here is mine so you can compare, there is one parent that it doesn't exist in your machine nad the drivers and IRQ resources are different, but why is there 2 names(sr0 and sr1) do you have to drives?