Florian Weimer | 1 May 2008 19:48
Picon

Submitting in-tree drivers (dl2k)

* Greg KH:

> On Tue, Apr 29, 2008 at 08:43:42PM +0200, Florian Weimer wrote:
>> Is it possible to submit in-tree drivers for consideration by the
>> project?
>
> Sure, but isn't it better to work with the current maintainer/author of
> the in-kernel code?  We would much rather prefer that.  Have you tried
> to do so?

No one is listed in MAINTAINERS AFAICT.  D-Link officially declared
they no longer support the driver.  Edward Peng, a D-Link employee
judging by his email address and whois is the author listed in the
file, does not react to email (or is currently on vacation--if a late
response arrives, I'll let you know).

The last committers performed mechanical changes only.  I'm not even
sure if those were tested using actual hardware.

> Sounds like a driver bug, try working with the existing developers.
> If you have problems with that, please let us know.

There's no commit/patch from the origial author in the Linux GIT
history, so I think he's inactive.

--

-- 
Florian Weimer                <fweimer at bfk.de>
BFK edv-consulting GmbH       http://www.bfk.de/
Kriegsstra?e 100              tel: +49-721-96201-1
D-76133 Karlsruhe             fax: +49-721-96201-99
(Continue reading)

Vadim Klishko | 23 May 2008 22:32
Favicon

Kernel Programming Questions

Hello Everybody,

Could anyone please tell me what functions I could call from a Linux kernel module to:

1) dynamically load a library,

2) get the address of an exported function,

3) unload the library?

Also, what are the functions that would allow me to read from and write to a binary or text file from within a
kernel module?

Any help will be sincerely appreciated.

Vadim

Greg KH | 24 May 2008 00:00
Gravatar

Kernel Programming Questions

On Fri, May 23, 2008 at 02:32:46PM -0600, Vadim Klishko wrote:
> Hello Everybody,
> 
> Could anyone please tell me what functions I could call from a Linux kernel module to:
> 
> 1) dynamically load a library,

None.

> 2) get the address of an exported function,

None.

> 3) unload the library?

None.

None of these things are things that you should do from within a kernel
module.

> Also, what are the functions that would allow me to read from and
> write to a binary or text file from within a kernel module?

None, this is not what a kernel module should ever be doing.

Let's turn it around the other way, what are you trying to achieve that
makes you think the above things are necessary to do?

> Any help will be sincerely appreciated.

(Continue reading)

Vadim Klishko | 24 May 2008 00:42
Favicon

Kernel Programming Questions

On Friday, May 23, 2008 4:00 PM, "Greg KH" wrote:

> On Fri, May 23, 2008 at 02:32:46PM -0600, Vadim Klishko wrote:
>> Hello Everybody,
>> 
>> Could anyone please tell me what functions I could call from a Linux kernel module to:
>> 
>> 1) dynamically load a library,
> 
> None.
> 
>> 2) get the address of an exported function,
> 
> None.
> 
>> 3) unload the library?
> 
> None.
> 
> None of these things are things that you should do from within a kernel
> module.
> 
>> Also, what are the functions that would allow me to read from and
>> write to a binary or text file from within a kernel module?
> 
> None, this is not what a kernel module should ever be doing.
> 
> Let's turn it around the other way, what are you trying to achieve that
> makes you think the above things are necessary to do?
> 
(Continue reading)

Fabio De Lorenzo | 24 May 2008 00:52
Picon

Kernel Programming Questions

Vadim,

If you want to access to Userspace and load a binary files from KS,
use request_firmware() .

But as Greg said, you have to better understand the meaning of kernel space.

Regards
Fabio

On Fri, May 23, 2008 at 3:42 PM, Vadim Klishko <vadim at cirque.com> wrote:
> On Friday, May 23, 2008 4:00 PM, "Greg KH" wrote:
>
>> On Fri, May 23, 2008 at 02:32:46PM -0600, Vadim Klishko wrote:
>>> Hello Everybody,
>>>
>>> Could anyone please tell me what functions I could call from a Linux kernel module to:
>>>
>>> 1) dynamically load a library,
>>
>> None.
>>
>>> 2) get the address of an exported function,
>>
>> None.
>>
>>> 3) unload the library?
>>
>> None.
>>
(Continue reading)

Jesper Juhl | 24 May 2008 00:53
Picon

Kernel Programming Questions

2008/5/24 Vadim Klishko <vadim at cirque.com>:
> On Friday, May 23, 2008 4:00 PM, "Greg KH" wrote:
>
>> On Fri, May 23, 2008 at 02:32:46PM -0600, Vadim Klishko wrote:
>>> Hello Everybody,
>>>
>>> Could anyone please tell me what functions I could call from a Linux kernel module to:
>>>
>>> 1) dynamically load a library,
>>
>> None.
>>
>>> 2) get the address of an exported function,
>>
>> None.
>>
>>> 3) unload the library?
>>
>> None.
>>
>> None of these things are things that you should do from within a kernel
>> module.
>>
>>> Also, what are the functions that would allow me to read from and
>>> write to a binary or text file from within a kernel module?
>>
>> None, this is not what a kernel module should ever be doing.
>>
>> Let's turn it around the other way, what are you trying to achieve that
>> makes you think the above things are necessary to do?
(Continue reading)

