Back to home page

Enduro/X

 
 

    


0001 TPEXT_DELPOLLERFD(3)
0002 ====================
0003 :doctype: manpage
0004 
0005 
0006 NAME
0007 ----
0008 tpext_delpollerfd - XATMI extension, delete poller file descriptor
0009 
0010 
0011 SYNOPSIS
0012 --------
0013 #include <atmi.h>
0014 
0015 int tpext_delpollerfd(int 'fd');
0016 
0017 Link with '-latmisrv|-latmisrvnomain|-latmisrvinteg -latmi -lubf -lnstd -lpthread -lrt -lm'
0018 
0019 DESCRIPTION
0020 -----------
0021 Delete file descriptor 'fd' which was previously added to Enduro/X event poller by *tpext_addperiodcb()*.
0022 
0023 This function is available only for XATMI servers.
0024 
0025 RETURN VALUE
0026 ------------
0027 On success, *tpext_delpollerfd()* return zero; on error, -1 is returned, with *tperrno* set to indicate the error.
0028 
0029 
0030 ERRORS
0031 ------
0032 Note that *tpstrerror()* for returns generic error message plus custom message with debug info from last call.
0033 
0034 *TPEINVAL* Invalid file descriptor (value -1).
0035 
0036 *TPEMATCH* File descriptor ('fd') was not found in custom pollers list.
0037 
0038 *TPEPROTO* Function called in invalid XATMI server stage. I.e. it cannot be called from *tpsvrinit()*.
0039 
0040 *TPESYSTEM* System failure occurred during serving. See logs i.e. user log, or debugs for more info.
0041 
0042 *TPEOS* System failure occurred during serving. See logs i.e. user log, or debugs for more info. That could insufficient memory or other error.
0043 
0044 EXAMPLE
0045 -------
0046 See *atmitest/test008_extensions/atmisv.c* for sample code.
0047 
0048 BUGS
0049 ----
0050 Report bugs to support@mavimax.com
0051 
0052 SEE ALSO
0053 --------
0054 *tpext_delpollerfd(3)* *tpext_addperiodcb(3)*
0055 
0056 COPYING
0057 -------
0058 (C) Mavimax, Ltd
0059