Displaying 2 results from an estimated 2 matches for "cdsysctlinit".
2003 Sep 09
0
CAM/INVARIANTS fix committed
...runs in software interrupt
handlers, which wouldn't fix the problem at hand. So I have created a new
task queue, taskqueue_thread, that runs inside a kernel thread.
scsi_cd.c: Remove sysctl variable creation code from cdregister(), and
move it to a new function, cdsysctlinit(). Queue
cdsysctlinit() to the taskqueue_thread taskqueue once we
have fully registered the cd(4) driver instance.
scsi_da.c: Remove sysctl variable creation code from daregister(), and
move it to move it to a new function, dasysctlin...
2003 Sep 01
1
testers needed for CAM INVARIANTS fix
...bufs_left;
struct cam_periph *periph;
int minimum_command_size;
+ struct task sysctl_task;
struct sysctl_ctx_list sysctl_ctx;
struct sysctl_oid *sysctl_tree;
STAILQ_HEAD(, cd_mode_params) mode_queue;
***************
*** 614,619 ****
--- 616,659 ----
}
}
+ static void
+ cdsysctlinit(void *context, int pending)
+ {
+ struct cam_periph *periph;
+ struct cd_softc *softc;
+ char tmpstr[80], tmpstr2[80];
+ int s;
+
+ periph = (struct cam_periph *)context;
+ softc = (struct cd_softc *)periph->softc;
+
+ snprintf(tmpstr, sizeof(tmpstr), "CAM CD unit %d", periph-...