plustek: Driver doesn't work on >= 2.4.0-test8


Previous by date: 17 Oct 2000 07:28:33 -0000 Re: Driver doesn't work on >= 2.4.0-test8, Mark Bialkowski
Next by date: 17 Oct 2000 07:28:33 -0000 Re: Driver doesn't work on >= 2.4.0-test8, Jorge Nerin
Previous in thread: 17 Oct 2000 07:28:33 -0000 Re: Driver doesn't work on >= 2.4.0-test8, Mark Bialkowski
Next in thread: 17 Oct 2000 07:28:33 -0000 Re: Driver doesn't work on >= 2.4.0-test8, Jorge Nerin

Subject: Re: Driver doesn't work on >= 2.4.0-test8
From: "Jaeger, Gerhard" ####@####.####
Date: 17 Oct 2000 07:28:33 -0000
Message-Id: <00101709314401.00733@gja>

Hi Mark,

On Mon, 16 Okt 2000, Mark Bialkowski wrote:
> Hey Gerhard:
> 
> Looks like a no-go on the sysdep-2.1.h update you sent.  

Nope.

> The problem seems
> to be that the kernel simply doesn't recognize the get_user_ret and
> put_user_ret symbols, since they were completely dropped from uaccess.h, so
> it won't load the module even if you define the functions back into the
> driver.  A grep of the test9 source shows absolutely no sign of either
> put_user_ret or get_user_ret.
> 
> It looks as if the equivalent to put_user_ret(a,b,return) in test8/9/beyond
> is
> 
> 	if (put_user(a,b))
> 		return value;
> 
> Yeah.  It's that ugly.  
> 

You are right, the "function" has been dropped, but it has always been
a macro in uaccess.h (exactly the one which now is in sysdep-2.1.h).
I currently build test9 and loaded the driver - no problem.
Have a look at kernel-source 2.2.x - uaccess.h, there's exactly the same
macro. The only kernel-functions we need are put_user and get_user.

So give it a try! Here it works.
Gerhard

Previous by date: 17 Oct 2000 07:28:33 -0000 Re: Driver doesn't work on >= 2.4.0-test8, Mark Bialkowski
Next by date: 17 Oct 2000 07:28:33 -0000 Re: Driver doesn't work on >= 2.4.0-test8, Jorge Nerin
Previous in thread: 17 Oct 2000 07:28:33 -0000 Re: Driver doesn't work on >= 2.4.0-test8, Mark Bialkowski
Next in thread: 17 Oct 2000 07:28:33 -0000 Re: Driver doesn't work on >= 2.4.0-test8, Jorge Nerin


Powered by ezmlm-browse 0.20.