EugeneLisStreams,

On Wed, 31 Aug 2005, [EMAIL PROTECTED] wrote:

> Brian,
> 
> 1.
> Does it mean I now have to append _RP before my mod_open(), mod_close()
> and other functions from my driver which I use to populate qinit structure
> in the same manner as LiS 2.18 does it before connld_open?
> 
> Like if 2.18 does:
> 
> static int  _RP connld_open(queue_t *, dev_t*, int, int, cred_t *);
> 
> should I also do :
> 
> int _RP mymod_open(...);
> ?


Dunno. I defeated the entire _RP thing in the autoconf build.  The
autoconf build properly detects kernel build parameters.

> 
> 2.
> 
> LiS does a good job of finding CC compilation options based on
> info extracted from kernel and other sources.
> 
> When I compile my module for LiS I apparently need to use exactly 
> the same CC options that LiS has already found and used.

Actually, it does a poor job.  For 2.18.1 build I rip kernel flags
out of the kernel Makefiles with an autoconf macro.

Also, stock LiS is quite poor at handling distro kernels, because
it uses kernel.org version tests.  The same autoconf macros I use
test kernel headers for specific patterns so adapt better to
production distro kernels that have various patches applied.

> 
> Is there any elegant way to 'steal' this CC options from LiS
> so that I will not need to get into a trouble of finding
> them from the kernel and sources again?

I use the same autoconf macros for building packages against LiS
and LfS.

> 
> LiS could save them somewhere, so that I could take and use them?

The autoconf build places them in a config.cache file.

--brian

> 
> thanks for your comments,
> --
> Eugene
> 
> 
> "Brian F. G. Bidulock" <[EMAIL PROTECTED]> wrote:
> >EugeneLisStreams,
> >Sometimes
> >#define _RP __attribute__((regparm(3)))
> >othertimes
> >#define _RP
> 
> 
> __________________________________________________________________
> Switch to Netscape Internet Service.
> As low as $9.95 a month -- Sign up today at http://isp.netscape.com/register
> 
> Netscape. Just the Net You Need.
> 
> New! Netscape Toolbar for Internet Explorer
> Search from anywhere on the Web and block those annoying pop-ups.
> Download now at http://channels.netscape.com/ns/search/install.jsp
> _______________________________________________
> Linux-streams mailing list
> [email protected]
> http://gsyc.escet.urjc.es/mailman/listinfo/linux-streams

-- 
Brian F. G. Bidulock    ¦ The reasonable man adapts himself to the ¦
[EMAIL PROTECTED]    ¦ world; the unreasonable one persists in  ¦
http://www.openss7.org/ ¦ trying  to adapt the  world  to himself. ¦
                        ¦ Therefore  all  progress  depends on the ¦
                        ¦ unreasonable man. -- George Bernard Shaw ¦
_______________________________________________
Linux-streams mailing list
[email protected]
http://gsyc.escet.urjc.es/mailman/listinfo/linux-streams

Reply via email to