On Sun, Feb 26, 2017 at 07:51:14AM -0700, Todd C. Miller wrote: > On Sun, 26 Feb 2017 10:56:16 +0100, Claudio Jeker wrote: > > > Attaching a PCB to a socket is currently done via PRU_ATTACH but in most > > cases this does not need the network / socket lock since no packets can be > > received or sent over this socket (needs a bind or connect first) > > It also cleans up a few other ugly things like how the proto is passed. > > This does seem cleaner but unfortunately we can't do the same with > PRU_DETACH. I guess we'll just have to accept that inconsistency.
One step at a time. I have the feeling more of the PRU calls will be transformed into functions. -- :wq Claudio