Changes between Version 10 and Version 11 of jazz/08-11-17
- Timestamp:
- Nov 18, 2008, 4:16:23 AM (16 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
jazz/08-11-17
v10 v11 37 37 _SC_PAGESIZE = 4096 38 38 }}} 39 * 根據 mmap 的 manpages,產生 EINVAL 錯誤的另一個原因是 length 等於零(從 Linux 2.6.12 以後),確認主因為 length 參數 = p->mlen = 0 40 {{{ 41 MMAP(2): void *mmap(void *addr, size_t length, int prot, int flags, int fd, off_t offset); 42 MMAP(2): EINVAL (since Linux 2.6.12) length was 0. 43 44 566 p->mmio = (u_char*)mmap(NULL, p->mlen, PROT_READ|PROT_WRITE, 45 567 MAP_SHARED, p->fh, p->slen); 46 (gdb) p p->mlen 47 $3 = 0 48 }}} 39 49 40 50 == CUDA ==