28 April 2014, 13:51 | #1 |
Newbie Amiga programmer
Join Date: Jun 2012
Location: Front of my A500+
Age: 38
Posts: 372
|
"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? |
04 May 2014, 22:47 | #2 |
Registered User
Join Date: Sep 2008
Location: Germany
Age: 49
Posts: 137
|
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.
|
05 May 2014, 14:23 | #3 |
WinUAE developer
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,507
|
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. |
13 May 2014, 09:08 | #4 |
Newbie Amiga programmer
Join Date: Jun 2012
Location: Front of my A500+
Age: 38
Posts: 372
|
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. |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
UAE4All2 on an android "non-touch device" | KombatSanta | support.OtherUAE | 0 | 27 February 2014 17:08 |
Is it possible to get "netprinter.device" working on FS-UAE | nexusle | support.FS-UAE | 0 | 23 February 2013 11:58 |
"Reminder "Lincs Amiga User Group aka "LAG" Meet Sat 5th of January 2013" | rockape | News | 4 | 30 January 2013 00:06 |
After creating OS 3.9 Emergency Disk: Cannot open "cd.device" unit 2 | Snowwie | support.Other | 2 | 31 March 2012 14:44 |
Harddrive & "USB-xx-in-one-device" support | Borg_Number_One | request.UAE Wishlist | 2 | 19 September 2004 21:33 |
|
|