English Amiga Board

English Amiga Board (https://eab.abime.net/index.php)
-   Coders. General (https://eab.abime.net/forumdisplay.php?f=37)
-   -   "mountable" .device (https://eab.abime.net/showthread.php?t=73494)

TCH 28 April 2014 13:51

"mountable" .device
 
Is there a sample or example of source about .device files, more specifically a mountable one?

If not, how can i make a .device, which can be mounted and used? I would like to write a Linux/BSD-Amiga LPT FS, like parnet, but with the server is always the Linux/BSD on a PC and Amiga is the client.

The parallel communication is already working, i wrote a Linux command line tool and an Amiga LPT "server" for putting/getting files (dirlists), but i would like to make it more comfortable and system friendly, and do the controlling from the Amiga side.

I looked at parnet.device's sources, but i did not understand the whole (the handlers' source is not included in it); actually i would curious about which functions should i provide in the device for the AmigaOS and how (dunno, like file opening, directory listing, etc.).

Can anyone help me on this?

Apollo 04 May 2014 22:47

A commented example in assembler is part of the 'ROM Kernal Reference Manual: Devices' (RKM Devices). This documentation is sold as part of the Developer CD. You may find the documents on the net, too.

Toni Wilen 05 May 2014 14:23

You need filesystem handler. Device driver won't help. Any network or virtual device (like ram disk) requires custom filesystem handler implementation.

Unfortunately (at least I don't know any) "How to create skeleton filesystem handler" guide does not exist. Creating filesystem also requires very good knowledge of AmigaDOS internals.

You can check some opensource filesystems, for example AROS includes multiple open source filesystem handlers. UAE host directory access is also implemented with custom filesystem handler.

TCH 13 May 2014 09:08

Apollo: I already got that, but i am a beginner, the assembler version is a bit tough for a first; but thanks for the tip.

Toni: Yeah, i figured out it meanwhile, that i'll need a handler. Somebody sent me the source of the null-handler, but i'll check the AROS and UAE sources too, thanks.


All times are GMT +2. The time now is 18:36.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.

Page generated in 0.04802 seconds with 11 queries