From: Ilan Schwarts <ilan84@gmail.com>
To: linux-btrfs <linux-btrfs@vger.kernel.org>
Subject:
Date: Sun, 19 Mar 2017 17:00:59 +0200 [thread overview]
Message-ID: <CAJUuSvHkhpFSf_5V_KDev4i2AosQcgZTUvuF57YMng2kGpGVaw@mail.gmail.com> (raw)
Hi,
sorry if this is a newbie question. I am newbie.
In my kernel driver, I get device id by converting struct inode struct
to btrfs_inode, I use the code:
struct btrfs_inode *btrfsInode;
btrfsInode = BTRFS_I(inode);
I usually download kernel-headers rpm package, this is not enough. it
fails to find the btrfs header files.
I had to download them not via rpm package and declare:
#include "/data/kernel/linux-4.1.21-x86_64/fs/btrfs/ctree.h"
#include "/data/kernel/linux-4.1.21-x86_64/fs/btrfs/btrfs_inode.h"
This is not good, why ctree.h and btrfs_inode.h are not in kernel headers?
Is there another package i need to download in order to get them, in
addition to kernel-headers? ?
I see they are not provided in kernel-header package, e.g:
https://rpmfind.net/linux/RPM/fedora/23/x86_64/k/kernel-headers-4.2.3-300.fc23.x86_64.html
Thanks!
next reply other threads:[~2017-03-19 15:01 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-03-19 15:00 Ilan Schwarts [this message]
2017-03-23 17:12 ` Jeff Mahoney
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAJUuSvHkhpFSf_5V_KDev4i2AosQcgZTUvuF57YMng2kGpGVaw@mail.gmail.com \
--to=ilan84@gmail.com \
--cc=linux-btrfs@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.