I have an embedded system and I have developed a device driver for a hard disk controller. When I insert the driver using insmod I get the following error.
WARNING: at fs/sysfs/dir.c:455 sysfs_add_one+0xb0/0xdc()
sysfs: cannot create duplicate filename '/block/xsa'
I understand that it is trying to use the name xsa which is already registered to a compact flash card. My question is how does the Kernel decide on the name that should be used?