tech-kern archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: Adding pulse support to gpio(4), gpioctl(8)
>> Well, you need to open it first, before you can to ioctl, and if
>> only one process can open it, only one process can ioctl it, right?
> Wrong.
Agreed.
> Multiple threads can ioctl and nobody prevents one from having a
> single process with multiple threads (pthreads, if you like).
Not only that, but even without threading, there are at least two ways
I can think of offhand that a file descriptor, once opened, can end up
in multiple processes' open file tables: fork() and SCM_RIGHTS. (There
are probably others, too.)
/~\ The ASCII Mouse
\ / Ribbon Campaign
X Against HTML mouse%rodents-montreal.org@localhost
/ \ Email! 7D C8 61 52 5D E7 2D 39 4E F1 31 3E E8 B3 27 4B
Home |
Main Index |
Thread Index |
Old Index