vBulletin Search Engine Optimization
| |||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| Hello, The documentation of lock_alloc() seems to leace a few things out. void lock_alloc(void * event,int flags,short class,short occurrence); I defined a variable Simple_lock mylock; lock_alloc(&mylock, LOCK_ALLOC_PIN, ?.?) What is the significance of class? For a given class, do we increment cocurrence each time we call lock_alloc()? We want a per-process lock in our kext -and that means we need as many locks as there are processes. How do we go about using this lock_alloc()? btw -why should we alloc() if we have defined my_lock to be a variable and not a ptr to Simple_lock? thanks -kamal |