How maneuverable is something like that in a house?
I checked on a few 9mm carbines: beretta, kel-tec, and hi-point, and they are all listed between 29" and 31" in overall length. By comparison, a standard Ruger 10/22 with an 18.5" barrel is 37" overall.
The chamber of those 9mm carbines are right above the pistol grip (as they would be with a pistol), instead of in front of the grip as it is on the 10/22. The barrels are also a couple inches shorter. These differences account for the shorter length.
I guess you could see how easy it is to maneuver with the 10/22 and assume those other guns would be a bit easier yet.