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)



Mouse <mouse%Rodents-Montreal.ORG@localhost> wrote:
> > 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.)

Yes, there is clone(2) system call as well.  However, the actual problem
to solve is still the fact that multiple LWPs (whether they are processes
or pthreads) can concurrently perform the operations on a file descriptor.

-- 
Mindaugas


Home | Main Index | Thread Index | Old Index