Re: Writing modules for 2.5

From: Måns Rullgård (mru@users.sourceforge.net)
Date: Tue Apr 15 2003 - 07:30:01 EST


Andreas Henriksson <andreas@fjortis.info> writes:

> > Next question: what is the correct replacement for MOD_INC_USE_COUNT?
>
> "SET_MODULE_OWNER(dev);" or simply "dev->owner=THIS_MODULE;" and the
> counting should then be done automatically AFAIK.

OK, but what might dev be and when should this be done? What about
MOD_DEC_USE_COUNT?

-- 
Måns Rullgård
mru@users.sf.net
-
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/



This archive was generated by hypermail 2b29 : Tue Apr 15 2003 - 22:00:35 EST