Paul Koning wrote:
>
> >>>>> "Dresner," == Dresner, Norman A <[EMAIL PROTECTED]> writes:
>
> Dresner,> It has to be possible to "re-create" functions like strcat
> Dresner,> et al that are usable in the kernel, and I have difficulty
> Dresner,> believing that someone hasn't already done just that.
>
> You don't need to re-create anything. All you need is to link the
> relevant object library with your module.
>
> That assumes, of course, that the library doesn't need to do system
> calls (like malloc). For example, the strings stuff should be fine
> except for "strstr". Math should be fine unless there's some
> exception related stuff in it.
Use the functions in include/asm-i386/string-486.h
Although the call 'strstr' does not appear in string.h it is in this
file.
These functions are written in 486 assembly code and thus completely
independent of Linux. That is if you are using a 486 or better. If you
are using a different architecture look for a similar file in your asm
directory to see if 'strstr' is supported.
- Kal.
>
> >> you cannot use standard library functions in your modules.
>
> That's not true. It's true for libraries that use Linux system
> services; for libraries that are just self-contained functions, there
> is no problem.
>
> >> You
> >> can use functions of your own or ones provided by kernel (man
> >> ksyms). On this mailing list, it was mentioned that it's possible
> >> to use math functions (-lm) in the modules.
>
> Right...
>
> paul
> -- [rtl] ---
> To unsubscribe:
> echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
> echo "unsubscribe rtl <Your_email>" | mail [EMAIL PROTECTED]
> ---
> For more information on Real-Time Linux see:
> http://www.rtlinux.org/~rtlinux/
-- [rtl] ---
To unsubscribe:
echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
echo "unsubscribe rtl <Your_email>" | mail [EMAIL PROTECTED]
---
For more information on Real-Time Linux see:
http://www.rtlinux.org/~rtlinux/