Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 10 Apr 2006 15:31:39 +0300
From:      Nickolas <nickolas@atlas.ua>
To:        freebsd-drivers@freebsd.org
Subject:   Context switching
Message-ID:  <811970386.20060410153139@atlas.ua>

next in thread | raw e-mail | index | archive | help
Hello All!

  I'm porting a CPI card driver from linux to FreeBSD.
  Some initialization routines require much time (~1-2 seconds).
  Initialization of hardware should be done during opening device
  special file. So, I need to switch thread context.

  I'm doing it in such way:

  mi_switch(SW_VOL, choosethread());

-- 
Best regards,
 Nickolas                          mailto:nickolas@atlas.ua





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?811970386.20060410153139>