Question regarding do_munmap

Nick Popoff (lkml@tre.bloodletting.com)
Tue, 4 Jun 2002 11:24:33 -0700



Greetings all. My apologies in advance if this question is off topic
for this list. I'm responsible for Linux drivers for the hardware my
company makes. Our drivers use kernel modules which use the
do_munmap() function. I noticed that the kernel provided in RH 7.3 is
patched to change this function to add a new parameter which is
missing in the generic kernel.

(Generic 2.4.18 include/linux/mm.h)
extern int do_munmap(struct mm_struct *, unsigned long, size_t);

(RH 7.3/AC patched 2.4.18-3 include/linux/mm.h)
extern int do_munmap(struct mm_struct *, unsigned long, size_t, int
acct);

My question is what is the recommended way for module developers to
handle changes to this API so that end users don't have to edit
makefiles to build for their particular kernel? Is there a way to
detect that a specific patch or patch author is in use so that my
install script can use the correct function? Any recomendations on
how to handle this besides grep'ing source in my installer? :-)

Any advice on this would be much appreciated. Right now our driver is
easier to install on Linux than another other OS we support and I want
to keep it that way! Also, I'm not subscribed to this fearsome
mailing list so please CC me on any replies.



-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/