Cannot mount linprocfs by unresolving sysvs?m symbols
    Roman Divacky 
    rdivacky at FreeBSD.org
       
    Fri Apr  6 18:11:41 UTC 2007
    
    
  
> > is there a way to do this nicely?
> 
> Probably we can improve kernel linker to do better job. ;-)  I mean, 
> load all dependencies before look up symbols.
thats not what I mean.. what I want is something like
if (function_present(foo))
   x = foo();
else
   x = SAFE_VALUE;
use x somehow;
so we don't have to have all modules loaded etc. the same could be done
for some syscalls, imagine
linux_foo(params)
{
   if (function_present(foo))
      return foo(params);
  else 
      return ENOSYS;
}
I like this better then loading all possible modules.
    
    
More information about the freebsd-current
mailing list