cylinder
A solid or hollow shape with straight parallel sides and two equal circular ends; also a part of that shape in an engine, machine, lock or gun.
Tell
the shape itself: round with flat ends
Best when
You mean the shape itself, or the standard name for the part, without saying whether it is hollow, turning or holding something.
Example
“The pen's cylinder unscrews to take an ink cartridge.”