Menu

Tree [5b476b] master /
 History

HTTPS access


File Date Author Commit
 kernel 2015-04-24 Oscar Jara Oscar Jara [5b476b] Middle path to something
 .gitignore 2015-02-01 Oscar Jara Oscar Jara [dbb478] Some cleanup
 Makefile 2015-01-25 Oscar Jara Oscar Jara [1a014a] Initial Commit
 Module.symvers 2015-01-25 Oscar Jara Oscar Jara [1a014a] Initial Commit
 README 2015-02-14 Oscar Jara Oscar Jara [52f4a6] All routines migrated.
 modules.order 2015-01-25 Oscar Jara Oscar Jara [1a014a] Initial Commit
 mol_replace.c 2015-04-24 Oscar Jara Oscar Jara [5b476b] Middle path to something

Read Me

To migrate a new syscall to the module follow these steps:

*) A routine originally named mol_foo_bar(void) will be replaced by a replacement 
routine called mm_mol_foo_bar(void).

1) Add the replacement routine prototype in section "FUNCTION PROTOTYPES".
    asmlinkage long mm_mol_foo_bar(void);

2) Add the replacement routine code in section "SYSCALL REPLACEMENTS".
    asmlinkage long mm_mol_foo_bar(void) {
        /* same code as mol_foo_bar() */
    }

3) Add the function pointer to the mm_mol_foo_bar() to the mm_mol_routines[]
array.

4) Add the name as string of the mol_foo_bar() routine to  the mol_sys_routine_names[]
array.

5) Increment by one the MOL_ROUTINES_NR constant.

6) If the routine depends on auxiliary routines, include it in the "AUXILIARY ROUTINES"
section.

OTHER INFO: https://docs.google.com/document/d/1IPp6lS-AF6wlezkxOJx7tbmxf4ne4ilE75z0HiOFrnE/edit?usp=sharing

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.