xref: /linux/Documentation/userspace-api/media/dvb/dmx-fclose.rst (revision cbecf716ca618fd44feda6bd9a64a8179d031fc5)
1059b1c5bSMauro Carvalho Chehab.. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later
2*f9b2e8aaSMauro Carvalho Chehab.. c:namespace:: DTV.dmx
354f38fcaSMauro Carvalho Chehab
454f38fcaSMauro Carvalho Chehab.. _dmx_fclose:
554f38fcaSMauro Carvalho Chehab
654f38fcaSMauro Carvalho Chehab========================
754f38fcaSMauro Carvalho ChehabDigital TV demux close()
854f38fcaSMauro Carvalho Chehab========================
954f38fcaSMauro Carvalho Chehab
1054f38fcaSMauro Carvalho ChehabName
1154f38fcaSMauro Carvalho Chehab----
1254f38fcaSMauro Carvalho Chehab
1354f38fcaSMauro Carvalho ChehabDigital TV demux close()
1454f38fcaSMauro Carvalho Chehab
1554f38fcaSMauro Carvalho ChehabSynopsis
1654f38fcaSMauro Carvalho Chehab--------
1754f38fcaSMauro Carvalho Chehab
1854f38fcaSMauro Carvalho Chehab.. c:function:: int close(int fd)
1954f38fcaSMauro Carvalho Chehab
2054f38fcaSMauro Carvalho ChehabArguments
2154f38fcaSMauro Carvalho Chehab---------
2254f38fcaSMauro Carvalho Chehab
2354f38fcaSMauro Carvalho Chehab``fd``
2454f38fcaSMauro Carvalho Chehab  File descriptor returned by a previous call to
25*f9b2e8aaSMauro Carvalho Chehab  :c:func:`open()`.
2654f38fcaSMauro Carvalho Chehab
2754f38fcaSMauro Carvalho ChehabDescription
2854f38fcaSMauro Carvalho Chehab-----------
2954f38fcaSMauro Carvalho Chehab
3054f38fcaSMauro Carvalho ChehabThis system call deactivates and deallocates a filter that was
31*f9b2e8aaSMauro Carvalho Chehabpreviously allocated via the :c:func:`open()` call.
3254f38fcaSMauro Carvalho Chehab
3354f38fcaSMauro Carvalho ChehabReturn Value
3454f38fcaSMauro Carvalho Chehab------------
3554f38fcaSMauro Carvalho Chehab
3654f38fcaSMauro Carvalho ChehabOn success 0 is returned.
3754f38fcaSMauro Carvalho Chehab
3854f38fcaSMauro Carvalho ChehabOn error, -1 is returned and the ``errno`` variable is set
3954f38fcaSMauro Carvalho Chehabappropriately.
4054f38fcaSMauro Carvalho Chehab
4154f38fcaSMauro Carvalho ChehabThe generic error codes are described at the
4254f38fcaSMauro Carvalho Chehab:ref:`Generic Error Codes <gen-errors>` chapter.
43