Correct spelling: MOUNTPOINT not MOUNTPOUNT. Numerous places. Some are problems. From Woohan Lee
This commit is contained in:
parent
62cb2f3c06
commit
fa035373e4
@ -384,7 +384,7 @@ config NSH_CMDOPT_HEXDUMP
|
|||||||
default y if !DEFAULT_SMALL
|
default y if !DEFAULT_SMALL
|
||||||
depends on !NSH_DISABLE_HEXDUMP
|
depends on !NSH_DISABLE_HEXDUMP
|
||||||
|
|
||||||
config NSH_PROC_MOUNTPOUNT
|
config NSH_PROC_MOUNTPOINT
|
||||||
string "procfs mountpoint"
|
string "procfs mountpoint"
|
||||||
default "/proc"
|
default "/proc"
|
||||||
depends on FS_PROCFS
|
depends on FS_PROCFS
|
||||||
|
@ -188,7 +188,7 @@ NSH to behave as follows at NSH startup time:
|
|||||||
|
|
||||||
- By default, the contents of rcS script are:
|
- By default, the contents of rcS script are:
|
||||||
|
|
||||||
# Create a RAMDISK and mount it at XXXRDMOUNTPOUNTXXX
|
# Create a RAMDISK and mount it at XXXRDMOUNTPOINTXXX
|
||||||
|
|
||||||
mkrd -m 1 -s 512 1024
|
mkrd -m 1 -s 512 1024
|
||||||
mkfatfs /dev/ram1
|
mkfatfs /dev/ram1
|
||||||
|
@ -53,8 +53,8 @@
|
|||||||
* Pre-processor Definitions
|
* Pre-processor Definitions
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
#ifndef CONFIG_NSH_PROC_MOUNTPOUNT
|
#ifndef CONFIG_NSH_PROC_MOUNTPOINT
|
||||||
# define CONFIG_NSH_PROC_MOUNTPOUNT "/proc"
|
# define CONFIG_NSH_PROC_MOUNTPOINT "/proc"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#undef HAVE_CPULOAD
|
#undef HAVE_CPULOAD
|
||||||
@ -215,7 +215,7 @@ static int loadavg(pid_t pid, FAR char *buffer, size_t buflen)
|
|||||||
|
|
||||||
/* Form the full path to the 'loadavg' pseudo-file */
|
/* Form the full path to the 'loadavg' pseudo-file */
|
||||||
|
|
||||||
snprintf(path, sizeof(path), CONFIG_NSH_PROC_MOUNTPOUNT "/%d/loadavg",
|
snprintf(path, sizeof(path), CONFIG_NSH_PROC_MOUNTPOINT "/%d/loadavg",
|
||||||
(int)pid);
|
(int)pid);
|
||||||
|
|
||||||
/* Read the 'loadavg' pseudo-file into the user buffer */
|
/* Read the 'loadavg' pseudo-file into the user buffer */
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
# Create a RAMDISK and mount it at XXXRDMOUNTPOUNTXXX
|
# Create a RAMDISK and mount it at XXXRDMOUNTPOINTXXX
|
||||||
|
|
||||||
mkrd -m XXXMKRDMINORXXX -s XXMKRDSECTORSIZEXXX XXMKRDBLOCKSXXX
|
mkrd -m XXXMKRDMINORXXX -s XXMKRDSECTORSIZEXXX XXMKRDBLOCKSXXX
|
||||||
mkfatfs /dev/ramXXXMKRDMINORXXX
|
mkfatfs /dev/ramXXXMKRDMINORXXX
|
||||||
mount -t vfat /dev/ramXXXMKRDMINORXXX XXXRDMOUNTPOUNTXXX
|
mount -t vfat /dev/ramXXXMKRDMINORXXX XXXRDMOUNTPOINTXXX
|
||||||
|
Loading…
Reference in New Issue
Block a user