mutual exclusion in vkbd
From: Norbert Koch (NKoch_at_demig.de)
Date: 05/31/05
- Previous message: Marc Olzheim: "Re: preadv() / pwritev()"
- Next in thread: Maksim Yevmenkin: "Re: mutual exclusion in vkbd"
- Reply: Maksim Yevmenkin: "Re: mutual exclusion in vkbd"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
To: <freebsd-hackers@freebsd.org> Date: Tue, 31 May 2005 17:38:45 +0200
Hello.
I am currently trying to backport vkbd to FreeBSD 4.
Maksim Yevmenkin uses mtx_lock()/mtx_unlock() for
protecting access to data structures under FreeBSD 5/6
between the device functions and the kernel thread.
How should I best do this under FreeBSD 4?
Would something like splhigh() work in that context?
Or should I use lockmgr with LK_EXCLUSIVE/LK_RELEASE?
Is there any (pseudo)process context inside a kernel task?
Thank you for any help,
Norbert Koch
_______________________________________________
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: Marc Olzheim: "Re: preadv() / pwritev()"
- Next in thread: Maksim Yevmenkin: "Re: mutual exclusion in vkbd"
- Reply: Maksim Yevmenkin: "Re: mutual exclusion in vkbd"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|