English Amiga Board

Go Back   English Amiga Board > Coders > Coders. General

Thread Tools
Old 28 April 2014, 14:51   #1
Newbie Amiga programmer

Join Date: Jun 2012
Location: Front of my A500+
Age: 32
Posts: 111
"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?
TCH is offline  
Old 04 May 2014, 23:47   #2
Registered User

Apollo's Avatar
Join Date: Sep 2008
Location: Germany
Age: 44
Posts: 125
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.
Apollo is offline  
Old 05 May 2014, 15:23   #3
Toni Wilen
WinUAE developer
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 43
Posts: 22,110
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.
Toni Wilen is online now  
Old 13 May 2014, 10:08   #4
Newbie Amiga programmer

Join Date: Jun 2012
Location: Front of my A500+
Age: 32
Posts: 111
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.
TCH is offline  

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 18:08
Is it possible to get "netprinter.device" working on FS-UAE nexusle support.FS-UAE 0 23 February 2013 12:58
"Reminder "Lincs Amiga User Group aka "LAG" Meet Sat 5th of January 2013" rockape News 4 30 January 2013 01:06
After creating OS 3.9 Emergency Disk: Cannot open "cd.device" unit 2 Snowwie support.Other 2 31 March 2012 15:44
Harddrive & "USB-xx-in-one-device" support Borg_Number_One request.UAE Wishlist 2 19 September 2004 22:33

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT +2. The time now is 15:32.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2018, vBulletin Solutions Inc.
Page generated in 0.06141 seconds with 13 queries