Greg KH | 24 May 2008 01:01
Gravatar

Kernel Programming Questions

On Fri, May 23, 2008 at 04:42:41PM -0600, Vadim Klishko wrote:
> On Friday, May 23, 2008 4:00 PM, "Greg KH" wrote:
> 
> > On Fri, May 23, 2008 at 02:32:46PM -0600, Vadim Klishko wrote:
> >> Hello Everybody,
> >> 
> >> Could anyone please tell me what functions I could call from a Linux kernel module to:
> >> 
> >> 1) dynamically load a library,
> > 
> > None.
> > 
> >> 2) get the address of an exported function,
> > 
> > None.
> > 
> >> 3) unload the library?
> > 
> > None.
> > 
> > None of these things are things that you should do from within a kernel
> > module.
> > 
> >> Also, what are the functions that would allow me to read from and
> >> write to a binary or text file from within a kernel module?
> > 
> > None, this is not what a kernel module should ever be doing.
> > 
> > Let's turn it around the other way, what are you trying to achieve that
> > makes you think the above things are necessary to do?
(Continue reading)

Vadim Klishko | 25 May 2008 01:47
Favicon

Kernel Programming Questions

On Friday, May 23, 2008 5:01 PM, "Greg KH" wrote:

> On Fri, May 23, 2008 at 04:42:41PM -0600, Vadim Klishko wrote:
>> On Friday, May 23, 2008 4:00 PM, "Greg KH" wrote:
>> 
>> > On Fri, May 23, 2008 at 02:32:46PM -0600, Vadim Klishko wrote:
>> >> Hello Everybody,
>> >> 
>> >> Could anyone please tell me what functions I could call from a Linux kernel module to:
>> >> 
>> >> 1) dynamically load a library,
>> > 
>> > None.
>> > 
>> >> 2) get the address of an exported function,
>> > 
>> > None.
>> > 
>> >> 3) unload the library?
>> > 
>> > None.
>> > 
>> > None of these things are things that you should do from within a kernel
>> > module.
>> > 

First of all, I want to thank all those who answered for their suggestions.

Second of all, I suspect my question about loading a library within a kernel module may have been
misunderstood. I am not talking about loading a user-space library. I am talking about loading my own
(Continue reading)

Domenico Andreoli | 25 May 2008 04:00
Picon
Gravatar

TW6800 based video capture boards

Hi,

  I have some shining boards based on Techwell TW6802 and a "working"
V4L2 driver provided by the producer. Ah.. I have also the specs of
those TW6802 chips. Everything has been purchased by my employer.

Now I am eager to publish everything but I can't right now. My employer
would not understand and I would be in a difficult position. He already
knows that those drivers are based on GPL software and then _are_ GPL
at all the effects but he still needs to completely understand how it
works. Those guys are always happy to use Linux for free but at the
time of giving anything back...

To make the long story short, I want to rewrite them. So, how do
you judge my (legal) position? Yes, you are not a lawyer but I would
appreciate any related advice anyway ;)

Since I am a kernel newbie I am expecting to receive lots of "leave
V4L2 to expert coders..." but I will try anyway. You are warned :)

Greg, is required any formal step to open a new driver project? As like
assigning a manager and the like?

Regards,
Domenico

-----[ Domenico Andreoli, aka cavok
 --[ http://www.dandreoli.com/gpgkey.asc
   ---[ 3A0F 2F80 F79C 678A 8936  4FEE 0677 9033 A20E BC50

(Continue reading)

James Chapman | 25 May 2008 10:40

Kernel Programming Questions

Vadim Klishko wrote:
> On Friday, May 23, 2008 5:01 PM, "Greg KH" wrote:
> 
>> On Fri, May 23, 2008 at 04:42:41PM -0600, Vadim Klishko wrote:
>>> On Friday, May 23, 2008 4:00 PM, "Greg KH" wrote:
>>>
>>>> On Fri, May 23, 2008 at 02:32:46PM -0600, Vadim Klishko wrote:
>>>>> Hello Everybody,
>>>>>
>>>>> Could anyone please tell me what functions I could call from a Linux kernel module to:
>>>>>
>>>>> 1) dynamically load a library,
>>>> None.
>>>>
>>>>> 2) get the address of an exported function,
>>>> None.
>>>>
>>>>> 3) unload the library?
>>>> None.
>>>>
>>>> None of these things are things that you should do from within a kernel
>>>> module.
>>>>
> 
> First of all, I want to thank all those who answered for their suggestions.
> 
> Second of all, I suspect my question about loading a library within a kernel module may have been
misunderstood. I am not talking about loading a user-space library. I am talking about loading my own
library written specifically to be used in kernel space.
> 
(Continue reading)


Gmane