Re: How to do proper locking
From: Julian Elischer (julian_at_elischer.org)
Date: 08/06/05
- Previous message: Doug Barton: "FreeBSD-* files in non-HEAD branches"
- In reply to: Hans Petter Selasky: "Re: How to do proper locking"
- Next in thread: Ian Dowse: "Re: How to do proper locking"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Fri, 05 Aug 2005 23:59:58 -0700 To: hselasky@c2i.net
Hans Petter Selasky wrote:
> On Friday 05 August 2005 19:29, John Baldwin wrote:
>
>
> Yes, you are right, but the problem is, that for most callback systems in the
> kernel, there is no mechanism that will pre-lock some custom mutex before
> calling the callback.
Not generally applicable to this case but for example the netgraph callout
wrappers handlle netgraph node locking so that teh called function can
assume the node it is working on has been locked.
It's not applicable because netgraph locking is "different"
to locking elsewhere in the kernel due to the nature of netgraph.
But havinng a specific callout wrapper for a subsystem
does give the ability to do such things.
_______________________________________________
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org"
- Previous message: Doug Barton: "FreeBSD-* files in non-HEAD branches"
- In reply to: Hans Petter Selasky: "Re: How to do proper locking"
- Next in thread: Ian Dowse: "Re: How to do proper locking"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|