In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-09-22 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly explains the "what are the yaffs-related functions", the content of the explanation is simple and clear, easy to learn and understand, the following please follow the editor's ideas slowly in-depth, together to study and learn "yaffs-related functions" bar!
1.int yaffs_write (int fd, const void * buf, unsigned int nbyte) what if a file needs to be written to more than a chunk? (just write parts not larger than one chunk, what about the rest?)
2.off_t yaffs_lseek (int fd, off_t offset, int whence)
(1) SEEK_SET=0 search location is offset offset
(2) the current position of SEEK_CUR=1 plus offset offset
(3) SEEK_END=2 file length plus offset offset
3. Yaffsfs_Lock (); / / after watching it for a long time, it is originally equivalent to a semaphore and mutually exclusive.
4. What is the specific difference between these two functions?
Int yaffs_rmdir (const char * path)
{
Return yaffsfs_DoUnlink (path,1)
}
Int yaffs_unlink (const char * path)
{
Return yaffsfs_DoUnlink (path,0)
}
5. Change the current state or parent state (I feel the two are just the opposite, and we need test later)
Int yaffs_stat (const char * path, struct yaffs_stat * buf)
{
Return yaffsfs_DoStatOrLStat (path,buf,0)
}
Int yaffs_lstat (const char * path, struct yaffs_stat * buf)
{
Return yaffsfs_DoStatOrLStat (path,buf,1)
}
6. Wouldn't it be more convenient to directly use the conditions without using the do {} while (0) structure?
7.struct yaffs_dirent * yaffs_readdir (yaffs_DIR * dirp)
8.void yaffs_rewinddir (yaffs_DIR * dirp) / / returns the directory one level above
9.int yaffs_DumpDevStruct (const char * path)
Thank you for your reading, these are the contents of "what are the yaffs-related functions?" after the study of this article, I believe you have a deeper understanding of what the yaffs-related functions have, and the specific use needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
The market share of Chrome browser on the desktop has exceeded 70%, and users are complaining about
The world's first 2nm mobile chip: Samsung Exynos 2600 is ready for mass production.According to a r
A US federal judge has ruled that Google can keep its Chrome browser, but it will be prohibited from
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
It feels good. You can learn and improve yourself.
About us Contact us Product review car news thenatureplanet
More Form oMedia: AutoTimes. Bestcoffee. SL News. Jarebook. Coffee Hunters. Sundaily. Modezone. NNB. Coffee. Game News. FrontStreet. GGAMEN
© 2024 shulou.com SLNews company. All rights reserved.