Skip to content
  1. Nov 08, 2017
  2. Nov 07, 2017
  3. Nov 06, 2017
  4. Nov 05, 2017
    • Gregory Nutt's avatar
      This comment converts the underlying IPC used by the UserFS from Unix domain... · 7deb2448
      Gregory Nutt authored
      This comment converts the underlying IPC used by the UserFS from Unix domain local sockets to UDP LocalHost loopback sockets.  The problem with the local sockets is that they do require operations on the top level psuedo-file system inode tree.  That tree must be locked during certain traversals such as enumerate mountpoints or enumerating directory entries.
      
      This conversion is unfortunate in the sense that Unix local domain sockets are relatively lightweight.  LocalHost UDP sockets are much heavier weight since they rely on the full UDP stack.  If anyone is up for a complete redesign, then using some shared memory and a POSIX message queue would be lightweight again.
      
      This commit also fixes several bugs that were not testable before the inode tree deadlock.  I cannot say that the logic is 100% stable but it does not have basic functionality.
      
      Squashed commit of the following:
      
          fs/userfs:  Order locking so that access to the shared I/O buffer is also locked.
          fs/userfs:  Converts to use LocalHost UDP loopback for IPC.
      7deb2448
    • Mateusz Szafoni's avatar
      Merged in raiden00/nuttx (pull request #529) · 2fc52378
      Mateusz Szafoni authored
      
      
      Master
      
      * cosmetics
      
      * stm32_hrtim: add helper macros
      
      * smps: cosmetics
      
      * stm32f33xxx_adc: injected channels support, fix some definitions, add interface to disable interrupts
      
      * stm32f334-dsico: beginning of lower-half driver for SMPS (buck-boost onboard converter)
      
      * nucleo-f334r8/highpri: missing ADC trigger configuration
      
      Approved-by: default avatarGregory Nutt <gnutt@nuttx.org>
      2fc52378
    • Alan Carvalho de Assis's avatar
      stm32f103-minimum: Remove warning when selecting MMCSD support · 4d6c1724
      Alan Carvalho de Assis authored
      stm32f103-minimum: Add board_usbmsc_initialize to stm32f103-minimum
      4d6c1724
    • Gregory Nutt's avatar
    • Gregory Nutt's avatar
      Cosmetic fix to spacing. · 6c5397cf
      Gregory Nutt authored
      6c5397cf
  5. Nov 04, 2017
  6. Nov 03, 2017
  7. Nov 02, 2017
    • Gregory Nutt's avatar
      29309e63
    • Gregory Nutt's avatar
      drivers/mtd/filemtd.c: Don't use file descriptors... Use the internal file... · e52bc922
      Gregory Nutt authored
      drivers/mtd/filemtd.c: Don't use file descriptors... Use the internal file system interfaces so that the loop device can be shared across threads.
      e52bc922
    • Gregory Nutt's avatar
      drivers/loop: Don't use file descriptors... Use the internal file system... · f9e7b847
      Gregory Nutt authored
      drivers/loop: Don't use file descriptors... Use the internal file system interfaces so that the loop device can be shared across threads.
      f9e7b847
    • Frank Benkert's avatar
      drivers/serial/serial.c: Optimize wait time in tcdram() for buffer emptying · c6942f61
      Frank Benkert authored
      According to the specification, the close function must wait until all data
      has been written before it closes the file (except O_NONBLOCK is set). The
      maximum waiting time for this is not specified.
      
      To be able to edit the file list of the process, the close function has to lock
      the file list semaphore. After that the close function of the serial driver is
      called.
      
      Waiting for the complete transmission of all data is done in the serial driver.
      This causes the semaphore to remain locked until all data has been sent.
      However, no other thread of the process can edit the file list for that time
      (open, close, dup2, etc.). This is not optimal in a multithreaded environment.
      Therefore, we have to keep the waiting time within the driver as short as possible.
      c6942f61
    • Gregory Nutt's avatar
      fs/userfs: There are some deadlock issues that make the UserFS un-usable at... · 2dbe7af7
      Gregory Nutt authored
      fs/userfs:  There are some deadlock issues that make the UserFS un-usable at the current time.  Added to the TODO list; also feature is now marked EXPERIMENTAL.
      2dbe7af7
    • Gregory Nutt's avatar
      This commit modifies the Unix domain local socket design. Local sockets are... · 21041af8
      Gregory Nutt authored
      This commit modifies the Unix domain local socket design.  Local sockets are built on top of pipes.  The Local socket implementation maintained file descriptors to interrupt with the pipes.  File descriptors have the bad property that they are valid only while running on the thread within the task that created the local socket.
      
      As a policy, all internal OS implementations must use "detached" files which are valid in any context and do not depend on the validity of a file descriptor at any point in time.  This commit converts the usage of file descriptors to detached files throughout the local socket implementation.
      
      Squashed commit of the following:
      
          net/local: Finish change to eliminate use of file descriptors.
          net/local:  A little more of the conversion.
          net/local: Beginning of chnages to eliminate use of file descriptors in the local socket implementeation. poll() will be a problem.
      21041af8
  8. Nov 01, 2017