Gregory Nutt
f980200ac4
fs/procfs/: Add support for /proc, a convenient way for getting information about the currently running task.
2018-08-18 18:00:23 -06:00
Alan Carvalho de Assis
283b73edc5
Fix lots of typos in C comments and Kconfig help text
2018-07-08 18:24:45 -06:00
Gregory Nutt
0080225473
sched/irq: Add a configuration option to show interrupt information via a procfs file.
2018-01-12 18:26:46 -06:00
Gregory Nutt
e4652bd3dc
Squashed commit of the following:
...
fs: Add truncate() support for userfs
fs/unionfs: Add truncate() support to the unionfs
fs/tmpfs: Add ftruncate() support to tmpfs
syscall/: Add system call support for ftruncate()
net/route: Adding ftruncate() support eliminates an issue in file-based routing table management.
fs: Add basic framework to support truncate() and ftruncate(). The infrastructure is complete. Now, however, the actual implementation of ftruncate() will have to be done for each file system.
2018-01-03 16:03:56 -06:00
Gregory Nutt
f068eb579c
fs/procfs: Correct ordering of procfs entries. For consistency, use alphbetical ordering.
2017-11-24 10:00:35 -06:00
Gregory Nutt
a6aa4ac5f5
fs/procfs: Optimization of previous commits. /proc/umm and proc/progmem are deleted. /proc/kmm is renamed /proc/meminfo and contains the output that was in all three files previously.
2017-11-13 13:33:12 -06:00
Gregory Nutt
070d40260b
profcs: At file to should user space heap. This replaces the NSH free command.
2017-11-13 12:51:33 -06:00
Gregory Nutt
f3b37e5da3
fs/procfs/fs_procfsprogrem: Add /proc/progmem. This is an alternative way to get the information that was previoulsy available in apps/system/free. apps/system/free was removed beause it made illegal calls into the OS violating the portable interface. This new procfs entry provides the same information with no such violation.
2017-11-13 09:08:39 -06:00
Gregory Nutt
a50c5d6674
fs/procfs: Restore a necessary chagne that was lost with commit 07f441eecb
2017-10-28 17:13:52 -06:00
Gregory Nutt
07f441eecb
Missing some conditional logic for cases where mountpoint procfd entries excluded.
2017-10-27 06:06:20 -06:00
Gregory Nutt
ea13e24392
Correct a problem that was causing an apparent directory to be reported as a file instead of a directory by opendir.
...
This happened after adding these three new procfs entries:
fs/block
fs/mount
fs/usage
Of course, there is no directory fs in this case, only three files that have fs/ in their relative pathnames. The logic was detecting that fs was the name of the enty to report, but it was then declaring that fs was a file (because fs/block is of type file).
This was fixed by adding a check for matching lenghts. i.e., if strlen(fs) != strlen(fs/block), then report fs as a directory instead of a file.
2017-10-26 16:30:59 -06:00
Gregory Nutt
1ed816de4b
Squashed commit of the following:
...
fs/mount: Implements procfs /proc/fs/blocks and /proc/fs/usage files, replacing the NSH df command.
fs/mount: Implements procfs /proc/fs/mount file, replacing the NSH mount command when there are not arguments.
fs/: Move prototype of foreach_mountpoint out of include/nuttx/fs/fs.h to fs/mount/mount.h. Add framework for the mount procfs (initial commit is just a close of the net/route table procfs.
2017-10-26 13:33:08 -06:00
Gregory Nutt
d209e0e238
Add file missed in last commit. Fix naming in some configuration items.
2017-08-12 07:26:20 -06:00
Gregory Nutt
ee9e4fa8be
procfs: Corret the type of a couple of procfs file entries.
2017-08-11 16:06:53 -06:00
Gregory Nutt
65698da12d
procfs: Add support for routing tables.
2017-08-11 15:33:58 -06:00
Gregory Nutt
bae367c7c4
fstat(): Rethink procfs fstat(). If write method is supported, then should report file s writeable.
2017-02-15 09:32:42 -06:00
Gregory Nutt
c5df283822
procfs: Add support for fstat().
2017-02-14 10:00:15 -06:00
Gregory Nutt
e8d6676e18
procfs: When addition of memset from previous commit, it is no longer necessary to set individual fields to zero.
2017-02-14 09:03:48 -06:00
Gregory Nutt
74d30a0dbc
procfs: stat() left several fields in uninitialized state.
2017-02-14 09:00:48 -06:00
Gregory Nutt
7d91fabf01
fstat: Add skeleton implmentations of fstat() in all file systems.
2017-02-12 13:42:27 -06:00
Gregory Nutt
72a45c82b7
Move include/nuttx/regex.h to include/nuttx/lib/regex.h
2016-07-21 13:42:18 -06:00
Gregory Nutt
a1469a3e95
Add CONFIG_DEBUG_ERROR. Change names of *dbg() * *err()
2016-06-11 15:50:49 -06:00
Gregory Nutt
fc3540cffe
Replace all occurrences of vdbg with vinfo
2016-06-11 11:59:51 -06:00
Gregory Nutt
0fb035f76b
Standardize some naming in code section comments
2016-02-21 18:09:04 -06:00
Gregory Nutt
884d9355c6
nuttx/fs: Replace irqsave() with enter_critical_section(); replace irqrestore() with leave_critical_section()
2016-02-14 08:43:47 -06:00
Gregory Nutt
12f95c6f6b
Add procfs/kmm to show the state of the kernel heap
2016-02-06 11:35:30 -06:00
Gregory Nutt
795ddd7e80
OS modules: Add basic procfs support. A module registry that will eventually be used to support lsmod
2015-12-12 17:42:25 -06:00
Gregory Nutt
acd3b47def
Fix problem in last change to the procfs: Forgot to save the reallocated table pointer!
...
Also added warnings: There are some concurrency issues in the current implementation if you try to modify the procfs data structures will the procfs is mounted and possibly busy.
2015-12-02 05:20:02 -06:00
Gregory Nutt
db6eeed3a6
procfs: Using wrong reallocator
2015-12-01 17:06:40 -06:00
Gregory Nutt
7483ed38ce
Fix some procfs registration typos
2015-12-01 16:31:40 -06:00
Gregory Nutt
ad64c033e7
s/procfs: The procfs file system can now be configured so that it supports a runtime registration of procfs entries with CONFIG_FS_PROCFS_REGISTER=y
2015-12-01 14:56:20 -06:00
Gregory Nutt
e4236941c6
net/net_procfs.c: Add basic support for networking procfs entries
2015-11-27 12:33:58 -06:00
Gregory Nutt
c70987e551
nuttx/fs: Fix some spacing and alignment issues
2015-10-11 11:39:29 -06:00
Gregory Nutt
cb9e27c3b0
Standardize naming used for public data and function groupings
2015-10-02 16:30:35 -06:00
Gregory Nutt
4adda9d428
Fix numerous typos in configuration variable names. Tracked down by Alan Carvalho de Assis
2015-05-23 17:08:35 -06:00
Gregory Nutt
8055ba4d03
Pass the umount2() flags to every unbind() implementation. That is where the the decision to umount or not will be made.
2015-03-14 17:22:02 -06:00
Gregory Nutt
cb051a522d
Add procfs write support. From Ken Petit
2014-12-09 13:24:38 -06:00
Gregory Nutt
b05d20a6e7
procfs: Fix some breakage introduced by reorganizing some un-reorganizable data structures. From Ken Pettit
2014-09-22 11:07:08 -06:00
Gregory Nutt
205260d5e2
Reanem kzalloc to kmm_zalloc for consistency
2014-08-31 17:34:44 -06:00
Gregory Nutt
54fa3b0b59
Rename kfree to kmm_free for consistency with other naming conventions
2014-08-31 17:04:02 -06:00
Gregory Nutt
cc0fb1ec67
CCM PROCFS: Missing change in last commits
2014-07-03 09:28:36 -06:00
Gregory Nutt
dd4caf172f
CCM PROCFS: Changed the configuration a bit. I am still not happy about the coupling between procfs, mtd, and now STM32
2014-07-03 08:50:24 -06:00
Gregory Nutt
64cd7a81ed
Add STM32 CCM heep procfs
2014-07-03 08:18:24 -06:00
Gregory Nutt
5df14c7d40
Misc changes to get a clean compilation after incorporating all of Bob Doison's changes
2014-04-22 10:38:08 -06:00
Gregory Nutt
59769d44f1
Add logic to meaure and calculate the CPU load percentage. From David Alessio
2014-02-22 15:20:12 -06:00
Gregory Nutt
e13e5685cb
/proc task directories can now have sub-directories
2013-12-15 10:31:07 -06:00
Gregory Nutt
46b77e2544
Support /proc/uptime
2013-12-14 10:34:08 -06:00
Gregory Nutt
f97be5131c
Various fixes to the recent, big procfs checkin
2013-12-12 11:08:20 -06:00
Gregory Nutt
e4471dc8e0
procfs/: Extenstive architectural changes and enhancements by Ken Pettit
2013-12-12 09:21:55 -06:00
Gregory Nutt
6e7c9b93c6
fs/procfs: Add a tiny, primitive procfs file system. Might get more interesting in the future
2013-11-13 15:59:14 -06:00