[Rtai] [PATCH] Use MODULE_ALIAS instead of symlinks for aliasing legacy module names
Lukas Anzinger
l.anzinger at gmail.com
Wed May 7 13:29:47 CEST 2014
Hi,
instead of using symlinking legacy names of modules to preserve backwards
compatibility MODULE_ALIAS() should be used.
I've prepared a patch that removes the symlink creation from the makefile and
adds MODULE_ALIAS() macros to the corresponding kernel module instead.
After compiling and invoking depmod it works fine for me, i.e. it's possible
to load rtai_sched using one of the aliases (e.g. rtai_up, rtai_mup, etc.):
$ modinfo rtai_sched
filename: /lib/modules/3.10-3-rtai-686-pae/rtai/rtai_sched.ko
alias: rtai_lxrt
alias: rtai_ksched
alias: rtai_smp
alias: rtai_mup
alias: rtai_up
license: GPL
license: GPL
depends: rtai_hal
vermagic: 3.10-3-kajot-686-pae SMP mod_unload modversions 686
parm: rtai_global_heap_size:int
parm: rtai_kstack_heap_size:int
parm: OneShot:int
parm: Latency:int
parm: SetupTimeTIMER:int
IMHO this is a much cleaner approach.
Regards,
Lukas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Use-MODULE_ALIAS-instead-of-symlinks-for-aliasing-le.patch
Type: text/x-patch
Size: 2266 bytes
Desc: not available
URL: <http://mail.rtai.org/pipermail/rtai/attachments/20140507/97541765/attachment.bin>
More information about the Rtai
mailing list