/dev/cuad0: Device busy
Ganbold
ganbold at micom.mng.net
Mon Feb 4 06:37:34 UTC 2008
Jeremy Chadwick wrote:
> On Mon, Feb 04, 2008 at 12:53:58PM +0800, Ganbold wrote:
>
>> Hi,
>>
>> I'm trying to use serial port but the system says device busy.
>>
>> daemon# cu -l /dev/cuad0 -s 9600
>> /dev/cuad0: Device busy
>> link down
>>
>
> Does the same happen if you do `cu -l ttyd0 -s 9600`?
>
It works and fstat shows:
daemon# fstat /dev/cuad0
USER CMD PID FD MOUNT INUM MODE SZ|DV R/W NAME
daemon# fstat /dev/ttyd0
USER CMD PID FD MOUNT INUM MODE SZ|DV R/W NAME
root cu 5574 3 /dev 41 crw------- ttyd0 rw
/dev/ttyd0
root cu 5573 3 /dev 41 crw------- ttyd0 rw
/dev/ttyd0
daemon#
Is it expected behaviour?
thanks,
Ganbold
>
>> How to check whether something is using serial port?
>> Any idea?
>>
>
> fstat should help here.
>
>
--
Success is in the minds of Fools. -- William Wrenshaw, 1578
More information about the freebsd-stable
mailing list