Module getting loaded although init fuction returns error

2005-01-12 Thread Tejas Sumant
Hi All, I am working on a FreeBSD loadable module. While loading if I encounter any error I just have returned ENXIO error. I run commond kldstat after kldload. What I observed was kldstat still shows my module in the list of loaded modules. Can anybody pls explain me this? Is it a problem wit

Re: Freeing Volatile Pointer

2005-01-03 Thread Tejas Sumant
> > Still better is using __DEVOLATILE from sys/cdefs.h, which does a cast to > uintptr_t first. This way, you even avoid this warning :) Is it available with FreeBSD4.10 release? I am working on 4.10. I couldnt find this __DEVOLATILE. OR Is it defined in any other file for 4.10 release? Tejas

Freeing Volatile Pointer

2005-01-03 Thread Tejas Sumant
Hi, I have a volatile pointer declared in my device driver. I am allocating memory using kernel malloc function. host_mem_resp_ptr = (volatile unsigned long *)malloc(sizeof(volatile unsigned long), M_DEVBUF, M_NOWAIT); When I try to free it, I get following warning while compiling the driver. "