Changes between Version 10 and Version 11 of jazz/08-11-17


Ignore:
Timestamp:
Nov 18, 2008, 4:16:23 AM (16 years ago)
Author:
jazz
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • jazz/08-11-17

    v10 v11  
    3737_SC_PAGESIZE = 4096
    3838}}}
     39 * 根據 mmap 的 manpages,產生 EINVAL 錯誤的另一個原因是 length 等於零(從 Linux 2.6.12 以後),確認主因為 length 參數 = p->mlen = 0
     40{{{
     41MMAP(2): void *mmap(void *addr, size_t length, int prot, int flags, int fd, off_t offset);
     42MMAP(2): EINVAL (since Linux 2.6.12) length was 0.
     43
     44566             p->mmio = (u_char*)mmap(NULL, p->mlen, PROT_READ|PROT_WRITE,
     45567                                     MAP_SHARED, p->fh, p->slen);
     46(gdb) p p->mlen
     47$3 = 0
     48}}}
    3949
    4050== CUDA ==