Commit Graph

589 Commits

Author SHA1 Message Date
Gregory Nutt
8a6a202c6d straighten out files in some Make.defs files 2014-09-28 12:26:22 -06:00
Gregory Nutt
242b34cf46 Create a build structure that will (eventually) support using the VFS to manage named semaphores 2014-09-28 12:19:01 -06:00
Gregory Nutt
ff73be870e Move renaming files in fs/. to fs/vfs/. (Don't all belong there) 2014-09-28 11:46:11 -06:00
Gregory Nutt
36a88638a4 Move mount-related files from fs/. to fs/mount/. 2014-09-28 11:28:17 -06:00
Gregory Nutt
349c44ded5 Move directory operations from fs/ to fs/dirent 2014-09-28 11:17:36 -06:00
Gregory Nutt
7679e6f2bc Forgot to add files from previous commits 2014-09-28 11:16:58 -06:00
Gregory Nutt
a470a8cbd0 Move drive from fs/. to fs/driver/. 2014-09-28 11:06:21 -06:00
Gregory Nutt
39ff9d626e Move inode and VFS utils from fs/. to fs/inode/. 2014-09-28 10:53:40 -06:00
Gregory Nutt
d038133501 Rename fs/fs_internal.h to fs/fs.h 2014-09-28 09:13:56 -06:00
Gregory Nutt
79eeb9f1b5 A little more clean-up of poll() error handling 2014-09-26 08:25:00 -06:00
Gregory Nutt
a05107e7fe fs/poll: More typo fixes. Now I understand. It was not really being built in the configuration that I was using 2014-09-26 07:25:34 -06:00
Gregory Nutt
edcf863162 Typo fix. Hmmm... how did this compile before? 2014-09-26 07:18:16 -06:00
Gregory Nutt
67cda62aea Should include time.h 2014-09-26 07:03:59 -06:00
Gregory Nutt
c652092ac4 Re-implemented poll() using sem_timedwait() 2014-09-26 06:28:20 -06:00
Gregory Nutt
c4978f7ef0 Fix unecessary delays and timing jitter in the implementation of poll(): No delay if timeout is zero; If timeout is greater than zero, first check if events are already pending events before starting the delay. From Johannes Hampel 2014-09-25 06:30:25 -06:00
Gregory Nutt
e4e458b315 Fix a typo introduced my my meddling with Ken's last commits 2014-09-22 11:40:59 -06:00
Gregory Nutt
34a057334c Update SMART FS procfs support. From Ken Pettit 2014-09-22 11:19:49 -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
109ccc774d SMART FS update from Ken Pettit 2014-09-22 09:33:58 -06:00
Gregory Nutt
31a908ea3a Cosmetic changes to comments/spacing 2014-09-08 08:57:25 -06:00
Gregory Nutt
b2a94b6f2b Fix more places where the user-mode allocator is used to allocate kernel thread resources -- before the user-mode allocator even exists 2014-09-03 14:58:24 -06:00
Gregory Nutt
205260d5e2 Reanem kzalloc to kmm_zalloc for consistency 2014-08-31 17:34:44 -06:00
Gregory Nutt
1780810d3d Rename kmalloc to kmm_malloc for consistency 2014-08-31 17:26:36 -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
9aca0c1c84 Rename kumalloc to kumm_malloc and kuzalloc to kumm_zalloc for consistency with other naming 2014-08-31 16:24:24 -06:00
Gregory Nutt
9ad7dae4c1 Rename kufree to kumm_free for consistency with other naming 2014-08-31 16:15:11 -06:00
Gregory Nutt
9cd1ddada4 Rename kmemalign to kmm_memalign and krealloc to kmm_realooc for consistency with other naming 2014-08-31 15:27:37 -06:00
Gregory Nutt
e3ff0689bb Rename CONFIG_NUTTX_KERNEL to CONFIG_BUILD_PROTECTED; Partially integrate new CONFIG_BUILD_KERNEL 2014-08-29 14:47:22 -06:00
Gregory Nutt
220216cc38 nuttx/fs: Remove explicity references to errno. That is a problem from within the kernel for certain configurations 2014-08-28 16:58:43 -06:00
Gregory Nutt
ad9b3f8ab8 wdog.h does not contain any application interface, only internal OS interface. Further, it is non-standard. Move wdog.h from include/ to include/nuttx. For the same reason, move the description of the watchdog timer interfaces from the Users Guide to the Porting Guide. 2014-08-21 11:16:55 -06:00
Gregory Nutt
bb06d31038 Auto-mounter: Fix state setting. Not harmful other than it can cause a debug assertion to fire if you manually unmount the media before removing it which is, of course, what you are supposed to do. 2014-07-30 11:05:08 -06:00
Gregory Nutt
9c80dfb31c Updated README file, cosmetic changes to comments and debug output 2014-07-30 10:19:09 -06:00
Gregory Nutt
a826adb679 The SAMA5D4-EK NSH and NxWM configurations now have the auto-mounter configured to automatically mount the FAT file system on HSMCI0 at /mnt/sdcard 2014-07-29 16:36:15 -06:00
Gregory Nutt
7b1b915226 SAMA5D4: Add auto-mounter support for HSMCI0 2014-07-29 15:34:31 -06:00
Gregory Nutt
31d21640af Update the automounter so that it will handle the initial insertion state 2014-07-29 13:00:35 -06:00
Gregory Nutt
8e506be4dd Add support for an automounter that will automatically mount and unmount a file system a media is inserted and removed 2014-07-29 12:50:08 -06:00
Gregory Nutt
b7227f0088 Cosmetic changes, mostly to comments 2014-07-29 12:49:40 -06:00
Gregory Nutt
befcb1c961 Fix some cloned errors in SAM GPIO interrupt setup 2014-07-07 15:54:37 -06:00
Gregory Nutt
60246e613b NET: emoved all includes of uip.h; added includes of ip.h wherever needed. Tried to fix problems of the now missing sneak inclusions because uip.h was removed. There are probably a few of these that were missed. 2014-07-04 19:13:08 -06:00
Gregory Nutt
0bb153b8cb Remove all inclusion of uip.h 2014-07-04 16:58:22 -06:00
Gregory Nutt
cce35ce975 NET: More renaming 2014-07-04 15:40:49 -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
a2741940f9 SAMA54D-EK: Don't disable any features in the NSH configuration. Comments updated in several files 2014-07-02 08:54:53 -06:00
Gregory Nutt
5d1f8180d4 Move the remaining files from include/nuttx/net/uip to include/nuttx/net; Rename *_internal.h header files in net/ to just *.h 2014-06-24 10:14:15 -06:00
Gregory Nutt
626469e30c Move include/nuttx/net/uipopt.h to include/nuttx/net/netconfig.h 2014-06-24 08:53:28 -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
3d8e313995 Misc SAM4S-related changes from Bob Doison 2014-04-21 19:32:15 -06:00
Gregory Nutt
1f31597466 Correct some procfs conditional compilation. From Bob Doiron 2014-04-21 17:21:43 -06:00
Gregory Nutt
f8024cf409 More trailing whilespace removal 2014-04-13 16:22:22 -06:00
Gregory Nutt
f7e5953804 Cosmetic changes for coding style; removal of dangling spaces at the end of lines 2014-04-13 13:18:06 -06:00
Gregory Nutt
494387b33b Make sure that there is one space after for 2014-04-12 13:28:22 -06:00
Gregory Nutt
056aed1274 Make sure that there is one space between while and condition 2014-04-12 13:09:48 -06:00
Gregory Nutt
303cc1902b Make sure that there is one space between if and condition 2014-04-12 12:53:19 -06:00
Gregory Nutt
2fcc57edb0 mv ramlog.h and syslog.h to new include/nuttx/syslog 2014-04-10 09:29:30 -06:00
Gregory Nutt
d1257082f3 NXFFS: Missing call to nxffs_freeentry() caused a memory leak 2014-03-06 08:01:56 -06:00
Gregory Nutt
4f6d6a6aa2 Fix a FAT file corruption problem. From Andrew Tridgell 2014-03-04 11:34:54 -06:00
Gregory Nutt
b348464779 procfs: Remove newline from the end of the cpuload and loadavg outputs so that the returned percentages can be printed on the same line as other data. 2014-02-27 11:18:28 -06:00
Gregory Nutt
3b2a3991dd A few fixes for the per-process load average calculation 2014-02-23 12:50:51 -06:00
Gregory Nutt
cf4a362ab5 CPU load calculations now available for all threads. Available in /proc/pid/loadavg 2014-02-23 10:55:01 -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
d092f888fb Add CONFIG_DEFAULT_SMALL that will select default values for configuration settings based upon either more features or smaller footprint. Turns out not be be useful for modifying existing defconfig files because the defaults do not apply in that case 2014-02-20 18:49:45 -06:00
Gregory Nutt
bebb5d8c4d unlink/rm can now be used on nodes in the pseudo-filesystem. There is new configuration option to suppress these costly and mostly useless operations on the pseudo-filesystem 2014-02-20 18:14:02 -06:00
Gregory Nutt
d000752cf5 Need to build fs_rename.c even if mountpoints are disabled 2014-02-20 15:40:34 -06:00
Gregory Nutt
e013c96358 Typo fix from last commits. From Alan Carvalho de Assis 2014-02-20 07:39:36 -06:00
Gregory Nutt
916308efc1 SAMD20: Move some common SERCOM logic to a separate file where it can be shared 2014-02-19 14:47:04 -06:00
Gregory Nutt
c55ac71603 Nodes in the pseudo-filesystem can now be renamed or moved within the pseduo-filesystem 2014-02-19 13:14:39 -06:00
Gregory Nutt
dda275242d Cosmetic updates to comments 2014-02-19 10:56:54 -06:00
Gregory Nutt
834ee93cae mkdir can now be used to create empty directories in the pseudo-filesystem. 2014-02-19 10:30:50 -06:00
Gregory Nutt
5bae65fa6c rmdir now may be used to remove empty nodes from the pseudo-filesystem 2014-02-19 10:01:26 -06:00
Gregory Nutt
66a0cfe88f FS: directory operations will now work on empty directory nodes in the pseudo-filesystem 2014-02-19 09:21:38 -06:00
Gregory Nutt
91b002a043 Many changes to reduce complaints from CppCheck. Several latent bugs fixes, but probably some new typos introduced 2014-02-10 18:08:49 -06:00
Gregory Nutt
c9cb7972fb FAT: Fix some root directory logic that was conditionally done only for FAT32. Apparently this needs to be done for all FAT types. From Tridge via Lorenz Meier 2014-01-14 18:24:21 -06:00
Gregory Nutt
85e7e13bb0 Fix a FAT cluster allocation bug. From Tridge 2014-01-14 13:45:26 -06:00
Gregory Nutt
803cdfdaf1 Changes to get PX4 config to build. Also some warning removal 2014-01-14 13:30:22 -06:00
Gregory Nutt
9e416c2363 Looks like an error all all kernel build linker scripts 2013-12-30 17:57:20 -06:00
Gregory Nutt
7fdf57b7bb procfs now shows stack thread information 2013-12-15 14:35:47 -06:00
Gregory Nutt
1f115c76eb procfs now shows information about the group that each thread belongs: Like parents, group member, open file, and open sockets 2013-12-15 11:22:48 -06:00
Gregory Nutt
e13e5685cb /proc task directories can now have sub-directories 2013-12-15 10:31:07 -06:00
Gregory Nutt
7cb765e52d Trivial enhancement to /proc/uptime 2013-12-15 07:16:26 -06:00
Gregory Nutt
7a173d58b5 /proc/uptime logic needs to sample timer in case multiple reads are used to read the time 2013-12-14 15:25:23 -06:00
Gregory Nutt
46b77e2544 Support /proc/uptime 2013-12-14 10:34:08 -06:00
Gregory Nutt
9f01df47ea Create procfs_utils.c; File missed from last commit; + remove warning from mm_memalign.c (how did this work before?) 2013-12-14 08:53:23 -06:00
Gregory Nutt
d6b81cc7ef A10: Timer interrupt handler 2013-12-13 12:42:26 -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
f821e74ebb Move smart.h to include/nuttx/fs/smart.h 2013-12-10 09:38:48 -06:00
Gregory Nutt
40e0253189 mkfatfs: Fix an error in logic that determines if FAT16 is possible 2013-12-05 18:17:22 -06:00
Gregory Nutt
692b087d07 LM: Don't initialize .data if running in SRAM. Global missing intialize type. SAMA5 NAND: Fix for read nand in smaller chunks 2013-12-05 10:37:55 -06:00
Gregory Nutt
2318531d93 Condition out most of the recent NXFFS changes for NAND. NXFFS will never be able to support NAND 2013-12-03 13:11:11 -06:00
Gregory Nutt
875b49913a SAMA5 NAND: Only CS3 can have NAND 2013-12-03 06:59:22 -06:00
Gregory Nutt
7fad495e1d Cosmetic changes to debug output 2013-12-02 19:00:59 -06:00
Gregory Nutt
b3d3f59363 NXFFS: more NAND-Releated changes; don't fail if a block read fails. That might just be a NAND uncorrectable bit error. Make scanning of the device on startup optional. This might have introduced some NXFFS issure -- To be determined 2013-12-02 17:19:22 -06:00
Gregory Nutt
5b9d07e5c0 NXFFS: When dumping the MTD content, don't abort on a read error. For NAND, the read error probably just means that an uncorrectable ECC was encountered 2013-12-01 20:17:09 -06:00
Gregory Nutt
5c1f0946c2 NXFFS: First of many changes for NAND. NAND reports read errors on ECC failures. NXFFS can't just give up in these cases and must treat read failures like bad blocks 2013-12-01 18:22:33 -06:00
Gregory Nutt
15274c82fc SAMA5 NAND: Don't use HSMC interrupts. They occur to quickly and cause mysterious race conditions 2013-11-29 11:52:47 -06:00
Gregory Nutt
de797768cd LPC31 EHCI: Make stream disable a configurable option 2013-11-28 13:30:06 -06:00
Gregory Nutt
2aa0809e8b Inode semaphore must be entrant or a deadlock can occur in certain scenarios 2013-11-28 13:12:14 -06:00
Gregory Nutt
1ea447867a SAMA5 NAND: Still debugging 2013-11-28 12:21:33 -06:00