A locking doorknob  or lockset  on your bedroom door is properly called a privacy lockset This means that you can lock the door from inside the room and  in most cases  you cannot unlock it with a key from the other side of the door  as you can with an entry lockset