Context switching

Nickolas nickolas at atlas.ua
Mon Apr 10 12:31:39 UTC 2006


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 at atlas.ua




More information about the freebsd-drivers mailing list