RISC OS Open
A fast and easily customised operating system for ARM devices
ROOL
Home | News | Software | Bugs | Bounties | Forum | Documents | Photos | Contact us
Account

Service_DeviceFSCloseRequest

Programmer's Reference Manuals
» Part 16 – Service Calls
» Service_DeviceFSCloseRequest

Service_DeviceFSCloseRequest

(Service &81)
Entry  
R1 129 (&81)
R2 File handle
Exit  
Preserve all registers to pass on, else
R1 0 (claim, if you were able to close file in R2)

Use

This service is issued by DeviceFS? when an open attempt on a device cannot be complete.

Notes

The reason for this service call being issued by DeviceFS are:

  • That device already has its maximum number of streams open
  • A non-full-duplex device has one or more streams open in the conflicting direction

Hopefully sufficient blocking streams can be closed, which will allow the open request to be fulfilled. If you opened the stream in R2, and it need no longer be kept open, then you should close it and claim the service. The kernel responds to this service to close the printer and serial devices if it has implicitly opened them.

See also

  • DeviceFS?
  • Service Calls
  • Service_DeviceDead
  • Service_DeviceFSDying
  • Service_DeviceFSStarting
Created on December 12, 2009 20:57:39 by Alan Robertson (52)? (127.0.0.1)
Edit | Views: Print | Source | Linked from: Service Calls, Service_DeviceDead

Search the Wiki

Commercial use

For commercial enquiries, please contact the owners of RISC OS, Castle Technology Ltd.

ROOL Store

The official C/C++ Development kit and more here.

Donate! Why?

Help ROOL make things happen – please consider donating!

Navigation

  • Home Page
  • All Pages
  • Recently Revised
  • Authors
  • Feeds
Site design © RISC OS Open Limited 2011 except where indicated
The RISC OS Open Instiki theme is based on Insitki's default layout

Valid XHTML 1.0  |  Valid CSS

Instiki 0.19.1(MML+)
This site runs on Rails

Hosted by Arachsys