Hi, I'm looking to carry out a request on kernel-janitors, where a macro is to be created which will return the size of an array, expressed in number of elements. (sizeof(array)/sizeof(array[0]) This is called ARRAY_SIZE, and is currently defined in a couple of places throughout the code at the moment, including kernel.h. As this change will affect a number of sub-modules (e.g. ./scripts/mod ./drivers/serial ./arch/mips ./include, etc.), I wanted to ask where general macro definition are made in the Linux environment. Obviously, I can't use the ARRAY_SIZE definition in kernel.h, as it is protected by a #ifdef __KERNEL__ and most of the modules which are to be changed aren't kernel modules. Any suggestions? Cheers, Mark. -- To unsubscribe from this list: send an email with "unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx Please read the FAQ at http://kernelnewbies.org/FAQ