Skip to contentSkip to conversation

Reliability of serial console driver

DISCUSSION Singh Balbir 1 participant 1 message Feb 22, 2001

lore
Share & tools
lore
#0 lore raw

Hello All,
I am not on the list, so please reply to me
with the list with your comments.

I was going through some code in serial.c and noticed that there are page allocations/deallocations in rs_open and startup (serial.c). These allocations could fail. This affects reliablity in some minor way

Consider a system running out of memory and the administrator decided to grab the serial console (say from home) to see what was wrong.. His open would fail since we are running out of memory and he would not be able to use the remote serial console.

I was wondering if it is a good idea to make some such allocations at boot time. This would mean that these allocations would never fail. I agree that the chances of such a scenario occuring is not very high, but it adds to the reliability of the OS.

What do you think ?

Ba Sin So.

__________________________________________________
Do You Yahoo!?
Yahoo! Auctions - Buy the things you want at great prices! http://auctions.yahoo.com/