lkml.org 
[lkml]   [2003]   [Apr]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Writing modules for 2.5
On Tue, Apr 15, 2003 at 02:15:18PM +0200, Andreas Henriksson wrote:
> On Tue, Apr 15, 2003 at 02:05:48PM +0200, Måns Rullgård wrote:
> > 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.

You don't need that for char drivers.

--
Russell King (rmk@arm.linux.org.uk) The developer of ARM Linux
http://www.arm.linux.org.uk/personal/aboutme.html

-
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/

\
 
 \ /
  Last update: 2005-03-22 13:34    [W:0.084 / U:0.184 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site