[fpc-pascal] Re: Building (linux) kernel modules using fpc (for fun)

Lukasz Sokol el.es.cr at gmail.com
Sat Jan 15 21:16:14 CET 2011


Jonas Maebe <jonas.maebe at ...> writes:


> > [16646.934537] kernel_pmodule: Unknown symbol unregister_chrdev
> > [16646.934835] kernel_pmodule: Unknown symbol proc_root
> > [16646.935174] kernel_pmodule: Unknown symbol register_chrdev
> 
> Since the Linux kernel breaks ABI compatibility on purpose all the time, any
source code example of a kernel
> module is probably only going to to work with a few kernel versions. E.g., in
the current kernel
> register_chrdev() is a "static inline" function, which means that it does not
exist as a separate
> function/symbol inside the final compiled kernel.
> 
> Jonas


Hello Jonas, thanks for reply :)
Seems like the instructions don't just have a very fortunate example maybe?

(let's see if I can understand enough just to produce an insmodable 'hello
world' example...  )



Lukasz




More information about the fpc-pascal mailing list