I can't quite decipher the wording of your post, but I'll make some guesses about the image:
Those adapters seem to be designed to let an M6 sized nut (or thing with an M6 taped hole in it, screw on to one end, then in the other end is a cyclindrical hole to take a circular profile or D shaped shaft. The side hole, or there might be two side holes from opposite directions, is(/are) tapped to take grub screws which can be tightened to clamp the shaft so it won't turn separately from the adapter. I'd think it rather odd to use this sort of an adapter on a motor shaft though, because if the motor is turning in a particular direction than torques from the inertia of whatever it is trying to run will end up unscrewing whatever one has screwed on to the M6 end. So I'd think this adapter is only suitable for things like say a drill bit or a fan which only ever turn in one direction, no use for a wheel which might have to go backward or forward.
Mostly I'd think this adapter more suitable as a way to get a threaded tip on an otherwise plain round bar, for some sort of minor static structural elements within equipment, than as anything for a rotating shaft.
Those flats on the outside of the adapter might also let it serve as a double flatted "D" type shaft which something with a rather wider hole could fit on to from the outside.
6mm D shafts are, by the way, quite common on a lot of DC, BLDC and stepper motors.