简体   繁体   中英

device file open failed in linux system

I am working in omap4 based system. It has 4 UART port so kernel makes:

/dev/ttyO0
/dev/ttyO1
/dev/ttyO2
/dev/ttyO3

When I open from user space:

fd = open("/dev/ttyO1",O_RDONLY)

it succesfully open and i can peform read and write with that.

But when I open:

fd = open("/dev/ttyO3",O_RDONLY)

Its failed.

I am able to see /dev/ttyO3 node in my system still why i am not able to open it? Any idea?

我已经授予该节点权限,现在我可以打开该节点

chmod 0606 /dev/ttyO3

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM