Using parameters with apps loaded via bmodfs

Derick Swanepoel dswanepoel at gmail.com
Fri Jun 17 19:45:33 CEST 2005


On 6/16/05, Frank Mehnert <fm3 at os.inf.tu-dresden.de> wrote:
> Hi Derick,
> 
> On Thursday 16 June 2005 15:24, Derick Swanepoel wrote:
> > Is it possible to pass commandline parameters to an application loaded
> > with "run" when using bmodfs as file provider, without having to make
> > a config file?
> 
> Simply no, regardless which file provider do you use. If you want to
> pass command line parameters you have to use an appropriate script
> which run is passing to the loader.

When loading an app with the "run" console, command line parameters
work when using the TFTP file provider but not with bmodfs. I had a
look at the code and it was simple to fix: in
l4/pkg/generic_fprov/examples/bmodfs/dm.c, bmodfs compares the given
filename _with_ its parameters to the loaded filenames _without_ their
parameters. I've attached the patch -- I hope it can be of some use.

Derick
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: bmodfs_params.diff
URL: <http://os.inf.tu-dresden.de/pipermail/l4-hackers/attachments/20050617/f939550d/attachment.ksh>


More information about the l4-hackers mailing list