You have to rest a certain amount of time out of each 24 hours you drive. I forget what the time is but I would think that is what he was doing. If he doesn’t do it he loses his license.
Most of these truck have “sleepers”.