Dear list,
   You might consider this approach to calling kernel routines directly from
a driver in 2.6.
 
I reversed the logic so that the streams interface calls are defined as :-

STATIC void __attribute__ ((regparm(0)))rput(queue_t *q, mblk_t *mp);

But the driver is built with relevant -mregparm setting.

John


-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: 02 September 2005 00:34
To: [EMAIL PROTECTED]
Cc: [email protected]
Subject: Re: [Linux-streams] what is _RP ?

> Do you really need pci_register_driver?

This seems to be the only way to support hot-plugable devices.




Dan Gora <[EMAIL PROTECTED]> wrote:

>
>
>--- [EMAIL PROTECTED] wrote:
>
>> Dan Gora <[EMAIL PROTECTED]> wrote:
>> 
>> > If you call a kernel function directly on a kernel
>> > which uses -mregparm=3, then it will crash since that called
>> > function's parameters will not be where the function expects them
>> to
>> > be.
>> 
>> The problem is that I do call pci_register_driver() directly.
>> I do not see any LiS equivalent for that one.
>> Is there any?
>>
>
>No there is not but I don't think that you need it.  I don't use it. 
>I just use pci_enable_device, which is redef'd to an LiS function,
>lis_pci_enable_device.  Do you really need pci_register_driver?
>
>dan
>
>

__________________________________________________________________
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
_______________________________________________
Linux-streams mailing list
[email protected]
http://gsyc.escet.urjc.es/mailman/listinfo/linux-streams

Reply via email to