From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=3.0 tests=DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING, SPF_HELO_NONE,SPF_PASS,USER_AGENT_MUTT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 15296C4321A for ; Tue, 11 Jun 2019 18:59:19 +0000 (UTC) Received: from shelob.surriel.com (shelob.surriel.com [96.67.55.147]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id CE8152183E for ; Tue, 11 Jun 2019 18:59:18 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="BpzQ9IK1" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org CE8152183E Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=fail smtp.mailfrom=kernelnewbies-bounces@kernelnewbies.org Received: from localhost ([::1] helo=shelob.surriel.com) by shelob.surriel.com with esmtp (Exim 4.92) (envelope-from ) id 1halyt-0001Xm-Fl; Tue, 11 Jun 2019 14:58:51 -0400 Received: from mail-wr1-x431.google.com ([2a00:1450:4864:20::431]) by shelob.surriel.com with esmtps (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.92) (envelope-from ) id 1halyr-0001Xf-Iu for kernelnewbies@kernelnewbies.org; Tue, 11 Jun 2019 14:58:49 -0400 Received: by mail-wr1-x431.google.com with SMTP id e16so14245882wrn.1 for ; Tue, 11 Jun 2019 11:58:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:subject:message-id:mime-version:content-disposition :user-agent; bh=USI6Nl7VrfdCxvUf7Yzkz6DUbjfK98g4BCal9BN3HPw=; b=BpzQ9IK1SnfHkZZ0I7DHaFWS8RZw6qI+22y/eZHdNu3H8lFfQ926P7sqv13foGJqJr YOyg0YOTNPsL1v7h7/wk26mnnvMTU0pZJ57mitvhBztGbKHcvN7jLj8rNGMPvizuBN3e XmWvJOcs8tcGcc4IwqiU/ymoO3ecjaKmZdcU7xmeOVgr3At+uXgiqzt5xoxXcRmYv94z 7DVHmusNCJLcwCNrSjaEZBrhiahttjENRsrH4vF6Vb/wORXWSsyCmBf4gUPPaXazBw85 /sNWVe/WEbAS8GQxfRG6+Fww6g+LTTzOQjtArZnYyonAJmTUUkxZsOoF0uy1Iv9B/sYT p6Xw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:subject:message-id:mime-version :content-disposition:user-agent; bh=USI6Nl7VrfdCxvUf7Yzkz6DUbjfK98g4BCal9BN3HPw=; b=Cin6t2JSrbTtyfQGWQtE11oUZuLn+XFFDGMj1CaOmCXg5LXG5nS4j+Qmj7ahry+uOq cIcEiJtoEcToDitEZmjvw/bSncbBftD9VcBpJ30yX+uaUr3UaZE9YnniVSm6jGizNida 3/3pUl24Z3gjzKvtIoVu7kKDbtHPplwVp/WRQVs/pG2jA8Lzun/cy3KFSFHRNer3mqHu VVa1C/7epWcmduyQ3eK2htOhsxxdAhgRyC98qjewbTxEM04EUq64UGhfzK2CnTHLS2lD a89U8iiz8cB5qzzVy11jjmmbN9VYEfTw08rF5qbB46ts1rAaUL2OOKC5NqKn95Gu6LhM WBIQ== X-Gm-Message-State: APjAAAVcTgh5qsgW+75cG3nN8IdCmcZ3gZvaOFu0636PoBLRzp+rnr91 SdGFBGHNsMCwRpOPfykBuASkjfJf X-Google-Smtp-Source: APXvYqwR5ppAHh81Mh9ab6x7FqQXxrB8RwO9BvHoyvUu4FRx29j0HObX0LkkNykI+Cku+HDZN2/PGA== X-Received: by 2002:a5d:4141:: with SMTP id c1mr36218151wrq.159.1560279527392; Tue, 11 Jun 2019 11:58:47 -0700 (PDT) Received: from yacov-PR601-VR603 ([176.230.34.189]) by smtp.gmail.com with ESMTPSA id l9sm2983wrt.13.2019.06.11.11.58.46 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 11 Jun 2019 11:58:47 -0700 (PDT) Date: Tue, 11 Jun 2019 21:58:44 +0300 From: Yacov Simhony To: kernelnewbies@kernelnewbies.org Subject: Help: using the scull driver Message-ID: <20190611185844.GB25511@yacov-PR601-VR603> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.24 (2015-08-30) X-BeenThere: kernelnewbies@kernelnewbies.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: Learn about the Linux kernel List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: kernelnewbies-bounces@kernelnewbies.org Hi, I'd like to ask how can I use the scull driver today? The scull driver appears in the book "Linux Device Drivers, Third Edition". I am using linux vesion 5.1.6 I found the code of scull here: https://github.com/starpos/scull But, it says there that the code is compatible with linux version 2.6.35. I've tried to port the code to run with my linux version, but I got stuck when it comes to exchange the old semaphores with the newly introduced mutexes. I also tried to install linux version 2.6.35 on my machine, but I could compile the code. I assume it's related to the gcc version, but I don't know how to handle this. Can you give me some advice here? Thanks, Yacov _______________________________________________ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies