mutual exclusion in vkbd

From: Norbert Koch (NKoch_at_demig.de)
Date: 05/31/05

  • Next message: Maksim Yevmenkin: "Re: mutual exclusion in vkbd"
    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"


  • Next message: Maksim Yevmenkin: "Re: mutual exclusion in vkbd"

    Relevant Pages

    • Re: mutual exclusion in vkbd
      ... > 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? ... > Is there any process context inside a kernel task? ...
      (freebsd-hackers)
    • Re: What do you dislike about OSX?
      ... which indicated that it is an absolute term in this context. ... based on FreeBSD (in which case it would be a fork of FreeBSD, ... my responses to Shit. ... which is the correct usage as far as I know. ...
      (comp.sys.mac.advocacy)
    • Re: BIND update?
      ... time to test things and make sure that changes and patches work within the ... larger context of a complete system. ... a lot into testing named on all the common platforms. ... FreeBSD is still one of their test platforms. ...
      (FreeBSD-Security)
    • Re: Race condition in Sudos pathname validation, version <= 1.6.8p9
      ... for details regarding this vulnerability in the context of the FreeBSD ... Ports Collection. ... FreeBSD Security Team ...
      (FreeBSD-Security)
    • RE: IBM Active Protection System Approach
      ... > what would be the best approach to implement aps on FreeBSD? ... possible shock early enough to park disk drive heads. ...
      (freebsd-hackers)