Xenomai API  2.6.5
core.c File Reference

Real-Time Driver Model for Xenomai, device operation multiplexing. More...

Include dependency graph for core.c:

Functions

struct rtdm_dev_contextrtdm_context_get (int fd)
 Retrieve and lock a device context. More...
 
int rtdm_select_bind (int fd, rtdm_selector_t *selector, enum rtdm_selecttype type, unsigned fd_index)
 Bind a selector to specified event types of a given file descriptor. More...
 
void rtdm_context_lock (struct rtdm_dev_context *context)
 Increment context reference counter. More...
 
void rtdm_context_unlock (struct rtdm_dev_context *context)
 Decrement context reference counter. More...
 
void rtdm_context_put (struct rtdm_dev_context *context)
 Release a device context obtained via rtdm_context_get() More...
 
int rtdm_open (const char *path, int oflag,...)
 Open a device. More...
 
int rtdm_socket (int protocol_family, int socket_type, int protocol)
 Create a socket. More...
 
int rtdm_close (int fd)
 Close a device or socket. More...
 
int rtdm_ioctl (int fd, int request,...)
 Issue an IOCTL. More...
 
ssize_t rtdm_read (int fd, void *buf, size_t nbyte)
 Read from device. More...
 
ssize_t rtdm_write (int fd, const void *buf, size_t nbyte)
 Write to device. More...
 
ssize_t rtdm_recvmsg (int fd, struct user_msghdr *msg, int flags)
 Receive message from socket. More...
 
ssize_t rtdm_recvfrom (int fd, void *buf, size_t len, int flags, struct sockaddr *from, socklen_t *fromlen)
 Receive message from socket. More...
 
ssize_t rtdm_recv (int fd, void *buf, size_t len, int flags)
 Receive message from socket. More...
 
ssize_t rtdm_sendmsg (int fd, const struct user_msghdr *msg, int flags)
 Transmit message to socket. More...
 
ssize_t rtdm_sendto (int fd, const void *buf, size_t len, int flags, const struct sockaddr *to, socklen_t tolen)
 Transmit message to socket. More...
 
ssize_t rtdm_send (int fd, const void *buf, size_t len, int flags)
 Transmit message to socket. More...
 
int rtdm_bind (int fd, const struct sockaddr *my_addr, socklen_t addrlen)
 Bind to local address. More...
 
int rtdm_connect (int fd, const struct sockaddr *serv_addr, socklen_t addrlen)
 Connect to remote address. More...
 
int rtdm_listen (int fd, int backlog)
 Listen for incomming connection requests. More...
 
int rtdm_accept (int fd, struct sockaddr *addr, socklen_t *addrlen)
 Accept a connection requests. More...
 
int rtdm_shutdown (int fd, int how)
 Shut down parts of a connection. More...
 
int rtdm_getsockopt (int fd, int level, int optname, void *optval, socklen_t *optlen)
 Get socket option. More...
 
int rtdm_setsockopt (int fd, int level, int optname, const void *optval, socklen_t optlen)
 Set socket option. More...
 
int rtdm_getsockname (int fd, struct sockaddr *name, socklen_t *namelen)
 Get local socket address. More...
 
int rtdm_getpeername (int fd, struct sockaddr *name, socklen_t *namelen)
 Get socket destination address. More...
 
int rt_dev_open (const char *path, int oflag,...)
 Open a device. More...
 
int rt_dev_socket (int protocol_family, int socket_type, int protocol)
 Create a socket. More...
 
int rt_dev_close (int fd)
 Close a device or socket. More...
 
int rt_dev_ioctl (int fd, int request,...)
 Issue an IOCTL. More...
 
ssize_t rt_dev_read (int fd, void *buf, size_t nbyte)
 Read from device. More...
 
ssize_t rt_dev_write (int fd, const void *buf, size_t nbyte)
 Write to device. More...
 
ssize_t rt_dev_recvmsg (int fd, struct user_msghdr *msg, int flags)
 Receive message from socket. More...
 
ssize_t rt_dev_recvfrom (int fd, void *buf, size_t len, int flags, struct sockaddr *from, socklen_t *fromlen)
 Receive message from socket. More...
 
ssize_t rt_dev_recv (int fd, void *buf, size_t len, int flags)
 Receive message from socket. More...
 
ssize_t rt_dev_sendmsg (int fd, const struct user_msghdr *msg, int flags)
 Transmit message to socket. More...
 
ssize_t rt_dev_sendto (int fd, const void *buf, size_t len, int flags, const struct sockaddr *to, socklen_t tolen)
 Transmit message to socket. More...
 
ssize_t rt_dev_send (int fd, const void *buf, size_t len, int flags)
 Transmit message to socket. More...
 
int rt_dev_bind (int fd, const struct sockaddr *my_addr, socklen_t addrlen)
 Bind to local address. More...
 
int rt_dev_connect (int fd, const struct sockaddr *serv_addr, socklen_t addrlen)
 Connect to remote address. More...
 
int rt_dev_listen (int fd, int backlog)
 Listen for incomming connection requests. More...
 
int rt_dev_accept (int fd, struct sockaddr *addr, socklen_t *addrlen)
 Accept a connection requests. More...
 
int rt_dev_shutdown (int fd, int how)
 Shut down parts of a connection. More...
 
int rt_dev_getsockopt (int fd, int level, int optname, void *optval, socklen_t *optlen)
 Get socket option. More...
 
int rt_dev_setsockopt (int fd, int level, int optname, const void *optval, socklen_t optlen)
 Set socket option. More...
 
int rt_dev_getsockname (int fd, struct sockaddr *name, socklen_t *namelen)
 Get local socket address. More...
 
int rt_dev_getpeername (int fd, struct sockaddr *name, socklen_t *namelen)
 Get socket destination address. More...
 

Detailed Description

Real-Time Driver Model for Xenomai, device operation multiplexing.

Note
Copyright (C) 2005 Jan Kiszka jan.k.nosp@m.iszk.nosp@m.a@web.nosp@m..de
Copyright (C) 2005 Joerg Langenberg joerg.nosp@m..lan.nosp@m.genbe.nosp@m.rg@g.nosp@m.mx.ne.nosp@m.t

Xenomai is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

Xenomai is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with Xenomai; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.