Skip to contentSkip to conversation

Address translation

DISCUSSION Rub�n Gallardo Fructuoso 4 participants 4 messages Nov 21, 2000

lore
Share & tools
lore
#0 lore raw

Hi everybody!

I'm developing a module of file system filter and I have a question about
it. Does anybody know a function or method in order to translate an user space pointer into a valid pointer in kernel mode?

I'd like to avoid copying data (such as the 'copy_to_user' and
'copy_from_user' functions do) because it slows down my system.

Thanks in advance,
Rubén.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
Please read the FAQ at http://www.tux.org/lkml/

#1 lore raw
Quoted 5 lines · [email protected] said:

Does anybody know a function or method in order to translate an user space pointer into a valid pointer in kernel mode?

I'd like to avoid copying data (such as the 'copy_to_user' and
'copy_from_user' functions do) because it slows down my system.

The reason that everyone else uses copy_{to,from}_user is that there is no way to guarantee that the userspace pointer is valid. That memory may have been swapped out. The copy macros are prepared to fault the memory in. The rest of the kernel is not.

Jeff

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
Please read the FAQ at http://www.tux.org/lkml/

#2 lore raw

3c527 driver won't receive packets

In reply to Rub�n Gallardo Fructuoso

I was hoping to use some Etherlink MC/32 cards in my MCA Server 95.

The card will transmit packets, I can see them on another machine with tcpdump. But it will not receive any packets.

I've already tried 3 different Etherlink MC/32 cards. Each one passes the 3Com diagnostics. I get the same result with 2.4.0-test11 and 2.2.18pre5.

The same server works fine on the LAN with a 3c529 MCA card. The 3c529 is a slower card, so I would prefer to use the MC/32 cards if possible.

Any hints on solving the problem?

Egan

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
Please read the FAQ at http://www.tux.org/lkml/

#3 lore raw

Re: 3c527 driver won't receive packets

Quoted 2 lines

The card will transmit packets, I can see them on another machine with tcpdump. But it will not receive any packets.

I've had a couple of reports like this. Basically I own two MC/32 cards and one PS/2 and it 'works for me'

Quoted 1 line

Any hints on solving the problem?

Someone sent me an improved 3c527 driver. If you want to become a tester of it then drop me a mail off list.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
Please read the FAQ at http://www.tux.org/lkml/