#include <str.h>
#include <vector.h>
#include "type.h"
#include "libk/simd.h"
Go to the source code of this file.
|
| void | __fast__memcpy__ (void *dst, void *val, size_t len) |
| |
| void | __fast__memcpy_aligned__ (void *dst, void *val, size_t len) |
| |
| void | __fast_memset__ (void *dst, int val, size_t len) |
| |
| void | __fast_memset_aligned__ (void *dst, int val, size_t len) |
| |
| int | __fast__strncmp__ (const char *s1, const char *s2, size_t n) |
| |
| void * | __fast__memchr__ (const void *buf, int c, size_t len) |
| |
| | __attribute__ ((used, visibility("default"), section(".export"))) |
| | This function handles memory allocation for a new dentry using the slab allocator.
|
| |
| void | to_lowercase (char *str) |
| |
| char * | rtrim (char *str) |
| |
| size_t | strlen (const char *s) |
| |
| char * | strchr (const char *s, int c) |
| |
| size_t | strspn (const char *s, const char *accept) |
| |
| size_t | strcspn (const char *s, const char *reject) |
| |
| char * | strtok_r (char *str, const char *delim, char **saveptr) |
| |
| char * | strpbrk (const char *s, const char *accept) |
| |
| char * | strsep2 (char **stringp, const char *delim) |
| |
| const char * | strsep (char **str, const char delim) |
| |
| void * | memmove (void *dest, const void *src, size_t n) |
| |
| char * | itoa (int64_t value, int base) |
| |
◆ __attribute__()
| __attribute__ |
( |
(used, visibility("default"), section(".export")) | | ) |
|
This function handles memory allocation for a new dentry using the slab allocator.
It also links the dentry to its corresponding VNode (if provided).
- Note
- This function performs lazy initialization of the dentry slab cache if it does not exist yet.
- Parameters
-
| name | The name of the file or directory. |
| vnode | Pointer to the associated VNode (inode data). Pass NULL if the VNode is not yet available. |
- Returns
- dentry_ptr A pointer to the newly allocated and initialized dentry.
Definition at line 13 of file str.c.
References KERNEL_API.
◆ __fast__memchr__()
| void * __fast__memchr__ |
( |
const void * | buf, |
|
|
int | c, |
|
|
size_t | len ) |
|
extern |
◆ __fast__memcpy__()
| void __fast__memcpy__ |
( |
void * | dst, |
|
|
void * | val, |
|
|
size_t | len ) |
|
extern |
◆ __fast__memcpy_aligned__()
| void __fast__memcpy_aligned__ |
( |
void * | dst, |
|
|
void * | val, |
|
|
size_t | len ) |
|
extern |
◆ __fast__strncmp__()
| int __fast__strncmp__ |
( |
const char * | s1, |
|
|
const char * | s2, |
|
|
size_t | n ) |
|
extern |
◆ __fast_memset__()
| void __fast_memset__ |
( |
void * | dst, |
|
|
int | val, |
|
|
size_t | len ) |
|
extern |
◆ __fast_memset_aligned__()
| void __fast_memset_aligned__ |
( |
void * | dst, |
|
|
int | val, |
|
|
size_t | len ) |
|
extern |
◆ itoa()
| char * itoa |
( |
int64_t | value, |
|
|
int | base ) |
◆ memmove()
| void * memmove |
( |
void * | dest, |
|
|
const void * | src, |
|
|
size_t | n ) |
◆ rtrim()
| char * rtrim |
( |
char * | str | ) |
|
◆ strchr()
| char * strchr |
( |
const char * | s, |
|
|
int | c ) |
◆ strcspn()
| size_t strcspn |
( |
const char * | s, |
|
|
const char * | reject ) |
◆ strlen()
| size_t strlen |
( |
const char * | s | ) |
|
Definition at line 105 of file str.c.
References len.
Referenced by __attribute__(), console_println(), create_netdev(), create_process(), elf_find_symbol(), elf_gnu_lookup(), elf_prepare_stack(), elf_resolve_external_symbol(), find_dev(), iso9660_lookup(), iso9660_readlink(), library_load(), notify_dev_create(), parse_multicore(), rtrim(), symbols_register(), and vprintf_internal().
◆ strpbrk()
| char * strpbrk |
( |
const char * | s, |
|
|
const char * | accept ) |
◆ strsep()
| const char * strsep |
( |
char ** | str, |
|
|
const char | delim ) |
◆ strsep2()
| char * strsep2 |
( |
char ** | stringp, |
|
|
const char * | delim ) |
◆ strspn()
| size_t strspn |
( |
const char * | s, |
|
|
const char * | accept ) |
◆ strtok_r()
| char * strtok_r |
( |
char * | str, |
|
|
const char * | delim, |
|
|
char ** | saveptr ) |
◆ to_lowercase()
| void to_lowercase |
( |
char * | str | ) |
|