Changeset 1083

Show
Ignore:
Timestamp:
10/04/08 23:56:00 (3 months ago)
Author:
mwhitworth
Message:

Sketch out ModuleRequest function; will write soon.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • Whitix/branches/keobject/kernel/module.c

    r1075 r1083  
    420420        return 0; 
    421421} 
     422 
     423int ModuleRequest(const char* fmt, ...) 
     424{ 
     425        VaList list; 
     426        char* name; 
     427         
     428        VaStart(list, fmt); 
     429        name = vasprintf(fmt, list); 
     430        VaEnd(list); 
     431         
     432        /* TODO: Call userspace service that will load modules based on name, device 
     433         * ID or lack of system call 
     434         */ 
     435         
     436        MemFree(name); 
     437         
     438        return 0; 
     439}