The reason I ask the question is because I would like to emulate a device or create a device (specifically a usb-device) on disk without connecting the physical device.
What I would like is to create a device such that it shows up in the lsusb output.
What I have tried so far is creating a file with dd and using losetup to connect the created file with a loop device (/dev/loop*). That however doesn't create a message in dmesg.
Edit:
As requested here's more info on my dilemma. I bought a USB-stick quite a while back with a language trainer that has limited it's execution (.exe)to the USB-stick. Since wine doesn't transfer the USB device data to the exe I was forced to use it in a VM. Since I use the stick on a VM, I thought I could emulate it on my host and go completely virtual - no need for the physical usb-stick.
udevadm
manpage, it may be of some help.sysfs
so that I know what attributes to set when creating an event. If hope one of those attributes is a reference to a file that will represent the device's storage.