Attach / detach Syscall API
[Level 0 API (Syscall API)]

Collaboration diagram for Attach / detach Syscall API:


Functions

int a4l_sys_attach (int fd, a4l_lnkdesc_t *arg)
 Attach an Analogy device to a driver.
int a4l_sys_detach (int fd)
 Detach an Analogy device from a driver.


Function Documentation

int a4l_sys_attach ( int  fd,
a4l_lnkdesc_t *  arg 
)

Attach an Analogy device to a driver.

Parameters:
[in] fd File descriptor as returned by a4l_sys_open()
[in] arg Link descriptor argument
Returns:
0 on success. Otherwise:
  • -ENOMEM is returned if the system is out of memory
  • -EINVAL is returned if some argument is missing or wrong (Please, type "dmesg" for more info)
  • -EFAULT is returned if a user <-> kernel transfer went wrong
  • -ENODEV is returned in case of internal error (Please, type "dmesg" for more info)
  • -ENXIO is returned in case of internal error (Please, type "dmesg" for more info)

int a4l_sys_detach ( int  fd  ) 

Detach an Analogy device from a driver.

Parameters:
[in] fd File descriptor as returned by a4l_sys_open()
Returns:
0 on success. Otherwise:
  • -EINVAL is returned if some argument is missing or wrong (Please, type "dmesg" for more info)
  • -EBUSY is returned if the device to be detached is in use
  • -EPERM is returned if the devive to be detached still has some buffer mapped in user-space
  • -ENODEV is returned in case of internal error (Please, type "dmesg" for more info)
  • -ENXIO is returned in case of internal error (Please, type "dmesg" for more info)


Generated on Sun Mar 28 19:46:54 2010 for Xenomai API by  doxygen 1.5.6