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=-0.4 required=3.0 tests=DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,HTML_MESSAGE,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED autolearn=no 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 E94F0C432C3 for ; Fri, 15 Nov 2019 17:03:39 +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 A599020733 for ; Fri, 15 Nov 2019 17:03:39 +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="ZMGoLBaK" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org A599020733 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=kernelnewbies-bounces@kernelnewbies.org Received: from localhost ([::1] helo=shelob.surriel.com) by shelob.surriel.com with esmtp (Exim 4.92.3) (envelope-from ) id 1iVezx-0003iZ-7H; Fri, 15 Nov 2019 12:03:05 -0500 Received: from mail-lj1-x231.google.com ([2a00:1450:4864:20::231]) by shelob.surriel.com with esmtps (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.92.3) (envelope-from ) id 1iVWDw-0000Qt-Nr for kernelnewbies@kernelnewbies.org; Fri, 15 Nov 2019 02:40:56 -0500 Received: by mail-lj1-x231.google.com with SMTP id p18so9616034ljc.6 for ; Thu, 14 Nov 2019 23:40:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=VbrHhUl73iK7Z24wGYqafs6XHT20DuMwg6l2ijSXpOQ=; b=ZMGoLBaKInVlCRr52IyWCFQRTP4rVN8x+zotPgVWo82J/XsnKjT2WwenTQSnGYAR69 6deet3v444EtZ9XpZIxvTi8Dn23WCrEPOoQ6LdL53YgMiByeGaalmjRB2BVq+F/7Y1yn HVRTxXbVZeRvv0cpACd7CuUzAw1MzNAczbGRUa+CPSZZOeF8fBnVLNhQDpQp8TXvTklH DmA3V8L9bm7LRjxz4QlbNJY86FuNaJlBkyX1ZwFAPrUOo49MaxQMB5E6eIKa3KIPpnjh SYC1sjQMM90i89PshjUkEG0cGbuyQmd8bCiIF4AdCrR2b7kZ3QL0sMlgD2umKr/K11JK 61tQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=VbrHhUl73iK7Z24wGYqafs6XHT20DuMwg6l2ijSXpOQ=; b=UNqjAKu8BUcUnTL+wBwIWKcwnwKX8YouJKy04B7z7F0sw1ImZqA/K/aZ1dJoycP6gs 29mrrAtdovCPL3shsTlITE48s7mZ3t3eUh+wW9oQ4mi5LZ4WVqeYYRtbJ3Y9DJG8/CRE mfmRNvteVfRCnC4Qf7V3QLRd1oz0LkHPzQv7B3ZfXPM9DE678G/0mSMPeFW/1tDRn1ZJ 8mB8CA8/AMY+enoEBSWpS4OzdEySlgd5sr5alVVUylvat6c8Wf2bcupjccuSFyCFYPhU bS4yvXSl61IP9tCAAGefX8l7d0F0ezk/gS1ovY1F5BWKzj/NUcVxTsl6gl5VIchAOj8/ lTCA== X-Gm-Message-State: APjAAAVjpJVQ4oQlK+mxSot8RLogNcSashiMxBXZ1KL3HOnwf0/7GiWQ BndolxF7UMIrdIdQqniV3riYVawK6qvF/LKoe9OfI7KFb0E= X-Google-Smtp-Source: APXvYqyXPwFwSnnxPDnrKq+ZNXAo4YpUiCvEz2e+N/rm29lMvE+rpH4g4Or24u5bYPQQR3Iunnjn9iqIjyBR/gvIDbg= X-Received: by 2002:a2e:7301:: with SMTP id o1mr6397105ljc.16.1573803652188; Thu, 14 Nov 2019 23:40:52 -0800 (PST) MIME-Version: 1.0 From: Strahinja Mitrovic Date: Fri, 15 Nov 2019 08:40:41 +0100 Message-ID: Subject: Question regarding kernel? To: kernelnewbies@kernelnewbies.org X-Mailman-Approved-At: Fri, 15 Nov 2019 12:03:02 -0500 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: multipart/mixed; boundary="===============8893500144328228118==" Errors-To: kernelnewbies-bounces@kernelnewbies.org --===============8893500144328228118== Content-Type: multipart/alternative; boundary="000000000000a28dd405975db737" --000000000000a28dd405975db737 Content-Type: text/plain; charset="UTF-8" Hi, I'm a new subscriber, and i have a question regarding the uart driver and kernel. How does uart driver reset the counter of input serial line interrupts? I'm currently using ioct with TIOCGICOUNT on linux for retrieving counts of input serial line interrupts. The counts are written to the serial_icounter_struct. Most data fields are 32-bit integers. What happens if a number of counts for a certain input line is greater then 32-bit integer value? Does a system refresh counter on daily basis automatically? Is there a way to reset a counter so that starts again from 0? Best Regards, Strahinja Mitrovic --000000000000a28dd405975db737 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

Hi,

I'm a new subscriber, an= d i have a question regarding the uart driver and kernel.

How does uart driver reset the counter of input s= erial line interrupts?

I'm currently us= ing ioct with TIOCGICOUNT on linux for retrieving counts of input serial li= ne interrupts.

The counts are written to the serial_icounter= _struct.

Most data fields are 32-bit integers.

What happens if a number of counts for a certain input line is greater = then 32-bit integer value?

Does a system refresh counter on = daily basis automatically?

Is there a way to reset a counter= so that starts again from 0?

Best Regards,
Strahin= ja Mitrovic
--000000000000a28dd405975db737-- --===============8893500144328228118== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies --===============8893500144328228118==--