Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
NuttX RTOS
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
f4grx
NuttX RTOS
Commits
85dc0f5c
Commit
85dc0f5c
authored
10 years ago
by
Gregory Nutt
Browse files
Options
Downloads
Patches
Plain Diff
Update TODO list
parent
3e072ae2
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
TODO
+14
-12
14 additions, 12 deletions
TODO
with
14 additions
and
12 deletions
TODO
+
14
−
12
View file @
85dc0f5c
...
...
@@ -927,22 +927,24 @@ o Network (net/, drivers/net)
Description: FIFOs are used as the IPC underlying local Unix domain sockets.
In NuttX, FIFOs are implemented as device drivers (not as
special files). The FIFO device driver is instantiated when
the Unix domain socket communications begin. But there is no
mechanism in place now to delete the FIFO device driver
instance when the Unix domain socket is no longer used. The
underlying buffer is deleted, but the driver instance itself
remains. unlink() could be used to get rid of the driver
name in the pseudo-filesystem, making the drvier inaccessible.
But it will not free the driver. A new interface, say rmfifo(),
would be required to do that.
the Unix domain socket communications begin and will
automatically be released when (1) the driver is unlinked and
(2) all open references to the driver have been closed. But
there is no mechanism in place now to unline the FIFO when
the Unix domain socket is no longer used. The primary issue
is timing.. the FIFO should persist until it is no longer
needed. Perhaps there should be a delayed call to unlink()
(using a watchdog or the work queue). If the driver is re-
opened, the delayed unlink could be canceled? Needs more
thought.
Status: Open
Priority: Low for now because I don't have a situation where this is a
problem for me. If you use the same Unix domain paths, then
it is not a issue; in fact it is more efficient if the FIFO
devices persist
e
. But this would be a serious problem if,
for example, you create new Unix domain paths dynaically.
In
that case you would effectly have a memory leak and the
number
of FIFO instances grow.
devices persist. But this would be a serious problem if,
for example, you create new Unix domain paths dyna
m
ically.
In
that case you would effect
ive
ly have a memory leak and the
number
of FIFO instances grow.
o USB (drivers/usbdev, drivers/usbhost)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment