Xenomai
3.1
|
Inter-driver interface. More...
Functions | |
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 to incoming connection requests More... | |
int | rtdm_accept (int fd, struct sockaddr *addr, socklen_t *addrlen) |
Accept a connection request 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... | |
Inter-driver interface.
int rtdm_accept | ( | int | fd, |
struct sockaddr * | addr, | ||
socklen_t * | addrlen | ||
) |
Accept a connection request
Accept connection requests
Refer to rtdm_accept() for parameters and return values. Action depends on driver implementation, see Device Profiles.
[in] | fd | File descriptor as returned by rtdm_socket() |
[out] | addr | Buffer for remote address |
[in,out] | addrlen | Address buffer size |
Action depends on driver implementation, see Device Profiles.
accept()
in IEEE Std 1003.1, http://www.opengroup.org/onlinepubs/009695399int rtdm_bind | ( | int | fd, |
const struct sockaddr * | my_addr, | ||
socklen_t | addrlen | ||
) |
Bind to local address
Refer to rtdm_bind() for parameters and return values. Action depends on driver implementation, see Device Profiles.
[in] | fd | File descriptor as returned by rtdm_socket() |
[in] | my_addr | Address buffer |
[in] | addrlen | Address buffer size |
Action depends on driver implementation, see Device Profiles.
bind()
in IEEE Std 1003.1, http://www.opengroup.org/onlinepubs/009695399int rtdm_close | ( | int | fd | ) |
Close a device or socket
Refer to rtdm_close() for parameters and return values. Action depends on driver implementation, see Device Profiles.
[in] | fd | File descriptor as returned by rtdm_open() or rtdm_socket() |
Action depends on driver implementation, see Device Profiles.
close()
in IEEE Std 1003.1, http://www.opengroup.org/onlinepubs/009695399int rtdm_connect | ( | int | fd, |
const struct sockaddr * | serv_addr, | ||
socklen_t | addrlen | ||
) |
Connect to remote address
Refer to rtdm_connect() for parameters and return values. Action depends on driver implementation, see Device Profiles.
[in] | fd | File descriptor as returned by rtdm_socket() |
[in] | serv_addr | Address buffer |
[in] | addrlen | Address buffer size |
Action depends on driver implementation, see Device Profiles.
connect()
in IEEE Std 1003.1, http://www.opengroup.org/onlinepubs/009695399int rtdm_getpeername | ( | int | fd, |
struct sockaddr * | name, | ||
socklen_t * | namelen | ||
) |
Get socket destination address
Refer to rtdm_getpeername() for parameters and return values. Action depends on driver implementation, see Device Profiles.
[in] | fd | File descriptor as returned by rtdm_socket() |
[out] | name | Address buffer |
[in,out] | namelen | Address buffer size |
Action depends on driver implementation, see Device Profiles.
getpeername()
in IEEE Std 1003.1, http://www.opengroup.org/onlinepubs/009695399int rtdm_getsockname | ( | int | fd, |
struct sockaddr * | name, | ||
socklen_t * | namelen | ||
) |
Get local socket address
Refer to rtdm_getsockname() for parameters and return values. Action depends on driver implementation, see Device Profiles.
[in] | fd | File descriptor as returned by rtdm_socket() |
[out] | name | Address buffer |
[in,out] | namelen | Address buffer size |
Action depends on driver implementation, see Device Profiles.
getsockname()
in IEEE Std 1003.1, http://www.opengroup.org/onlinepubs/009695399int rtdm_getsockopt | ( | int | fd, |
int | level, | ||
int | optname, | ||
void * | optval, | ||
socklen_t * | optlen | ||
) |
Get socket option
Refer to rtdm_getsockopt() for parameters and return values. Action depends on driver implementation, see Device Profiles.
[in] | fd | File descriptor as returned by rtdm_socket() |
[in] | level | Addressed stack level |
[in] | optname | Option name ID |
[out] | optval | Value buffer |
[in,out] | optlen | Value buffer size |
Action depends on driver implementation, see Device Profiles.
getsockopt()
in IEEE Std 1003.1, http://www.opengroup.org/onlinepubs/009695399int rtdm_ioctl | ( | int | fd, |
int | request, | ||
... | |||
) |
Issue an IOCTL
Refer to rtdm_ioctl() for parameters and return values. Action depends on driver implementation, see Device Profiles.
[in] | fd | File descriptor as returned by rtdm_open() or rtdm_socket() |
[in] | request | IOCTL code |
... | Optional third argument, depending on IOCTL function (void * or unsigned long ) |
Action depends on driver implementation, see Device Profiles.
ioctl()
in IEEE Std 1003.1, http://www.opengroup.org/onlinepubs/009695399int rtdm_listen | ( | int | fd, |
int | backlog | ||
) |
Listen to incoming connection requests
Listen for incomming connection requests
Refer to rtdm_listen() for parameters and return values. Action depends on driver implementation, see Device Profiles.
[in] | fd | File descriptor as returned by rtdm_socket() |
[in] | backlog | Maximum queue length |
Action depends on driver implementation, see Device Profiles.
listen()
in IEEE Std 1003.1, http://www.opengroup.org/onlinepubs/009695399int rtdm_open | ( | const char * | path, |
int | oflag, | ||
... | |||
) |
Open a device
Refer to rtdm_open() for parameters and return values
[in] | path | Device name |
[in] | oflag | Open flags |
... | Further parameters will be ignored. |
Action depends on driver implementation, see Device Profiles.
open()
in IEEE Std 1003.1, http://www.opengroup.org/onlinepubs/009695399ssize_t rtdm_read | ( | int | fd, |
void * | buf, | ||
size_t | nbyte | ||
) |
Read from device
Refer to rtdm_read() for parameters and return values. Action depends on driver implementation, see Device Profiles.
[in] | fd | File descriptor as returned by rtdm_open() |
[out] | buf | Input buffer |
[in] | nbyte | Number of bytes to read |
Action depends on driver implementation, see Device Profiles.
read()
in IEEE Std 1003.1, http://www.opengroup.org/onlinepubs/009695399ssize_t rtdm_recv | ( | int | fd, |
void * | buf, | ||
size_t | len, | ||
int | flags | ||
) |
Receive message from socket
Refer to rtdm_recv() for parameters and return values. Action depends on driver implementation, see Device Profiles.
[in] | fd | File descriptor as returned by rtdm_socket() |
[out] | buf | Message buffer |
[in] | len | Message buffer size |
[in] | flags | Message flags |
Action depends on driver implementation, see Device Profiles.
recv()
in IEEE Std 1003.1, http://www.opengroup.org/onlinepubs/009695399ssize_t rtdm_recvfrom | ( | int | fd, |
void * | buf, | ||
size_t | len, | ||
int | flags, | ||
struct sockaddr * | from, | ||
socklen_t * | fromlen | ||
) |
Receive message from socket
Refer to rtdm_recvfrom() for parameters and return values. Action depends on driver implementation, see Device Profiles.
[in] | fd | File descriptor as returned by rtdm_socket() |
[out] | buf | Message buffer |
[in] | len | Message buffer size |
[in] | flags | Message flags |
[out] | from | Buffer for message sender address |
[in,out] | fromlen | Address buffer size |
Action depends on driver implementation, see Device Profiles.
recvfrom()
in IEEE Std 1003.1, http://www.opengroup.org/onlinepubs/009695399ssize_t rtdm_recvmsg | ( | int | fd, |
struct user_msghdr * | msg, | ||
int | flags | ||
) |
Receive message from socket
Refer to rtdm_recvmsg() for parameters and return values. Action depends on driver implementation, see Device Profiles.
[in] | fd | File descriptor as returned by rtdm_socket() |
[in,out] | msg | Message descriptor |
[in] | flags | Message flags |
Action depends on driver implementation, see Device Profiles.
recvmsg()
in IEEE Std 1003.1, http://www.opengroup.org/onlinepubs/009695399ssize_t rtdm_send | ( | int | fd, |
const void * | buf, | ||
size_t | len, | ||
int | flags | ||
) |
Transmit message to socket
Refer to rtdm_send() for parameters and return values. Action depends on driver implementation, see Device Profiles.
[in] | fd | File descriptor as returned by rtdm_socket() |
[in] | buf | Message buffer |
[in] | len | Message buffer size |
[in] | flags | Message flags |
Action depends on driver implementation, see Device Profiles.
send()
in IEEE Std 1003.1, http://www.opengroup.org/onlinepubs/009695399ssize_t rtdm_sendmsg | ( | int | fd, |
const struct user_msghdr * | msg, | ||
int | flags | ||
) |
Transmit message to socket
Refer to rtdm_sendmsg() for parameters and return values. Action depends on driver implementation, see Device Profiles.
[in] | fd | File descriptor as returned by rtdm_socket() |
[in] | msg | Message descriptor |
[in] | flags | Message flags |
Action depends on driver implementation, see Device Profiles.
sendmsg()
in IEEE Std 1003.1, http://www.opengroup.org/onlinepubs/009695399ssize_t rtdm_sendto | ( | int | fd, |
const void * | buf, | ||
size_t | len, | ||
int | flags, | ||
const struct sockaddr * | to, | ||
socklen_t | tolen | ||
) |
Transmit message to socket
Refer to rtdm_sendto() for parameters and return values. Action depends on driver implementation, see Device Profiles.
[in] | fd | File descriptor as returned by rtdm_socket() |
[in] | buf | Message buffer |
[in] | len | Message buffer size |
[in] | flags | Message flags |
[in] | to | Buffer for message destination address |
[in] | tolen | Address buffer size |
Action depends on driver implementation, see Device Profiles.
sendto()
in IEEE Std 1003.1, http://www.opengroup.org/onlinepubs/009695399int rtdm_setsockopt | ( | int | fd, |
int | level, | ||
int | optname, | ||
const void * | optval, | ||
socklen_t | optlen | ||
) |
Set socket option
Refer to rtdm_setsockopt() for parameters and return values. Action depends on driver implementation, see Device Profiles.
[in] | fd | File descriptor as returned by rtdm_socket() |
[in] | level | Addressed stack level |
[in] | optname | Option name ID |
[in] | optval | Value buffer |
[in] | optlen | Value buffer size |
Action depends on driver implementation, see Device Profiles.
setsockopt()
in IEEE Std 1003.1, http://www.opengroup.org/onlinepubs/009695399int rtdm_shutdown | ( | int | fd, |
int | how | ||
) |
Shut down parts of a connection
Refer to rtdm_shutdown() for parameters and return values. Action depends on driver implementation, see Device Profiles.
[in] | fd | File descriptor as returned by rtdm_socket() |
[in] | how | Specifies the part to be shut down (SHUT_xxx ) |
Action depends on driver implementation, see Device Profiles.
shutdown()
in IEEE Std 1003.1, http://www.opengroup.org/onlinepubs/009695399int rtdm_socket | ( | int | protocol_family, |
int | socket_type, | ||
int | protocol | ||
) |
Create a socket
Refer to rtdm_socket() for parameters and return values. Action depends on driver implementation, see Device Profiles.
[in] | protocol_family | Protocol family (PF_xxx ) |
[in] | socket_type | Socket type (SOCK_xxx ) |
[in] | protocol | Protocol ID, 0 for default |
Action depends on driver implementation, see Device Profiles.
socket()
in IEEE Std 1003.1, http://www.opengroup.org/onlinepubs/009695399ssize_t rtdm_write | ( | int | fd, |
const void * | buf, | ||
size_t | nbyte | ||
) |
Write to device
Refer to rtdm_write() for parameters and return values. Action depends on driver implementation, see Device Profiles.
[in] | fd | File descriptor as returned by rtdm_open() |
[in] | buf | Output buffer |
[in] | nbyte | Number of bytes to write |
Action depends on driver implementation, see Device Profiles.
write()
in IEEE Std 1003.1, http://www.opengroup.org/onlinepubs/009695399