Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750997AbWBBMko (ORCPT ); Thu, 2 Feb 2006 07:40:44 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1750999AbWBBMko (ORCPT ); Thu, 2 Feb 2006 07:40:44 -0500 Received: from cust8446.nsw01.dataco.com.au ([203.171.93.254]:38587 "EHLO cust8446.nsw01.dataco.com.au") by vger.kernel.org with ESMTP id S1750997AbWBBMkn (ORCPT ); Thu, 2 Feb 2006 07:40:43 -0500 From: Nigel Cunningham Organization: Suspend2.net To: Pekka Enberg Subject: Re: [ 01/10] [Suspend2] kernel/power/modules.h Date: Thu, 2 Feb 2006 21:35:52 +1000 User-Agent: KMail/1.9.1 Cc: linux-kernel@vger.kernel.org References: <20060201113710.6320.68289.stgit@localhost.localdomain> <200602012245.06328.nigel@suspend2.net> <84144f020602010501k23e7898at82c0f231a2da0ad4@mail.gmail.com> In-Reply-To: <84144f020602010501k23e7898at82c0f231a2da0ad4@mail.gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart2394419.uQtfgOsVRy"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200602022135.56830.nigel@suspend2.net> Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2404 Lines: 85 --nextPart2394419.uQtfgOsVRy Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hi. On Wednesday 01 February 2006 23:01, Pekka Enberg wrote: > On 2/1/06, Nigel Cunningham wrote: > > --- /dev/null > > +++ b/kernel/power/modules.h > > > > +struct module_header { > > [snip] > > > +extern int num_modules, num_writers; > > [snip] > > > +extern struct suspend_module_ops *active_writer; > > [snip] > > > +extern void prepare_console_modules(void); > > +extern void cleanup_console_modules(void); > > [snip, snip] > > > +extern unsigned long header_storage_for_modules(void); > > +extern unsigned long memory_for_modules(void); > > + > > +extern int print_module_debug_info(char *buffer, int buffer_size); > > Suspend prefix for the names of all of the above please? They're > confusing with kernel/module.c now. > > > +extern int suspend_register_module(struct suspend_module_ops *module); > > +extern void suspend_unregister_module(struct suspend_module_ops > > *module); + > > +extern int suspend2_initialise_modules(int starting_cycle); > > +extern void suspend2_cleanup_modules(int finishing_cycle); > > + > > +int suspend2_get_modules(void); > > +void suspend2_put_modules(void); > > I think we can call these suspend_{get|set}_modules instead i.e. > without the extra '2'. > > > + > > +static inline void suspend_initialise_module_lists(void) { > > + INIT_LIST_HEAD(&suspend_filters); > > + INIT_LIST_HEAD(&suspend_writers); > > + INIT_LIST_HEAD(&suspend_modules); > > +} > > I couldn't find a user for this. I would imagine there's only one, > though, and this should be inlined there? All done. Thanks! Nigel =2D-=20 See our web page for Howtos, FAQs, the Wiki and mailing list info. http://www.suspend2.net IRC: #suspend2 on Freenode --nextPart2394419.uQtfgOsVRy Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (GNU/Linux) iD8DBQBD4e6cN0y+n1M3mo0RAopAAJ9p6ATgE+fzKCGf2kTzVym8kTkKgQCgs8cu 7MHDcAG5zXQOWyY1bDSNNNE= =xOls -----END PGP SIGNATURE----- --nextPart2394419.uQtfgOsVRy-- - 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/