*参照元 [#ga1d51db] #backlinks *説明 [#z44c95b4] -パス: [[linux-2.6.33/include/linux/mm.h]] -FIXME: これは何? --説明 **引数 [#x8d0f3de] -struct file *file -- --[[linux-2.6.33/file]] -unsigned long addr -- -unsigned long len -- -unsigned long prot -- -unsigned long flag -- -unsigned long pgoff -- **返り値 [#yf7d906a] -unsigned long -- **参考 [#q7e6035c] *実装 [#v4d5a8f3] static inline unsigned long do_mmap(struct file *file, unsigned long addr, unsigned long len, unsigned long prot, unsigned long flag, unsigned long offset) { unsigned long ret = -EINVAL; if ((offset + PAGE_ALIGN(len)) < offset) goto out; - --[[linux-2.6.33/EINVAL]] --[[linux-2.6.33/PAGE_ALIGN()]] if (!(offset & ~PAGE_MASK)) ret = do_mmap_pgoff(file, addr, len, prot, flag, offset >> PAGE_SHIFT); - --[[linux-2.6.33/PAGE_MASK]] - --[[linux-2.6.33/PAGE_SHIFT]] --[[linux-2.6.33/do_mmap_pgoff()]] out: return ret; } *コメント [#l1ff5ca6]