Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 04 Feb 2008 14:37:31 +0800
From:      Ganbold <ganbold@micom.mng.net>
To:        Jeremy Chadwick <koitsu@FreeBSD.org>
Cc:        FreeBSD Stable Mailing List <freebsd-stable@freebsd.org>
Subject:   Re: /dev/cuad0: Device busy
Message-ID:  <47A6B2AB.2060308@micom.mng.net>
In-Reply-To: <20080204063023.GA91789@eos.sc1.parodius.com>
References:  <47A69A66.2080109@micom.mng.net> <20080204063023.GA91789@eos.sc1.parodius.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?47A6B2AB.2060308>