Rename kmalloc to kmm_malloc for consistency
This commit is contained in:
parent
dd1765f312
commit
591a9c85d2
@ -89,7 +89,7 @@ int usbmsc_archinitialize(void)
|
|||||||
uint8_t *pbuffer;
|
uint8_t *pbuffer;
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
pbuffer = (uint8_t *)kmalloc(BUFFER_SIZE);
|
pbuffer = (uint8_t *)kmm_malloc(BUFFER_SIZE);
|
||||||
if (!pbuffer)
|
if (!pbuffer)
|
||||||
{
|
{
|
||||||
lowsyslog("usbmsc_archinitialize: Failed to allocate ramdisk of size %d\n",
|
lowsyslog("usbmsc_archinitialize: Failed to allocate ramdisk of size %d\n",
|
||||||
|
@ -89,7 +89,7 @@ int usbmsc_archinitialize(void)
|
|||||||
uint8_t *pbuffer;
|
uint8_t *pbuffer;
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
pbuffer = (uint8_t *)kmalloc(BUFFER_SIZE);
|
pbuffer = (uint8_t *)kmm_malloc(BUFFER_SIZE);
|
||||||
if (!pbuffer)
|
if (!pbuffer)
|
||||||
{
|
{
|
||||||
lowsyslog("usbmsc_archinitialize: Failed to allocate ramdisk of size %d\n",
|
lowsyslog("usbmsc_archinitialize: Failed to allocate ramdisk of size %d\n",
|
||||||
|
@ -291,7 +291,7 @@ int nsh_archinitialize(void)
|
|||||||
|
|
||||||
#if defined(CONFIG_RAMMTD) && defined(CONFIG_MIKROE_RAMMTD)
|
#if defined(CONFIG_RAMMTD) && defined(CONFIG_MIKROE_RAMMTD)
|
||||||
{
|
{
|
||||||
uint8_t *start = (uint8_t *) kmalloc(CONFIG_MIKROE_RAMMTD_SIZE * 1024);
|
uint8_t *start = (uint8_t *) kmm_malloc(CONFIG_MIKROE_RAMMTD_SIZE * 1024);
|
||||||
mtd = rammtd_initialize(start, CONFIG_MIKROE_RAMMTD_SIZE * 1024);
|
mtd = rammtd_initialize(start, CONFIG_MIKROE_RAMMTD_SIZE * 1024);
|
||||||
mtd->ioctl(mtd, MTDIOC_BULKERASE, 0);
|
mtd->ioctl(mtd, MTDIOC_BULKERASE, 0);
|
||||||
|
|
||||||
|
@ -1529,10 +1529,10 @@ int arch_tcinitialize(int minor)
|
|||||||
#ifndef CONFIG_TOUCHSCREEN_MULTIPLE
|
#ifndef CONFIG_TOUCHSCREEN_MULTIPLE
|
||||||
priv = &g_touchscreen;
|
priv = &g_touchscreen;
|
||||||
#else
|
#else
|
||||||
priv = (FAR struct tc_dev_s *)kmalloc(sizeof(struct tc_dev_s));
|
priv = (FAR struct tc_dev_s *)kmm_malloc(sizeof(struct tc_dev_s));
|
||||||
if (!priv)
|
if (!priv)
|
||||||
{
|
{
|
||||||
idbg("kmalloc(%d) failed\n", sizeof(struct tc_dev_s));
|
idbg("kmm_malloc(%d) failed\n", sizeof(struct tc_dev_s));
|
||||||
return -ENOMEM;
|
return -ENOMEM;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
@ -1386,10 +1386,10 @@ int arch_tcinitialize(int minor)
|
|||||||
#ifndef CONFIG_TOUCHSCREEN_MULTIPLE
|
#ifndef CONFIG_TOUCHSCREEN_MULTIPLE
|
||||||
priv = &g_touchscreen;
|
priv = &g_touchscreen;
|
||||||
#else
|
#else
|
||||||
priv = (FAR struct tc_dev_s *)kmalloc(sizeof(struct tc_dev_s));
|
priv = (FAR struct tc_dev_s *)kmm_malloc(sizeof(struct tc_dev_s));
|
||||||
if (!priv)
|
if (!priv)
|
||||||
{
|
{
|
||||||
idbg("kmalloc(%d) failed\n", sizeof(struct tc_dev_s));
|
idbg("kmm_malloc(%d) failed\n", sizeof(struct tc_dev_s));
|
||||||
return -ENOMEM;
|
return -ENOMEM;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
@ -293,7 +293,7 @@ int nsh_archinitialize(void)
|
|||||||
|
|
||||||
#if defined(CONFIG_RAMMTD) && defined(CONFIG_STM32F429I_DISCO_RAMMTD)
|
#if defined(CONFIG_RAMMTD) && defined(CONFIG_STM32F429I_DISCO_RAMMTD)
|
||||||
{
|
{
|
||||||
uint8_t *start = (uint8_t *) kmalloc(CONFIG_STM32F429I_DISCO_RAMMTD_SIZE * 1024);
|
uint8_t *start = (uint8_t *) kmm_malloc(CONFIG_STM32F429I_DISCO_RAMMTD_SIZE * 1024);
|
||||||
mtd = rammtd_initialize(start, CONFIG_STM32F429I_DISCO_RAMMTD_SIZE * 1024);
|
mtd = rammtd_initialize(start, CONFIG_STM32F429I_DISCO_RAMMTD_SIZE * 1024);
|
||||||
mtd->ioctl(mtd, MTDIOC_BULKERASE, 0);
|
mtd->ioctl(mtd, MTDIOC_BULKERASE, 0);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user