Lines Matching defs:clp
1222 sclass_t *clp;
1233 clp = &sclass[cid];
1234 rw_enter(clp->cl_lock, RW_WRITER);
1235 if (SCHED_INSTALLED(clp)) {
1238 rw_exit(clp->cl_lock);
1242 clp->cl_init = modl->sched_class->cl_init;
1243 clp->cl_funcs = modl->sched_class->cl_funcs;
1244 modl->sched_class = clp;
1245 disp_add(clp);
1247 rw_exit(clp->cl_lock);
1266 sclass_t *clp;
1279 clp = &sclass[cid];
1281 !rw_tryenter(clp->cl_lock, RW_WRITER))
1284 clp->cl_init = NULL;
1285 clp->cl_funcs = NULL;
1286 rw_exit(clp->cl_lock);